From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iM4GIMSYQ2QEvAAASxT56A (envelope-from ) for ; Sat, 22 Apr 2023 10:20:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MJURH8SYQ2THegEAG6o9tA (envelope-from ) for ; Sat, 22 Apr 2023 10:20:20 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0595B1372 for ; Sat, 22 Apr 2023 10:20:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pq8TU-000775-1x; Sat, 22 Apr 2023 04:20:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pq8TS-00076t-NF for bug-guix@gnu.org; Sat, 22 Apr 2023 04:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pq8TS-0000bz-F0 for bug-guix@gnu.org; Sat, 22 Apr 2023 04:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pq8TR-0007gF-Pg for bug-guix@gnu.org; Sat, 22 Apr 2023 04:20:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63009: /profile/bin missing from PATH for ssh commands Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 22 Apr 2023 08:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63009 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63009@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168215159529501 (code B ref -1); Sat, 22 Apr 2023 08:20:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Apr 2023 08:19:55 +0000 Received: from localhost ([127.0.0.1]:41620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq8TL-0007fl-AJ for submit@debbugs.gnu.org; Sat, 22 Apr 2023 04:19:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:34934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq8TG-0007fY-6P for submit@debbugs.gnu.org; Sat, 22 Apr 2023 04:19:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pq8TF-000760-IC for bug-guix@gnu.org; Sat, 22 Apr 2023 04:19:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pq8TF-0000ai-1c; Sat, 22 Apr 2023 04:19:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=xtOyNSJnfg6PCUjKHG3YMh7FN+CckVRFktqMqLUPI2E=; b=qASyo9TW/g6y7A BQjL2WK1JGRm17J+uAdkO6Fo+UkPt5lRQOimkbQxWH/VEFSSDWA4BZb6048osNB6wf3d8qR8D+7W3 CVcAKm7Db9rCnzRzpx/Vsqdk61tQ9dyRIXgiYirUCNLPv/GMQj6L2qRmw1SWGXJn5W6POISciw/4Z TwxrpPZN+HjPXzwNARs/+LXfapr/BJFejXEeGHo99O99/cvVEUnrpnArMQwx/ByhpHxFJ3i0wS8IL TVpnBb7DWixtJIaauCg6nUKtRy+ZCjPaRbqnwneu7+n8kk/5rK8UezRAdhTiP3TZYCPD8Js/gDBos qmfOx9c06aWBIfvF0NWw==; Received: from 2a02-a462-da03-1-2701-7f81-a736-4607.fixed6.kpn.net ([2a02:a462:da03:1:2701:7f81:a736:4607] helo=drakenpad.janneke.lilypond.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pq8TE-0007jX-GO; Sat, 22 Apr 2023 04:19:48 -0400 From: Janneke Nieuwenhuizen Organization: AvatarAcademy.nl X-Url: http://AvatarAcademy.nl Date: Sat, 22 Apr 2023 10:19:45 +0200 Message-ID: <87fs8ss50e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682151620; a=rsa-sha256; cv=none; b=WTe+gssq7PYmSfAr9Fs+k0Uq8Cw8cgbi3N3gTCFVUyNuFIpVXSfP4bj1yzoW4e03byjSpG adAf0eZKNeR58PxwLbEQzFqwZl3twAfOEPtKoIv3W9i5Pc/MgC9sGvO+tpmHDWFRM6otnJ x77FdZJeJ5zOEGdTWZLSEyB660dYbt/rHyv9RxYVanE/xv11PDjyyosPW0ZmPJErS7Y6s7 QrBhb4s4jNyUpiokYitK2GCeBY7cYnZXSH0KSvGYvviyQFgHh644AHMSbCS+F2YoWRkq8f 2b9H8ab4ZaJ49ItHW+OWqNFxkS8hO09ap3O6VZSxVqh2tzA4A8KqxdvBh33s5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=qASyo9TW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682151620; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=xtOyNSJnfg6PCUjKHG3YMh7FN+CckVRFktqMqLUPI2E=; b=rVV0nx7YxKRn0fM8uwgw8Y81fwPFXpIsNZRXnLYYaTeDJijJ8IgAfnVbN0UU+pTSLaice7 VBoSl6B2/HkljKLJJBYnUWwtCyu8ZuYbPaPJKjhauUby968V8AWr6n8ypzhNeHmZPnyysX EEjtcDqPjBM7hPHadSR1CET9RU8hh5G06F9ZvbBfrjdZ5OhknduuEqcj7HuLQ1g3lhE70m zzYQLM4AnQdq1X0VShOBJE+rV/SIVx16qJUYhJq1i44TqK5n/Utw6JtsShzA3ijzOeDQH2 GFyDveHhUgB9F7FZ4W/cNiDcjjnJWVVmG8EkDXB93yCYweFxOVia3YzRDax6JA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=qASyo9TW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.11 X-Spam-Score: -4.11 X-Migadu-Queue-Id: 0595B1372 X-TUID: Q/fgQ18C52sQ --=-=-= Content-Type: text/plain Hi, Yesterday I updated my account on our 'kluit' server to use guix home, and found that broke pushing to my git archives. Apparently, my git installed as a guix home package is not seen for ssh commands. --8<---------------cut here---------------start------------->8--- $ ssh kluit type -p git [1]10:13:59 janneke@drakenpad:~ $ ssh kluit echo '$PATH' /run/setuid-programs:/home/janneke/.config/guix/current/bin:/home/janneke/.guix-profile/bin:/run/current-system/profile/bin:/run/current-system/profile/sbin --8<---------------cut here---------------end--------------->8--- See? Although there is no "/home/janneke/.guix-profile/bin", it is still present in PATH, while "/home/janneke/.guix-home/profile/bin" is missing! Also (re-)installing git in my home profile again (ugh!) is a workaround to fix this: --8<---------------cut here---------------start------------->8--- $ ssh kluit type -p git /home/janneke/.guix-profile/bin/git 10:14:52 janneke@drakenpad:~ --8<---------------cut here---------------end--------------->8--- The attached patch has a fix for this. WYDT? Greetings, Janneke --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-system-Cater-for-Guix-Home-in-PATH.patch Content-Transfer-Encoding: quoted-printable >From 2ac41477dad5699b748acfc72d4e91e0e14fa16a Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen 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 /profile/bin directory to PATH, before /bin. --- gnu/system.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/system.scm b/gnu/system.scm index c17c6e4e98..df1e4e8640 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -10,7 +10,7 @@ ;;; Copyright =C2=A9 2020, 2021 Brice Waegeneire ;;; Copyright =C2=A9 2020 Florian Pelz ;;; Copyright =C2=A9 2020, 2022 Maxim Cournoyer -;;; Copyright =C2=A9 2020 Jan (janneke) Nieuwenhuizen +;;; Copyright =C2=A9 2020, 2023 Jan (janneke) Nieuwenhuizen ;;; Copyright =C2=A9 2020, 2022 Efraim Flashner ;;; Copyright =C2=A9 2021 Maxime Devos ;;; Copyright =C2=A9 2021 raid5atemyhomework @@ -1037,8 +1037,11 @@ (define* (operating-system-etc-service os) export `cat /etc/environment | cut -d=3D -f1` fi =20 -# Arrange so that ~/.config/guix/current comes first. -for profile in \"$HOME/.guix-profile\" \"$HOME/.config/guix/current\" +# Arrange so that ~/.config/guix/current comes first, +# and guix-home comes before guix-profile. +for profile in \"$HOME/.guix-profile\" \\ + \"$HOME/.guix-home/profile\" \\ + \"$HOME/.config/guix/current\" do if [ -f \"$profile/etc/profile\" ] then --=20 2.39.2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | Avatar=C2=AE https://AvatarAcade= my.com --=-=-=--