From patchwork Mon Jan 8 09:56:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Othacehe X-Patchwork-Id: 58668 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 77F4327BBE2; Mon, 8 Jan 2024 09:57:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4D3B827BBE9 for ; Mon, 8 Jan 2024 09:57:09 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rMmNO-00016s-AY; Mon, 08 Jan 2024 04:56:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMmNM-00016g-M4 for guix-patches@gnu.org; Mon, 08 Jan 2024 04:56:56 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rMmNM-0003CQ-E7 for guix-patches@gnu.org; Mon, 08 Jan 2024 04:56:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rMmNS-00040l-BK for guix-patches@gnu.org; Mon, 08 Jan 2024 04:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68263] [PATCH 0/2] libsmbios: Restrict to only supported systems. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Jan 2024 09:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68263 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Efraim Flashner Cc: Vagrant Cascadian , 68263@debbugs.gnu.org, Simon South Received: via spool by 68263-submit@debbugs.gnu.org id=B68263.170470780015390 (code B ref 68263); Mon, 08 Jan 2024 09:57:02 +0000 Received: (at 68263) by debbugs.gnu.org; 8 Jan 2024 09:56:40 +0000 Received: from localhost ([127.0.0.1]:35239 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMmN6-00040A-1j for submit@debbugs.gnu.org; Mon, 08 Jan 2024 04:56:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34058) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rMmN4-0003zw-2O for 68263@debbugs.gnu.org; Mon, 08 Jan 2024 04:56:38 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rMmMq-00031Z-4W; Mon, 08 Jan 2024 04:56:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=4Ys8ZRHD5S5VXXSI/1+gCkeSRY9hEmfEqNrKgKFbN/w=; b=NKoAaKizOffYHtGxl/Fw ZbJqnNiAVZj793TrW0yu9PZhKVl0se6CaHqrTYXLVUGCWyvNS0i9AcaHSjtWtaiBn0eCAlSiMawHV Tc3O4WkJ6bS1LBXjTMg/5ggo07bZmRDExzvUAgzgGNlEAlv7d8L+7xTDKDTnHpAf9xGBTtEpOvUKz 5uq3GagwVjjrS1+mQvlSuPvr9i8LxeIH/3OpG4p23YsGXcBrikIAzCQ0aTYe+zTavcvy3RIFJP94z c+O8/fVeXLJU4+8/cdgxMXXZQ9R+i/yfzgMJIoMeq1wppI5ch7Igd340k7xNyVKjV9TeIpJC1HXb/ +xnALFVORLx3bA==; From: Mathieu Othacehe In-Reply-To: (Efraim Flashner's message of "Sun, 7 Jan 2024 22:00:47 +0200") References: <87y1d0rki4.fsf@gnu.org> Date: Mon, 08 Jan 2024 10:56:20 +0100 Message-ID: <87jzok87y3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, > I'm not seeing that error, I'm getting json-glib failing to > cross-compile. Is it possible you have some stale .go files? (guix > platforms) changed recently. That was the issue! I have a new error, but this this in gnupg: --8<---------------cut here---------------start------------->8--- %exception #<&invoke-error program: "/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash" arguments: ("./configure" "CC_FOR_BUILD=gcc" "CONFIG_SHELL=/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash" "SHELL=/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash" "--prefix=/gnu/store/0ksgybn4n10j0b3wcqfl1jpcjr79xq8l-gnupg-2.2.39" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--host=aarch64-linux-gnu" "--enable-gnupg-builddir-envvar" "--enable-all-tests") exit-status: 1 term-signal: #f stop-signal: #f> phase `configure' failed after 9.4 seconds command "/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash" "./configure" "CC_FOR_BUILD=gcc" "CONFIG_SHELL=/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash" "SHELL=/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash" "--prefix=/gnu/store/0ksgybn4n10j0b3wcqfl1jpcjr79xq8l-gnupg-2.2.39" "--enable-fast-install" "--build=x86_64-unknown-linux-gnu" "--host=aarch64-linux-gnu" "--enable-gnupg-builddir-envvar" "--enable-all-tests" failed with status 1 note: keeping build directory `/tmp/guix-build-gnupg-2.2.39.drv-1' builder for `/gnu/store/qac9bix1331g6f12dgyrk4wvn2dpgp3k-gnupg-2.2.39.drv' failed with exit code 1 build of /gnu/store/qac9bix1331g6f12dgyrk4wvn2dpgp3k-gnupg-2.2.39.drv failed --8<---------------cut here---------------end--------------->8--- I fixed it with the attached patch. Now libsmbios itself fails to cross-compile: --8<---------------cut here---------------start------------->8--- src/libsmbios_c/cmos/cmos_linux.c:25:10: fatal error: sys/io.h: No such file or directory 25 | #include | ^~~~~~~~~~ compilation terminated. --8<---------------cut here---------------end--------------->8--- Thanks, Mathieu From c9424c606e0cfcdb9bf10447bb655ab65a3a2056 Mon Sep 17 00:00:00 2001 Message-ID: From: Mathieu Othacehe Date: Mon, 8 Jan 2024 10:54:27 +0100 Subject: [PATCH] gnu: gnupg: Fix cross-compilation. * gnu/packages/gnupg.scm (gnupg)[arguments]: Pass libraries prefixes when cross-crompiling. Signed-off-by: Mathieu Othacehe Change-Id: I461ba02ddf5bb23277bd6685c2106e4ad37e2184 --- gnu/packages/gnupg.scm | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index a6ba57d7f3..f1e171036b 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -345,11 +345,30 @@ (define-public gnupg zlib)) (arguments (list - #:configure-flags #~'(;; Otherwise, the test suite looks for the `gpg` - ;; executable in its installation directory in - ;; /gnu/store before it has been installed. - "--enable-gnupg-builddir-envvar" - "--enable-all-tests") + #:configure-flags + #~'(#$@(if (%current-target-system) + #~(list + (string-append + "--with-libgpg-error-prefix=" + #$(this-package-input "libgpg-error")) + (string-append + "--with-libgcrypt-prefix=" + #$(this-package-input "libgcrypt")) + (string-append + "--with-libassuan-prefix=" + #$(this-package-input "libassuan")) + (string-append + "--with-ksba-prefix=" + #$(this-package-input "libksba")) + (string-append + "--with-npth-prefix=" + #$(this-package-input "npth"))) + '()) + ;; Otherwise, the test suite looks for the `gpg` + ;; executable in its installation directory in + ;; /gnu/store before it has been installed. + "--enable-gnupg-builddir-envvar" + "--enable-all-tests") #:phases #~(modify-phases %standard-phases (add-before 'configure 'patch-paths base-commit: 728d471d73c3731b86cbf5f3dee22229d3a92d4b -- 2.41.0