GNU bug report logs - #40392
[core-updates] pack vs. build discrepancy with --target=i586-pc-gnu

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 2 Apr 2020 21:35:02 UTC

Severity: normal

To reply to this bug, email your comments to 40392 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#40392; Package guix. (Thu, 02 Apr 2020 21:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 02 Apr 2020 21:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: [core-updates] pack vs. build discrepancy with --target=i586-pc-gnu
Date: Thu, 02 Apr 2020 23:34:32 +0200
On current ‘wip-hurd-vm’ (very close to ‘core-updates’), there’s this
discrepancy between ‘pack’ and ‘build’:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build hurd --target=i586-pc-gnu -d --no-grafts
/gnu/store/m8gvpjh1dlgx8v3dbvkpqw17k00h9hv3-hurd-0.9-1.91a5167.drv
$ ./pre-inst-env guix pack hurd --target=i586-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ès <ludo <at> gnu.org>
Date:   Thu Apr 2 16:47:40 2020 +0200

    gnu: cross-libc: Add patch to add 'mach_print' symbol on GNU/Hurd.
    
    * 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---

‘guix pack’ would build a different hurd derivation, one that actually
fails to build.  The difference here is that the “wrong” hurd derivation
depends on a glibc-hurd-headers-2.31.drv that lacks MiG as an input,
which suggests that the (if (hurd-target?) …) conditional in ‘glibc’ is
not working as expected.

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#40392; Package guix. (Sat, 04 Apr 2020 23:16:01 GMT) Full text and rfc822 format available.

Message #8 received at 40392 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 40392 <at> debbugs.gnu.org
Subject: Re: bug#40392: [core-updates] pack vs. build discrepancy with
 --target=i586-pc-gnu
Date: Sun, 05 Apr 2020 01:14:56 +0200
Hi,

Ludovic Courtès <ludo <at> gnu.org> skribis:

> ‘guix pack’ would build a different hurd derivation, one that actually
> fails to build.  The difference here is that the “wrong” hurd derivation
> depends on a glibc-hurd-headers-2.31.drv that lacks MiG as an input,
> which suggests that the (if (hurd-target?) …) conditional in ‘glibc’ is
> not working as expected.

Part of the problem is “fixed” by passing #:target to ‘run-with-store’
in ‘guix pack’, done in commit f7b5b8cd45b4560b3473dde2e6f6f20b4ff9daff
on ‘master’.

The other part of the problem is that profile hooks in
‘profile-derivation’ don’t honor #:target.

One can work around this by running ‘guix pack --bootstrap’ so that no
profile hooks are run.

Ludo’.




This bug report was last modified 4 years and 21 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.