From unknown Tue Jun 17 22:30:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40872: First installed package on guix system is not instantly usable Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Apr 2020 16:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40872 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 40872@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158791697512935 (code B ref -1); Sun, 26 Apr 2020 16:03:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Apr 2020 16:02:55 +0000 Received: from localhost ([127.0.0.1]:33986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSjk6-0003MY-7k for submit@debbugs.gnu.org; Sun, 26 Apr 2020 12:02:54 -0400 Received: from lists.gnu.org ([209.51.188.17]:58256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSgYp-0003gC-9e for submit@debbugs.gnu.org; Sun, 26 Apr 2020 08:39:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37172) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSgYo-0003bT-Rj for bug-guix@gnu.org; Sun, 26 Apr 2020 08:39:03 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSgYn-0003fR-R6 for bug-guix@gnu.org; Sun, 26 Apr 2020 08:39:02 -0400 Received: from vsmx011.vodafonemail.xion.oxcs.net ([153.92.174.89]:21489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSgYn-0003fB-8M for bug-guix@gnu.org; Sun, 26 Apr 2020 08:39:01 -0400 Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 095E159D135 for ; Sun, 26 Apr 2020 12:38:57 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [94.220.249.214]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id CD0E4539AB6 for ; Sun, 26 Apr 2020 12:38:54 +0000 (UTC) From: Stefan Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@vodafonemail.de> Date: Sun, 26 Apr 2020 14:38:53 +0200 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT Received-SPF: pass client-ip=153.92.174.89; envelope-from=stefan-guix@vodafonemail.de; helo=vsmx011.vodafonemail.xion.oxcs.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/26 08:38:57 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 153.92.174.89 X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Sun, 26 Apr 2020 12:02:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi! I have a guix system and my user account has no package installed yet. = After installing the first package =E2=80=93 git-minimal in my case =E2=80= =93 this message is printed and I get this error when trying to use the = new command: building profile with 1 package... Hinweis: Vielleicht m=C3=B6chten Sie die n=C3=B6tigen Umgebungsvariablen = festlegen, indem Sie dies ausf=C3=BChren: GUIX_PROFILE=3D"/home/stefan/.guix-profile" . "$GUIX_PROFILE/etc/profile" Sie k=C3=B6nnen sie auch mit `guix package --search-paths -p = "/home/stefan/.guix-profile"' nachlesen. stefan@guix ~$ git show -bash: git: Kommando nicht gefunden. The problem is that without a single package installed there is no user = profile-link present: stefan@guix ~$ echo $PATH = /run/setuid-programs:/home/stefan/.config/guix/current/bin:/run/current-sy= stem/profile/bin:/run/current-system/profile/sbin This is of course easily solved by either following the hint or a logout = and login: stefan@guix ~$ exit Abgemeldet Connection to raspberry closed. Computer:~ stefan$ ssh stefan@raspberry Last login: Sun Apr 26 13:59:31 2020=20 stefan@guix ~$ echo $PATH = /run/setuid-programs:/home/stefan/.config/guix/current/bin:/home/stefan/.g= uix-profile/bin:/run/current-system/profile/bin:/run/current-system/profil= e/sbin However, this gives a bad first impression to users. Moreover users may = think that a logout/login cycle or manually following the hint could be = necessary after each package installation. They may get annoyed by this. Bye Stefan From unknown Tue Jun 17 22:30:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40872: First installed package on guix system is not instantly usable Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 28 Apr 2020 16:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40872 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Stefan , 40872@debbugs.gnu.org Received: via spool by 40872-submit@debbugs.gnu.org id=B40872.158809035620000 (code B ref 40872); Tue, 28 Apr 2020 16:13:01 +0000 Received: (at 40872) by debbugs.gnu.org; 28 Apr 2020 16:12:36 +0000 Received: from localhost ([127.0.0.1]:41146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTSqa-0005CV-Cj for submit@debbugs.gnu.org; Tue, 28 Apr 2020 12:12:36 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:41153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTSqY-0005CG-RJ for 40872@debbugs.gnu.org; Tue, 28 Apr 2020 12:12:35 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id CC25049A; Tue, 28 Apr 2020 12:12:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 28 Apr 2020 12:12:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=QQuOuDIg9y/qtP2aryJLbQIbfP ZgqpmVgt3ZrEne6GI=; b=kbM/9avpwJbN9U63NlOrtg2eqenEZZgU2W75wtzQWj SVB4jS4O5AeqemzCA8bYafvE2duImngku38ArfPgsPXBvu1iQ6v14G8RdP1cZZuI w34KytL58wHIXB3itu/MvG506lABYNSdyq4ORjCwciBpzmknJ39XehjOOnbcLjsG cN5Qv3uSP6vAFZbHzIiWwIpfnifrOyi+N1U6JskzoAlnIv/+zmRkekSj1Kvvelim IZryv8YbLQOJCawkNuwDmJgxoIdMuf8+DNgXuVO8doRklhnAmLWaZ7tAz4ZngZqd 6k+FneuO52+ddMCHwNewoHny7Jm/wXy3eIkDTc+4XVOw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=QQuOuD Ig9y/qtP2aryJLbQIbfPZgqpmVgt3ZrEne6GI=; b=CWh8EeOpohyZ8ACYlxWEXr 0zNvWu1MnfDFPcLHzHRzwDhmyn39N4SlcBdYeiDObeKE0VAY3eS+hej1eGO//m/B 6c3LciRFxj03rWexklUufr8bst2B3wvLP0Uq53osOUIWZFzmdrE/c+y904/NGPH7 0g5ZxsdM1k2Bep2bD5CILzqoi7f0iKMqVDsrLSYQ19gCIMCMxY4cq/CGJieZq0x3 LpUP8XdHcNTndCE30QxOXt29eG7hSginZc576emy01N/t3n3rAbwSjXIDJ1e2UXs lq+U7Jwk8EgMNt+NNxrMdijli1tf9/loxq8Y6Qtza1TyoU7JtfPEId6BwkTS5tEQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedriedugdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehgtderre dtreejnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht mhgrihhlrdgtohhmqeenucfkphepkeegrddvtddvrdeikedrjeehnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhm rghilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id A57763065E8A; Tue, 28 Apr 2020 12:12:27 -0400 (EDT) From: Marius Bakke In-Reply-To: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@vodafonemail.de> References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@vodafonemail.de> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Tue, 28 Apr 2020 18:12:25 +0200 Message-ID: <87sggn613q.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Stefan writes: > Hi! > > I have a guix system and my user account has no package installed yet. Af= ter installing the first package =E2=80=93 git-minimal in my case =E2=80=93= this message is printed and I get this error when trying to use the new co= mmand: > > building profile with 1 package... > Hinweis: Vielleicht m=C3=B6chten Sie die n=C3=B6tigen Umgebungsvariablen = festlegen, indem Sie dies ausf=C3=BChren: > > GUIX_PROFILE=3D"/home/stefan/.guix-profile" > . "$GUIX_PROFILE/etc/profile" > > Sie k=C3=B6nnen sie auch mit `guix package --search-paths -p "/home/stefa= n/.guix-profile"' nachlesen. > > stefan@guix ~$ git show > -bash: git: Kommando nicht gefunden. > > > The problem is that without a single package installed there is no user p= rofile-link present: > > > stefan@guix ~$ echo $PATH > /run/setuid-programs:/home/stefan/.config/guix/current/bin:/run/current-s= ystem/profile/bin:/run/current-system/profile/sbin This is odd, as /etc/profile contains a workaround for this exact problem (notice the else clause): # Arrange so that ~/.config/guix/current comes first. for profile in "$HOME/.guix-profile" "$HOME/.config/guix/current" do if [ -f "$profile/etc/profile" ] then # Load the user profile's settings. GUIX_PROFILE=3D"$profile" ; \ . "$profile/etc/profile" else # At least define this one so that basic things just work # when the user installs their first package. export PATH=3D"$profile/bin:$PATH" fi done Can you investigate why this is ineffective on your system? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6oVekACgkQoqBt8qM6 VProNgf/ZvnlCdPRXww+O7nwNqjdpuZK9QvlXjr1+BcFTfZSlJ6GKKJL3OYNBDiV aWj+OLhLfF8YLv95nmaM8OteSU1cAsz3ubokHdSmrEdjrXKyiL681r+HRYhQHITU K4RqmBvaZDi1jczBdh+qnuwmauaZNOZM5QgwmFXkuE/wTIbVkTxBvWPvNRUB+ndU Azksmi1Q1oW02Q8HQyl8fXW30xjsOXDBbutUrxL9fzudAmCgvF7J+HhCVauSPhxA Bbep/7xZ0rBj7A0XTJO0WyXgU9V5Xhz7/a15NhOxf798hSq/bVVqqc7aO8ZudxhV 4vMU3V5Wg1ISJyWJVFDS/PaXlT1uhQ== =3rqB -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Jun 17 22:30:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40872: First installed package on guix system is not instantly usable Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 28 Apr 2020 21:01:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40872 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marius Bakke Cc: 40872@debbugs.gnu.org Received: via spool by 40872-submit@debbugs.gnu.org id=B40872.158810765916724 (code B ref 40872); Tue, 28 Apr 2020 21:01:04 +0000 Received: (at 40872) by debbugs.gnu.org; 28 Apr 2020 21:00:59 +0000 Received: from localhost ([127.0.0.1]:41763 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTXLe-0004Lg-Vi for submit@debbugs.gnu.org; Tue, 28 Apr 2020 17:00:59 -0400 Received: from vsmx011.vodafonemail.xion.oxcs.net ([153.92.174.89]:27707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTWFH-0002Lw-N6 for 40872@debbugs.gnu.org; Tue, 28 Apr 2020 15:50:20 -0400 Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 7320C59D0B4; Tue, 28 Apr 2020 19:50:13 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [2.201.117.70]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id F0783539ADC; Tue, 28 Apr 2020 19:50:08 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Stefan In-Reply-To: <87sggn613q.fsf@devup.no> Date: Tue, 28 Apr 2020 21:50:14 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@vodafonemail.de> <87sggn613q.fsf@devup.no> X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Tue, 28 Apr 2020 17:00:58 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Marius! > This is odd, as /etc/profile contains a workaround for this exact > problem (notice the else clause): >=20 > # Arrange so that ~/.config/guix/current comes first. > for profile in "$HOME/.guix-profile" "$HOME/.config/guix/current" > do > if [ -f "$profile/etc/profile" ] > then > # Load the user profile's settings. > GUIX_PROFILE=3D"$profile" ; \ > . "$profile/etc/profile" > else > # At least define this one so that basic things just work > # when the user installs their first package. > export PATH=3D"$profile/bin:$PATH" > fi > done >=20 > Can you investigate why this is ineffective on your system? Previously I had some packages installed, but I rolled-back to = generation 0. I found this in my scroll-back buffer: stefan@guix ~/development/guix$ guix package --roll-back Folgende Ableitung wird erstellt: /gnu/store/l0n6l104ldj7nz6kdyi7l8v5yjnc9p9g-profile.drv building profile with 0 packages... Von Generation =E2=80=9E1=E2=80=9C zu =E2=80=9E0=E2=80=9C gewechselt By rolling back it created a new generation 0 profile which is now lying = around with this kind of empty file:=20 stefan@guix ~$ cat .guix-profile/etc/profile=20 # Source this file to define all the relevant environment variables in = Bash # for this profile. You may want to define the 'GUIX_PROFILE' = environment # variable to point to the "visible" name of the profile, like this: # # GUIX_PROFILE=3D/path/to/profile ; \ # source /path/to/profile/etc/profile # # When GUIX_PROFILE is undefined, the various environment variables = refer # to this specific profile generation. So the test for the existence of this file does not fail, but it doesn't = change PATH either. This is the profile content, it has no bin/ folder = to add to PATH: stefan@guix ~$ ls -lA = /gnu/store/yyxqc1rhz2i062xq8lbfrhhmiyf6pzvp-profile insgesamt 12 dr-xr-xr-x 2 root root 4096 1. Jan 1970 etc/ -r--r--r-- 4 root root 37 1. Jan 1970 manifest Bye Stefan= From unknown Tue Jun 17 22:30:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40872: First installed package on guix system is not instantly usable Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 02 May 2020 14:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40872 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Stefan Cc: 40872@debbugs.gnu.org Received: via spool by 40872-submit@debbugs.gnu.org id=B40872.1588429223815 (code B ref 40872); Sat, 02 May 2020 14:21:01 +0000 Received: (at 40872) by debbugs.gnu.org; 2 May 2020 14:20:23 +0000 Received: from localhost ([127.0.0.1]:53579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUt0A-0000D5-TH for submit@debbugs.gnu.org; Sat, 02 May 2020 10:20:23 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:39503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUt09-0000Co-Ha for 40872@debbugs.gnu.org; Sat, 02 May 2020 10:20:22 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D6C444C4; Sat, 2 May 2020 10:20:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 02 May 2020 10:20:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=iHS9kdjSLDJdVn0dpTaFskbUtM r4cVjK0Z6e362glO8=; b=B+6ByQXWm3pxPJQgfiSIdq+W8hlZoLo8l4ZfeIa0sK H6c26MxKhRYOKyiktkqimQwDkgIMTg4pSdzDGd8vc9brdahnt6H4eLONZsYANC14 cgk1vKHS3fulnnZ1S1xxU/dSr4FNebonSkBTwzISPYkgRmSmLfgZOB2gBNjqruwy hMPakX90IrPOiO3+MaogPFg92x6SkwwxzFbjIHrrcK+IAsyS7ONHxd2vQZm+os+Z UFJqmpvPEBtPSg5Yf078zQccHkVhkaQ5smFXwmc3oadEcUlD5Zi6yNQQYGAUnVks 3lWvHvACz3Ks0QApZ6wgne/e5JnunIayBW/TW6oJb3CA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=iHS9kd jSLDJdVn0dpTaFskbUtMr4cVjK0Z6e362glO8=; b=mUnjlGQIFjOk51sHMNMnKB MuuDV5TF4JVwJlsLasGFnp/fcg4aonWI2595H7jAmri3nby6C+fffBDEWTKIP/0r 3kY5N9FUlpCD3VLWdAvt8YOKneHBogm+sh9gAwbhCeux6IhooPDTLlNjNmxrgO8L 6J8zvJPwqiFWK526+g23s2oKI0BRlG39LqP9Ovleut1+aXYXQdWrdcfgmXkhYOAX 0siYEClqc1PDkCd0LSV9XsTcm+I42QPIPV8X+s7kcHQS89jWzfx6NXbhlw3WZh6a ymR+JklsY+uJY5vPYSVg8WUJdw3Qu+pd7hwthnPIjaxSqQt8KovTU10uSN+uB2ig == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieelgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehgtderre dtreejnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht mhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeektdelffevvedtledvvedugeffie ffhfelgeehtedugedvgeeguedujefhjefhteenucfkphepkeegrddvtddvrdeikedrjeeh necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrg hkkhgvsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 1B7F33280064; Sat, 2 May 2020 10:20:13 -0400 (EDT) From: Marius Bakke In-Reply-To: References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@vodafonemail.de> <87sggn613q.fsf@devup.no> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Sat, 02 May 2020 16:20:12 +0200 Message-ID: <87pnbm2zc3.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Stefan writes: > Hi Marius! > >> This is odd, as /etc/profile contains a workaround for this exact >> problem (notice the else clause): >>=20 >> # Arrange so that ~/.config/guix/current comes first. >> for profile in "$HOME/.guix-profile" "$HOME/.config/guix/current" >> do >> if [ -f "$profile/etc/profile" ] >> then >> # Load the user profile's settings. >> GUIX_PROFILE=3D"$profile" ; \ >> . "$profile/etc/profile" >> else >> # At least define this one so that basic things just work >> # when the user installs their first package. >> export PATH=3D"$profile/bin:$PATH" >> fi >> done >>=20 >> Can you investigate why this is ineffective on your system? > > Previously I had some packages installed, but I rolled-back to generation= 0. I found this in my scroll-back buffer: > > stefan@guix ~/development/guix$ guix package --roll-back > Folgende Ableitung wird erstellt: > /gnu/store/l0n6l104ldj7nz6kdyi7l8v5yjnc9p9g-profile.drv > building profile with 0 packages... > Von Generation =E2=80=9E1=E2=80=9C zu =E2=80=9E0=E2=80=9C gewechselt > > By rolling back it created a new generation 0 profile which is now lying = around with this kind of empty file:=20 > > stefan@guix ~$ cat .guix-profile/etc/profile=20 > # Source this file to define all the relevant environment variables in Ba= sh > # for this profile. You may want to define the 'GUIX_PROFILE' environment > # variable to point to the "visible" name of the profile, like this: > # > # GUIX_PROFILE=3D/path/to/profile ; \ > # source /path/to/profile/etc/profile > # > # When GUIX_PROFILE is undefined, the various environment variables refer > # to this specific profile generation. > > So the test for the existence of this file does not fail, but it doesn't = change PATH either. This is the profile content, it has no bin/ folder to a= dd to PATH: I see. We could extend the test in /etc/profile to look for a /bin directory of the profile, but arguably rolling back to generation 0 is not a very common case. So I'm in favor of just keeping the status quo. WDYT? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6tgZwACgkQoqBt8qM6 VPrX2Qf7BEKyWX887qCmjkbSMAQQvI6IOQ3AjtJuktl5s/NankRw7j9duAvYWVBr njFoMYmBRZPX4leHEVs/EPBsd6/ozqylI1nhrtUuiq736aFCwTmfupOl2pVYYBcW MdXVZGa2IIyvXyafxmiiyRTR3RmCsDPR5bCZylr8tESBDOoSWg0OQm7mP9EUoqdK xrS+a7/quzJe9ZAIbBIT0FEzEWCc2ulaJ170uKhj/N86Bn0uLLLgUD0bfrV1bX3C rW4W/sD0Eh9gcfu/ndEMx1x2LOPyi/xJIXCdfchRfGEr6gyByh+i7UsabiBmgrKZ ie69a10sKKRN+OzuD1SoQwwdDZOdPA== =+fkq -----END PGP SIGNATURE----- --=-=-=-- From unknown Tue Jun 17 22:30:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40872: Subject: [PATCH] gnu: system: Fix PATH export if the profile has no bin directory. Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 02 May 2020 17:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40872 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 40872@debbugs.gnu.org Cc: Marius Bakke Received: via spool by 40872-submit@debbugs.gnu.org id=B40872.158843879524795 (code B ref 40872); Sat, 02 May 2020 17:00:03 +0000 Received: (at 40872) by debbugs.gnu.org; 2 May 2020 16:59:55 +0000 Received: from localhost ([127.0.0.1]:53792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUvUZ-0006Rr-ID for submit@debbugs.gnu.org; Sat, 02 May 2020 12:59:55 -0400 Received: from vsmx012.vodafonemail.xion.oxcs.net ([153.92.174.90]:20535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUvUW-0006RZ-Uh for 40872@debbugs.gnu.org; Sat, 02 May 2020 12:59:53 -0400 Received: from vsmx004.vodafonemail.xion.oxcs.net (unknown [192.168.75.198]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTP id 12A73F34C35; Sat, 2 May 2020 16:59:46 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [90.186.146.133]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTPA id B3B0C19AD8A; Sat, 2 May 2020 16:59:41 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Stefan In-Reply-To: <87pnbm2zc3.fsf@devup.no> Date: Sat, 2 May 2020 18:59:40 +0200 Content-Transfer-Encoding: 7bit Message-Id: <41DF61AE-B00F-43DF-BF7A-17473874701C@vodafonemail.de> References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@vodafonemail.de> <87sggn613q.fsf@devup.no> <87pnbm2zc3.fsf@devup.no> X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT X-VADE-SCORE: -100 X-VADE-REASON: gggruggvucftvghtrhhoucdtuddrgeduhedrieelgddutdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvegfuffvqffogfftpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurheptggguffhjgffgffkfhfvofesthejmhdthhdtvdenucfhrhhomhepufhtvghfrghnuceoshhtvghfrghnqdhguhhigiesvhhouggrfhhonhgvmhgrihhlrdguvgeqnecuggftrfgrthhtvghrnhepleegtdekvedtiefgjeelvdffvdfhheevgeduteetleduuddutddufefggeehffehnecuffhomhgrihhnpehgnhhurdhorhhgnecukfhppeeltddrudekiedrudegiedrudeffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepmhgrtggsohhokhdqphhrohdrkhhuhhdqfihivghsvgdrmhihqdhrohhuthgvrhdruggvpdhinhgvthepledtrddukeeirddugeeirddufeefpdhmrghilhhfrhhomhepshhtvghfrghnqdhguhhigiesvhhouggrfhhonhgvmhgrihhlrdguvgdprhgtphhtthhopehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhm X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/system.scm (operating-system-etc-service): Testing for $profile/bin. Fixes . --- gnu/system.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/system.scm b/gnu/system.scm index 540f0e4a9e..0eb5731c82 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -725,7 +725,8 @@ do # Load the user profile's settings. GUIX_PROFILE=\"$profile\" ; \\ . \"$profile/etc/profile\" - else + fi + if [ ! -d \"$profile/bin\" ] # At least define this one so that basic things just work # when the user installs their first package. export PATH=\"$profile/bin:$PATH\" -- 2.26.0 From unknown Tue Jun 17 22:30:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40872: First installed package on guix system is not instantly usable Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 03 May 2020 23:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40872 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Marius Bakke Cc: 40872@debbugs.gnu.org Received: via spool by 40872-submit@debbugs.gnu.org id=B40872.15885487363845 (code B ref 40872); Sun, 03 May 2020 23:33:01 +0000 Received: (at 40872) by debbugs.gnu.org; 3 May 2020 23:32:16 +0000 Received: from localhost ([127.0.0.1]:58458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVO5n-0000zj-Kx for submit@debbugs.gnu.org; Sun, 03 May 2020 19:32:15 -0400 Received: from vsmx011.vodafonemail.xion.oxcs.net ([153.92.174.89]:17508) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVO5l-0000tU-Qw for 40872@debbugs.gnu.org; Sun, 03 May 2020 19:32:14 -0400 Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 9269859D0DF; Sun, 3 May 2020 23:32:07 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [88.70.113.211]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 3AA45539A1D; Sun, 3 May 2020 23:32:03 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Stefan In-Reply-To: <87pnbm2zc3.fsf@devup.no> Date: Mon, 4 May 2020 01:32:02 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <3EE75A5A-9B86-4648-BB30-5C4C79F3954C@vodafonemail.de> References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@vodafonemail.de> <87sggn613q.fsf@devup.no> <87pnbm2zc3.fsf@devup.no> X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT X-VADE-SCORE: -100 X-VADE-REASON: gggruggvucftvghtrhhoucdtuddrgeduhedrjeefgddvudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevfgfuvffqoffgtfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpefuthgvfhgrnhcuoehsthgvfhgrnhdqghhuihigsehvohgurghfohhnvghmrghilhdruggvqeenucggtffrrghtthgvrhhnpeeihfdtudevgfeiueeuteeuveevjefggedtvdetieejheekveejjedthfehteevheenucfkphepkeekrdejtddruddufedrvdduudenucfuphgrmhffohhmrghinhepmhihqdhrohhuthgvrhdruggvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehmrggtsghoohhkqdhprhhordhkuhhhqdifihgvshgvrdhmhidqrhhouhhtvghrrdguvgdpihhnvghtpeekkedrjedtrdduudefrddvuddupdhmrghilhhfrhhomhepshhtvghfrghnqdhguhhigiesvhhouggrfhhonhgvmhgrihhlrdguvgdprhgtphhtthhopeegtdekjedvseguvggssghughhsrdhgnhhurdhorhhg X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Marius! > Am 02.05.2020 um 16:20 schrieb Marius Bakke : >=20 > We could extend the test in /etc/profile to look for a /bin > directory of the profile I think this is the right solution, as that=E2=80=99s the actual aim of = the else-part: Provide a path to a bin directory if the profile = doesn=E2=80=99t do this by itself =E2=80=93 there is just the implicit = (but wrong) assumption that it would, if the profile is existing. I sent = a patch, probably you saw it already. Bye Stefan= From unknown Tue Jun 17 22:30:05 2025 X-Loop: help-debbugs@gnu.org Subject: bug#40872: [PATCH] gnu: system: Fix PATH export if the profile has no bin directory. Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 09 May 2020 22:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40872 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 40872@debbugs.gnu.org Cc: Marius Bakke Received: via spool by 40872-submit@debbugs.gnu.org id=B40872.158906466615775 (code B ref 40872); Sat, 09 May 2020 22:52:01 +0000 Received: (at 40872) by debbugs.gnu.org; 9 May 2020 22:51:06 +0000 Received: from localhost ([127.0.0.1]:48546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXYJG-00046M-7h for submit@debbugs.gnu.org; Sat, 09 May 2020 18:51:06 -0400 Received: from vsmx012.vodafonemail.xion.oxcs.net ([153.92.174.90]:11863) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jXYJF-00045l-3A for 40872@debbugs.gnu.org; Sat, 09 May 2020 18:51:05 -0400 Received: from vsmx004.vodafonemail.xion.oxcs.net (unknown [192.168.75.198]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTP id C9AD9F3574A; Sat, 9 May 2020 22:50:58 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [90.186.146.103]) by mta-8-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 6EABD19AE8E; Sat, 9 May 2020 22:50:54 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Stefan In-Reply-To: <41DF61AE-B00F-43DF-BF7A-17473874701C@vodafonemail.de> Date: Sun, 10 May 2020 00:50:53 +0200 Content-Transfer-Encoding: 7bit Message-Id: <4DBA2659-453A-4621-BE86-E6AF07FC3BAE@vodafonemail.de> References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@vodafonemail.de> <87sggn613q.fsf@devup.no> <87pnbm2zc3.fsf@devup.no> <41DF61AE-B00F-43DF-BF7A-17473874701C@vodafonemail.de> X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi! > Am 02.05.2020 um 18:59 schrieb Stefan : > > * gnu/system.scm (operating-system-etc-service): Testing for $profile/bin. > > Fixes . > --- > gnu/system.scm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/gnu/system.scm b/gnu/system.scm > index 540f0e4a9e..0eb5731c82 100644 > --- a/gnu/system.scm > +++ b/gnu/system.scm > @@ -725,7 +725,8 @@ do > # Load the user profile's settings. > GUIX_PROFILE=\"$profile\" ; \\ > . \"$profile/etc/profile\" > - else > + fi > + if [ ! -d \"$profile/bin\" ] I just realised that I missed the necessary then between these lines. > # At least define this one so that basic things just work > # when the user installs their first package. > export PATH=\"$profile/bin:$PATH\" > -- > 2.26.0 > Bye Stefan