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 #14 received at 60849@debbugs.gnu.org (full text, mbox, reply):

Received: (at 60849) by debbugs.gnu.org; 16 Jan 2023 05:14:30 +0000
From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 16 00:14:29 2023
Received: from localhost ([127.0.0.1]:60170 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1pHHpF-0004ey-Eu
	for submit@debbugs.gnu.org; Mon, 16 Jan 2023 00:14:29 -0500
Received: from mail-qt1-f169.google.com ([209.85.160.169]:41778)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@gmail.com>) id 1pHHpB-0004eG-Kd
 for 60849@debbugs.gnu.org; Mon, 16 Jan 2023 00:14:26 -0500
Received: by mail-qt1-f169.google.com with SMTP id d16so10908102qtw.8
 for <60849@debbugs.gnu.org>; Sun, 15 Jan 2023 21:14:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=uFgwAeqOV9gRBIea9PHHiYHtDpltqOyl85c+IZOkhXY=;
 b=QdpE922Vsh1NzpnG2ahxpP0IFw492nEphHLGAUt39j4+76fsjQG//X/3x/ntm9WGrS
 seE1buvQ0viVGI6jrW7ZrJYGA29MuT2bPDE9HsqqacsIhADDeMhK8vFz+fPWgDwKRPyH
 Hf5PqkWyK3pkX+67yJdHvPfH1TiYXUdFhrxSN/M0fMzblJGtmuY76VAyiY5L2yWBhJ2R
 PHmVDH+AmMl88ZDeYTQhpGgsf52q6qakHyDfq7XDBrJDuDPdd4aOpbTK7U15aa0cPL70
 sogi3o9ennXJvTrF8RtKGKRz721NoAfvW8ufCOapS6p3uX7DYz23mx5GP8BgnkC4ygCU
 K5Bw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:references:in-reply-to
 :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=uFgwAeqOV9gRBIea9PHHiYHtDpltqOyl85c+IZOkhXY=;
 b=4hPNfyipskCG7yrSUpkqpLfFHuRMCT9s8kZ1SQBg6S2aNGiN9r6ZtsF9YBaLp49maw
 YDf/EDj2teAJ6q8nsUXGUtkwfie6rp4Lx5Te3QR10kYCRaaAj7pUDl8JGCq4IWrVTqkE
 kBHA9cL+glqRGpVbWFvwzEZIU0iz20+G3Xu49uz6pUHyiPkBdZC/u7JAInRLd6Uhl7mX
 err/EyIevav5f2oP3Iik96JJ3lR8+T9dpUJ0zZxQL8rFTuALIZcYf8WwfBuZm7ch5OV9
 fur+M4EIdkwYX6uzKlLq72qieAY44i2QEYZrjFpniGE0QFqdNtCNQxmwNKTv+qMeYk+i
 KbBQ==
X-Gm-Message-State: AFqh2kraFn6xaxIbVxmiarS1f//uSgcgXLRAB2ant8FLlZR+/rFH04Db
 FF3n4xbkrvZrrb7zlAIphCztH/RqeO2Jbwgd
X-Google-Smtp-Source: AMrXdXuNcuW4cex1rYqkQubk/yWxHsKepbTvjjzvreK5fEtwriVRtTvi1vfHmT4tQQGYtBCC+d2Q0Q==
X-Received: by 2002:ac8:1249:0:b0:3b0:e83e:4331 with SMTP id
 g9-20020ac81249000000b003b0e83e4331mr26516767qtj.44.1673846060169; 
 Sun, 15 Jan 2023 21:14:20 -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.19
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 15 Jan 2023 21:14:19 -0800 (PST)
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 60849@debbugs.gnu.org
Subject: [PATCH core-updates 3/4] gnu: python-pycryptodome: Fix build and
 enable cross-compilation.
Date: Mon, 16 Jan 2023 00:13:38 -0500
Message-Id: <20230116051339.27113-4-maxim.cournoyer@gmail.com>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <20230116051339.27113-2-maxim.cournoyer@gmail.com>
References: <20230116051339.27113-2-maxim.cournoyer@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 60849
Cc: jgart <jgart@dismail.de>, Lars-Dominik Braun <lars@6xq.net>,
 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 (-)
* gnu/packages/python-crypto.scm (python-pycryptodome) [build-system]: Use
pyproject-build-system.
[arguments]: New field.
[inputs]: Re-indent.
---

 gnu/packages/python-crypto.scm | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index c9071c4cf6..9023a5e054 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1012,9 +1012,23 @@ (define-public python-pycryptodome
          "1f0qc0ns3ppybkr7wi66gsl5wfkcx1fdklmh3362nn84spddsdci"))
        (modules '((guix build utils)))
        (snippet pycryptodome-unbundle-tomcrypt-snippet)))
-    (build-system python-build-system)
-    (inputs
-     (list libtomcrypt libtommath))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'extend-C_INCLUDE_PATH
+            (lambda* (#:key inputs target #:allow-other-keys)
+              (if target
+                  (setenv "CROSS_C_INCLUDE_PATH"
+                          (string-append (search-input-directory
+                                          inputs "include/libtomcrypt")
+                                         ":" (getenv "CROSS_C_INCLUDE_PATH")))
+                  (setenv "C_INCLUDE_PATH"
+                          (string-append (search-input-directory
+                                          inputs "include/libtomcrypt")
+                                         ":" (getenv "C_INCLUDE_PATH")))))))))
+    (inputs (list libtomcrypt libtommath))
     (home-page "https://www.pycryptodome.org")
     (synopsis "Low-level cryptographic Python library")
     (description
-- 
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 01:20:26 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.