From unknown Fri Jun 20 07:16:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40392 <40392@debbugs.gnu.org> To: bug#40392 <40392@debbugs.gnu.org> Subject: Status: [core-updates] pack vs. build discrepancy with --target=i586-pc-gnu Reply-To: bug#40392 <40392@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:16:20 +0000 retitle 40392 [core-updates] pack vs. build discrepancy with --target=3Di58= 6-pc-gnu reassign 40392 guix submitter 40392 Ludovic Court=C3=A8s severity 40392 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 02 17:34:43 2020 Received: (at submit) by debbugs.gnu.org; 2 Apr 2020 21:34:43 +0000 Received: from localhost ([127.0.0.1]:40859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jK7U3-0006vy-Jz for submit@debbugs.gnu.org; Thu, 02 Apr 2020 17:34:43 -0400 Received: from lists.gnu.org ([209.51.188.17]:43002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jK7U0-0006vg-Cl for submit@debbugs.gnu.org; Thu, 02 Apr 2020 17:34:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56746) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jK7Tw-000637-Fm for bug-guix@gnu.org; Thu, 02 Apr 2020 17:34:40 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jK7Tw-0006KV-CI for bug-guix@gnu.org; Thu, 02 Apr 2020 17:34:36 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45970 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jK7Tv-0008Sk-2H for bug-guix@gnu.org; Thu, 02 Apr 2020 17:34:35 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: [core-updates] pack vs. build discrepancy with --target=i586-pc-gnu X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 Germinal an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 02 Apr 2020 23:34:32 +0200 Message-ID: <87wo6xlggn.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On current =E2=80=98wip-hurd-vm=E2=80=99 (very close to =E2=80=98core-updat= es=E2=80=99), there=E2=80=99s this discrepancy between =E2=80=98pack=E2=80=99 and =E2=80=98build=E2=80=99: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build hurd --target=3Di586-pc-gnu -d --no-grafts /gnu/store/m8gvpjh1dlgx8v3dbvkpqw17k00h9hv3-hurd-0.9-1.91a5167.drv $ ./pre-inst-env guix pack hurd --target=3Di586-pc-gnu -n --no-grafts The following derivations would be built: /gnu/store/1vq3dzc74afy34i6ylymlqqw8hmxvrc8-tarball-pack.tar.gz.drv /gnu/store/bzxr1n7z5rkksavql1nckyri4qdslrms-profile.drv /gnu/store/gs1zz38m5vvm6fy3nh1jv3fj4vikzmhf-hurd-0.9-1.91a5167.drv /gnu/store/17m76zz1nia4mxafh5bzcjlcgf631pzq-glibc-hurd-headers-2.31.drv The following profile hooks would be built: /gnu/store/0sk6qm07y32gf3ljxk718d2g7c0nnh8m-manual-database.drv /gnu/store/61qr5qwryi3k1vwbi2ddhy24qy7ld4di-fonts-dir.drv /gnu/store/ahcfp2f1ddnym4sw4j8c23mz64mkzvid-info-dir.drv /gnu/store/iw2hzd7fsl62a7y2nj577bg89cys0i3q-ca-certificate-bundle.drv $ git log |head commit b61467c0c813e65ed86d9b1b8ba1187f117751b9 Author: Ludovic Court=C3=A8s Date: Thu Apr 2 16:47:40 2020 +0200 gnu: cross-libc: Add patch to add 'mach_print' symbol on GNU/Hurd. =20=20=20=20 * gnu/packages/patches/glibc-hurd-mach-print.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/cross-base.scm (cross-libc): Add 'patch-libc/hurd' phase when 'hurd-target?' is true. --8<---------------cut here---------------end--------------->8--- =E2=80=98guix pack=E2=80=99 would build a different hurd derivation, one th= at actually fails to build. The difference here is that the =E2=80=9Cwrong=E2=80=9D hu= rd derivation depends on a glibc-hurd-headers-2.31.drv that lacks MiG as an input, which suggests that the (if (hurd-target?) =E2=80=A6) conditional in =E2=80= =98glibc=E2=80=99 is not working as expected. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 04 19:15:07 2020 Received: (at 40392) by debbugs.gnu.org; 4 Apr 2020 23:15:07 +0000 Received: from localhost ([127.0.0.1]:44961 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jKs0I-0007EY-T2 for submit@debbugs.gnu.org; Sat, 04 Apr 2020 19:15:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56625) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jKs0G-0007DS-I1 for 40392@debbugs.gnu.org; Sat, 04 Apr 2020 19:15:05 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jKs0B-0005Fq-FG for 40392@debbugs.gnu.org; Sat, 04 Apr 2020 19:14:59 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38808 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jKs0A-0001nC-Vw for 40392@debbugs.gnu.org; Sat, 04 Apr 2020 19:14:59 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 40392@debbugs.gnu.org Subject: Re: bug#40392: [core-updates] pack vs. build discrepancy with --target=i586-pc-gnu References: <87wo6xlggn.fsf@inria.fr> Date: Sun, 05 Apr 2020 01:14:56 +0200 In-Reply-To: <87wo6xlggn.fsf@inria.fr> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22\?\= \=\?utf-8\?Q\?'s\?\= message of "Thu, 02 Apr 2020 23:34:32 +0200") Message-ID: <87eet2kfm7.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40392 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Ludovic Court=C3=A8s skribis: > =E2=80=98guix pack=E2=80=99 would build a different hurd derivation, one = that actually > fails to build. The difference here is that the =E2=80=9Cwrong=E2=80=9D = hurd derivation > depends on a glibc-hurd-headers-2.31.drv that lacks MiG as an input, > which suggests that the (if (hurd-target?) =E2=80=A6) conditional in =E2= =80=98glibc=E2=80=99 is > not working as expected. Part of the problem is =E2=80=9Cfixed=E2=80=9D by passing #:target to =E2= =80=98run-with-store=E2=80=99 in =E2=80=98guix pack=E2=80=99, done in commit f7b5b8cd45b4560b3473dde2e6f6= f20b4ff9daff on =E2=80=98master=E2=80=99. The other part of the problem is that profile hooks in =E2=80=98profile-derivation=E2=80=99 don=E2=80=99t honor #:target. One can work around this by running =E2=80=98guix pack --bootstrap=E2=80=99= so that no profile hooks are run. Ludo=E2=80=99.