Package: guix
Version: 1.4.0-9
Tags: patch

Hi!  It seems souring /etc/profile.d/guix.sh can return non-zero due to
this line:

[ -L $GUIX_PROFILE ] || return

This happens if the first command fail in a pipefail situation.  I
suppose the intention was to exit with error code 0 if GUIX_PROFILE
isn't a symlink?  If so, see attached patch, also pushed here:

https://salsa.debian.org/debian/guix/-/merge_requests/4

/Simon
From 4a0cfaff9a11b22308a2ff2a54d42399d3bee53b Mon Sep 17 00:00:00 2001
From: Simon Josefsson <[email protected]>
Date: Thu, 18 Dec 2025 18:45:21 +0100
Subject: [PATCH] Don't fail /etc/profile.d/guix.sh for normal setup

---
 debian/guix.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/guix.sh b/debian/guix.sh
index f393f861a8..a4349ac30e 100644
--- a/debian/guix.sh
+++ b/debian/guix.sh
@@ -21,7 +21,7 @@ export INFOPATH="$_GUIX_PROFILE/share/info:$INFOPATH"
 # Prefer the one from 'guix home' if it exists.
 GUIX_PROFILE="$HOME/.guix-home/profile"
 [ -L $GUIX_PROFILE ] || GUIX_PROFILE="$HOME/.guix-profile"
-[ -L $GUIX_PROFILE ] || return
+[ -L $GUIX_PROFILE ] || return 0
 GUIX_LOCPATH="$GUIX_PROFILE/lib/locale"
 export GUIX_LOCPATH
 
-- 
2.52.0

Attachment: signature.asc
Description: PGP signature

Reply via email to