Subject: Re: bug#48014: [PATCH] gnu: global: fix globash

From: Maxime Devos <[email-masked]>
Date: Wed, 28 Apr 2021 13:32:20 +0200

Efraim Flashner schreef op wo 28-04-2021 om 12:26 [+0300]:
> It turns out that coreutils is already an implicit input in the build
> environment so I removed it from the inputs.

coreutils is an implicit native inputs, but is it also an implicit input?
If the latter does not hold, coreutils should still be present when cross-compiling.

On my x86-64-linux-gnu system:
$ guix pull
$ guix build --target=aarch64-linux-gnu globash
> [...]
> phase `unpack' succeeded after 0.1 seconds
> starting phase `fix-globash'
> Backtrace:
> [...]
> In unknown file:
>            1 (string-append #f "/bin/echo")
> In ice-9/boot-9.scm:
>   1669:16  0 (raise-exception _ #:continuable? _)
>
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> In procedure string-append: Wrong type (expecting string): #f
> builder for `/gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv' failed with exit code 1
> build of /gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv failed
> View build log at '/var/log/guix/drvs/k4/2zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv.bz2'.
> guix build: error: build of `/gnu/store/k42zib6sbrfk0w4al6lxl2z32fky0dcr-global-6.6.5.drv' failed

So it seems coreutils should be present in inputs after all.
Could you re-add coreutils to 'inputs'?

Greetings,
Maxime.