Subject: bug#27042: test-package.sh fails on aarch64

From: [email-masked] (Ludovic Courtès)
Date: Sun, 02 Jul 2017 21:53:58 +0200

Efraim Flashner <[email-masked]> skribis:

> On Sun, Jul 02, 2017 at 11:13:05AM +0200, Ludovic Courtès wrote:

[...]

>> > guix: offload: command not found
>> 
>> And “./pre-inst-env guile -c '(use-modules (ssh key))'” fails as well I
>> guess?
>> 
>> That would mean that Guile-SSH was found at configure time (i.e., it was
>> in GUILE_LOAD_PATH) but has since disappeared or become unusable (e.g.,
>> GUILE_LOAD_PATH is different and no longer includes it, or Guile-SSH has
>> been uninstalled, or a Guile-SSH is installed but it’s one for Guile 2.0
>> and you’re using 2.2 or vice-versa, etc.).
>> 
>> Does this hypothesis hold?  :-)
>> 
>
> firefly@firefly$ which guile
> firefly@firefly$ guix environment --ad-hoc guile -- ./pre-inst-env guile -c '((use-modules (ssh key))'
> ...snip...
> ;;; compiling /gnu/store/...-guile-ssh-0.11.0/share/guile/site/2.2/ssh/key.scm
> ;;; compiling /gnu/store/...-guile-ssh-0.11.0/share/guile/site/2.2/ssh/log.scm
> ;;; ssh/log.scm:65:4: warning: possibly unbound variable `%write-log'
> ;;; compiled ...
> ;;; compiled ...
> firefly@firefly$ env | grep guile
> firefly@firefly$ env | grep GUILE
> firefly@firefly$

Could it be that ‘guix environment’ sources your shell startup file
(e.g., .bashrc), and that said file adds Guile-SSH to GUILE_LOAD_PATH?

That would explain while the first command finds Guile-SSH while “env”
outside of ‘guix environment’ shows that GUILE_LOAD_PATH is unset.

Ludo’.