GNU bug report logs

#60849 [PATCH core-updates 0/4] Enable cross-Compilation for python-pycryptodome

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Full log

Message #8 received at 60849@debbugs.gnu.org (full text, mbox, reply):

Received: (at 60849) by debbugs.gnu.org; 16 Jan 2023 05:14:26 +0000
From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 16 00:14:26 2023
Received: from localhost ([127.0.0.1]:60164 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1pHHpB-0004eY-If
	for submit@debbugs.gnu.org; Mon, 16 Jan 2023 00:14:26 -0500
Received: from mail-qt1-f172.google.com ([209.85.160.172]:42868)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@gmail.com>) id 1pHHp9-0004eA-FW
 for 60849@debbugs.gnu.org; Mon, 16 Jan 2023 00:14:24 -0500
Received: by mail-qt1-f172.google.com with SMTP id fd15so13924865qtb.9
 for <60849@debbugs.gnu.org>; Sun, 15 Jan 2023 21:14:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=p30WJ+AUsGGNrT8p61tmCLktKfFImWqPczcUNBfPNzI=;
 b=LtRhv5xxiv9RJHQWDwYZwZcRixo2mvFcfnxnJLCgu18W37VY8WlpYk4JtHhSjoD+NK
 bPQ5VOnrpE8NaYR+Sz2226fX3vI5scAEmpx4WKVLox8fsiI/6Xk6X7ayJUxKHwRBTSMF
 efV3kUEapUrhXJLtKebFn7bXzuCcLkM2FQQHVtXAnNHIc7PMtTOoZPTWvUmsBJ2PbEOb
 j1P+QZrM/lD3Jq7vi4MCn6V8+vov4mBan+AAPcy2ex1xznCzaoIjMyUaYHcK2a1HkQhs
 zkwTK5H9ZsSgMdDqAfN/S2aVoE4yyBVWaF3z9z4hA/IUnAkYZajTgWMWWFU+u2IUf2Ln
 gXpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:subject:cc
 :to:from:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=p30WJ+AUsGGNrT8p61tmCLktKfFImWqPczcUNBfPNzI=;
 b=VYGX6G0fPOOaut8HllGnPs5g2u1ErBPODaVYILl/7HyHGJEQUfdjwke8QpNgxgc0CO
 sDJQKl402n320RPb84UXlDm5ufZJS1YMCgVUPQxA7wvvRup8GmaOoXMW/cE9ZQe9T2Tt
 B0fhy7E+XiyT2FAHmg4XJ9pfN12YLlEIf27BV8giJDwEbEAOYF5VqyjpibV/+2RRFZ6B
 nXwHYqr8yCTaXRFlyOjdJvn4ISuoLXui5a5tW7ycRKkOHgUBdwd7q0dm46aMM+8Yf6Jr
 ogMcZvKxW0rrOP4t0vEuCFa+0ZWzQEZv72o6mlyVYrC97vd+ps/+uI8h0ZN1AsubFLMd
 0PlA==
X-Gm-Message-State: AFqh2koNVifl23UDJVh05Xh6D1oRsXSm+IT8dMu6T/41Rr932W4Sh5o8
 4fV4J+hg4xMsLM7CKCWCcfJNJyInFudHYY1w
X-Google-Smtp-Source: AMrXdXv2bKpJoqJ712S14ohuO9ZyJytogNMjEW/RqRNrbEClAxRRo/Nyh1uTwAehm6RiVmEQqe7RGA==
X-Received: by 2002:a05:622a:618b:b0:3ac:833b:e5b6 with SMTP id
 hh11-20020a05622a618b00b003ac833be5b6mr38506823qtb.21.1673846057766; 
 Sun, 15 Jan 2023 21:14:17 -0800 (PST)
Received: from localhost.localdomain (dsl-10-130-209.b2b2c.ca. [72.10.130.209])
 by smtp.gmail.com with ESMTPSA id
 em8-20020a05622a438800b003a82ca4e81csm8084590qtb.80.2023.01.15.21.14.17
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 15 Jan 2023 21:14:17 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 60849@debbugs.gnu.org
Subject: [PATCH core-updates 1/4] gnu: libtommath: Update to 1.2.0-0.03de03d.
Date: Mon, 16 Jan 2023 00:13:36 -0500
Message-Id: <20230116051339.27113-2-maxim.cournoyer@gmail.com>
X-Mailer: git-send-email 2.38.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 60849
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
This change makes it possible to cross-compile libtommath.

