Subject: Re: bug#40392: [core-updates] pack vs. build discrepancy with --target=i586-pc-gnu

From: Ludovic Courtès <[email-masked]>
Date: Sun, 05 Apr 2020 01:14:56 +0200

Hi,

Ludovic Courtès <[email-masked]> 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’.