Mikael Djurfeldt <address@hidden> writes:
>> It might be .bashrc is configured not to source the relevant scripts
>> when being invoked non-interactively, and/or through an SSH session.
> You're right. It doesn't source the scripts. The PATH only becomes
> /usr/local/bin:/usr/bin:/bin:/usr/games in this case.
On Guix System, the default .bashrc does this:
if [[ $- != *i* ]]
# We are being invoked from a non-interactive shell. If this
# is an SSH session (as in "ssh host command"), source
# /etc/profile so we get PATH and other essential variables.
[[ -n "$SSH_CLIENT" ]] && source /etc/profile
# Don't do anything else.
IIRC Debian does something similar to detect if being invoked
non-interactively, but then just returns instead of sourcing anything.
Adding a line that sources ~/.guix-profile/etc/profile before the check
for an interactive shell might be enough in that case.
I examined this a bit. You're right about .bashrc. But sourcing that profile is not sufficient.
Just as a test, I enabled user specified environments in sshd_config (such that ssh reads .ssh/environment) and added the following there:
This made the offload test work.
Crucial here is the PATH to guile 3.0.1 as well as the GUILE_LOAD_* paths.
But how are these *supposed* to be setup on the build host???