* gnu/packages/multiprecision.scm (libtommath): Update to 1.2.0-0.03de03d.
[outputs]: Delete field.
[source]: Fetch from git.
[build-system]: Switch to cmake-build-system.
[arguments]: Delete prepare-build, remove-static-library, check and
install-static-library phases.  Delete #:test-target and #:make-flags
arguments.  Add #:configure-flags argument.
[native-inputs]: Delete field.
---

 gnu/packages/multiprecision.scm | 73 +++++++++++----------------------
 1 file changed, 25 insertions(+), 48 deletions(-)

diff --git a/gnu/packages/multiprecision.scm b/gnu/packages/multiprecision.scm
index b96efed843..c8b4639ed7 100644
--- a/gnu/packages/multiprecision.scm
+++ b/gnu/packages/multiprecision.scm
@@ -8,7 +8,7 @@
 ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2018, 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
-;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -39,6 +39,7 @@ (define-module (gnu packages multiprecision)
   #:use-module (guix git-download)
   #:use-module (guix packages)
   #:use-module (guix utils)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu))
 
 (define-public gmp
@@ -439,56 +440,32 @@ (define-public libtomcrypt
     (license unlicense)))
 
 (define-public libtommath
-  (package
-    (name "libtommath")
-    (version "1.2.0")
-    (outputs '("out" "static"))
-    (source
-      (origin
-        (method url-fetch)
-        (uri (string-append "https://github.com/libtom/libtommath/releases/"
-                            "download/v" version "/ltm-" version ".tar.xz"))
-        (sha256
-         (base32
-          "1c8q1qy88cjhdjlk3g24mra94h34c1ldvkjz0n2988c0yvn5xixp"))))
-    (build-system gnu-build-system)
-    (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (delete 'configure) ; no configure
-         (add-after 'unpack 'prepare-build
-           (lambda _
-             ;; We want the shared library by default so force it to be the
-             ;; default makefile target.
-             (delete-file "makefile")
-             (symlink "makefile.shared" "makefile")
-             #t))
-         (add-after 'install 'remove-static-library
-           (lambda* (#:key outputs #:allow-other-keys)
-             (delete-file (string-append (assoc-ref outputs "out")
-                                         "/lib/libtommath.a"))
-             #t))
-         (replace 'check
-           (lambda* (#:key test-target make-flags #:allow-other-keys)
-             (apply invoke "make" test-target make-flags)
-             (invoke "sh" "test")))
-         (add-after 'install 'install-static-library
-           (lambda* (#:key outputs #:allow-other-keys)
-             (invoke "make" "-f" "makefile.unix" "install"
-                     (string-append "PREFIX=" (assoc-ref outputs "static"))
-                     (string-append "CC=" (which "gcc"))))))
-       #:test-target "test"
-       #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
-                          "CC=gcc")))
-    (native-inputs
-     (list libtool))
-    (home-page "https://www.libtom.net/LibTomMath/")
-    (synopsis "Portable number theoretic multiple-precision integer library")
-    (description "LibTomMath is a portable number theoretic multiple-precision
+  ;; Use the latest commit, as it contains a new CMake build system capable of
+  ;; cross-compilation.
+  (let ((revision "0")
+        (commit "03de03dee753442d4b23166982514639c4ccbc39"))
+    (package
+      (name "libtommath")
+      (version (git-version "1.2.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/libtom/libtommath")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0maqzpc3f4l9b3bps8dj49b3schj3dfzvf2xcpilg8q3p1sxgrbl"))))
+      (build-system cmake-build-system)
+      (arguments (list #:configure-flags #~(list "-DBUILD_TESTING=ON"
+                                                 "-DBUILD_SHARED_LIBS=ON")))
+      (home-page "https://www.libtom.net/LibTomMath/")
+      (synopsis "Portable number theoretic multiple-precision integer library")
+      (description "LibTomMath is a portable number theoretic multiple-precision
 integer library written entirely in C.  It's designed to provide an API that is
 simple to work with that provides fairly efficient routines that build out of
 the box without configuration.")
-    (license unlicense)))
+      (license unlicense))))
 
 (define-public libtommath-1.1
   (package
-- 
2.38.1





Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Dec 23 02:03:31 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.