GNU bug report logs - #63009
<guix-home>/profile/bin missing from PATH for ssh commands

Previous Next

Package: guix;

Reported by: Janneke Nieuwenhuizen <janneke <at> gnu.org>

Date: Sat, 22 Apr 2023 08:20:01 UTC

Severity: normal

Tags: patch

Done: Janneke Nieuwenhuizen <janneke <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Hilton Chain <hako <at> ultrarare.space>
To: Janneke Nieuwenhuizen <janneke <at> gnu.org>
Cc: 63009 <at> debbugs.gnu.org
Subject: bug#63009: <guix-home>/profile/bin missing from PATH for ssh commands
Date: Sat, 15 Mar 2025 13:34:38 +0800
Hi Janneke,

On Fri, 14 Mar 2025 21:02:56 +0800,
Janneke Nieuwenhuizen wrote:
>
> Janneke Nieuwenhuizen writes:
>
> Hello,
>
> > Ludovic Courtès writes:
> >
> > Hello,
> >
> >> This patch had fallen through the cracks…
> >
> > Ah, no problem.
>
> Oh my, as kinote noticed on IRC, somehow it fell through the cracks
> again: <https://logs.guix.gnu.org/guix/2025-03-14.log#124505>.
>
> >> Janneke Nieuwenhuizen <janneke <at> gnu.org> skribis:
> >>
> >>>>From 2ac41477dad5699b748acfc72d4e91e0e14fa16a Mon Sep 17 00:00:00 2001
> >>> From: Janneke Nieuwenhuizen <janneke <at> gnu.org>
> >>> Date: Sat, 22 Apr 2023 09:58:48 +0200
> >>> Subject: [PATCH] gnu: system: Cater for Guix Home in PATH.
> >>>
> >>> * gnu/system.scm (operating-system-etc-service): Also add a user's
> >>> <guix-home>/profile/bin directory to PATH, before <guix-profile>/bin.
> >>
> >> LGTM, thanks!
> >
> > Great, pushed to master as
> >
> >     ff2e22d1e122eb5b85fd85f8e922e6e8cfb0ee7b
>
> Really pushed to master as
>
>     2b6017dd0b031e43de7e66b3e1f3f331c0ab712c

It seems this is already set by Guix Home?

My currently $PATH with this change:
--8<---------------cut here---------------start------------->8---
/home/hako/.guix-home/profile/bin
/home/hako/.guix-home/profile/sbin
/run/privileged/bin
/home/hako/.config/guix/current/bin
/home/hako/.guix-home/profile/bin
/home/hako/.guix-home/profile/sbin
/home/hako/.guix-profile/bin
/run/current-system/profile/bin
/run/current-system/profile/sbin
--8<---------------cut here---------------end--------------->8---

The first two entries are prepended by ~/.guix-home/setup-environment:
--8<---------------cut here---------------start------------->8---
GUIX_PROFILE="$HOME_ENVIRONMENT/profile"
PROFILE_FILE="$GUIX_PROFILE/etc/profile"
[ -f $PROFILE_FILE ] && . $PROFILE_FILE
--8<---------------cut here---------------end--------------->8---

I think we should either don't set PATH in Guix Home (how about foreign
distros?), or revert this commit and prepend /run/privileged/bin in Guix Home.

BTW I think ~/.guix-profile can be ordered before ~/.guix-home so that it's
imperative profiles first, and declarative profiles second.

WDYT?

This bug report was last modified 62 days ago.

Previous Next


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