X-Loop: help-debbugs@HIDDEN
Subject: bug#40872: First installed package on guix system is not instantly usable
Resent-From: Stefan <stefan-guix@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sun, 26 Apr 2020 16:03:01 +0000
Resent-Message-ID: <handler.40872.B.158791697512935 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 40872
X-GNU-PR-Package: guix
X-GNU-PR-Keywords:
To: 40872 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guix@HIDDEN
Received: via spool by submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1jSjk6-0003MY-7k
for submit <at> 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 <stefan-guix@HIDDEN>) id 1jSgYp-0003gC-9e
for submit <at> 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 <stefan-guix@HIDDEN>) id 1jSgYo-0003bT-Rj
for bug-guix@HIDDEN; 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 <stefan-guix@HIDDEN>) id 1jSgYn-0003fR-R6
for bug-guix@HIDDEN; 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 <stefan-guix@HIDDEN>)
id 1jSgYn-0003fB-8M
for bug-guix@HIDDEN; 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 <bug-guix@HIDDEN>; 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 <bug-guix@HIDDEN>; Sun, 26 Apr 2020 12:38:54 +0000 (UTC)
From: Stefan <stefan-guix@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Message-Id: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@HIDDEN>
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@HIDDEN;
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Stefan <stefan-guix@HIDDEN> Subject: bug#40872: Acknowledgement (First installed package on guix system is not instantly usable) Message-ID: <handler.40872.B.158791697512935.ack <at> debbugs.gnu.org> References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@HIDDEN> X-Gnu-PR-Message: ack 40872 X-Gnu-PR-Package: guix Reply-To: 40872 <at> debbugs.gnu.org Date: Sun, 26 Apr 2020 16:03:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guix@HIDDEN If you wish to submit further information on this problem, please send it to 40872 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 40872: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D40872 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#40872: First installed package on guix system is not instantly usable
Resent-From: Marius Bakke <mbakke@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 28 Apr 2020 16:13:01 +0000
Resent-Message-ID: <handler.40872.B40872.158809035620000 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 40872
X-GNU-PR-Package: guix
X-GNU-PR-Keywords:
To: Stefan <stefan-guix@HIDDEN>, 40872 <at> debbugs.gnu.org
Received: via spool by 40872-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1jTSqa-0005CV-Cj
for submit <at> 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 <mbakke@HIDDEN>) id 1jTSqY-0005CG-RJ
for 40872 <at> 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: <xms:61WoXt94sYH0Qhq93Ubhl7bLCdBWo_CvRqb-v-ynxMgYqIke2C3Ezw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedriedugdeljecutefuodetggdotefrodftvf
curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehgtderre
dtreejnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht
mhgrihhlrdgtohhmqeenucfkphepkeegrddvtddvrdeikedrjeehnecuvehluhhsthgvrh
fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghsthhm
rghilhdrtghomh
X-ME-Proxy: <xmx:7FWoXohD4Q5dugjPX3JD48SYx993y_IZ9Sb94GLDJ-sUM0og2qlXEw>
<xmx:7FWoXsPkEHqedTeNsquw_oYarYg2kwjcV5xG1pzAyU0Z18CDaoKhMA>
<xmx:7FWoXvPzkjiK6upStH__ZbC9h92XCV89E1rkTOEdtx0UfDQoF_Ufbw>
<xmx:7FWoXrwJR9OwLLR2XBjCajBAFjzn3trsi3ViPxaVL2JGOZYbE8YUWQ>
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 <mbakke@HIDDEN>
In-Reply-To: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@HIDDEN>
References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@HIDDEN>
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@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Stefan <stefan-guix@HIDDEN> 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-----
--=-=-=--
X-Loop: help-debbugs@HIDDEN
Subject: bug#40872: First installed package on guix system is not instantly usable
Resent-From: Stefan <stefan-guix@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Tue, 28 Apr 2020 21:01:04 +0000
Resent-Message-ID: <handler.40872.B40872.158810765916724 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 40872
X-GNU-PR-Package: guix
X-GNU-PR-Keywords:
To: Marius Bakke <mbakke@HIDDEN>
Cc: 40872 <at> debbugs.gnu.org
Received: via spool by 40872-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1jTXLe-0004Lg-Vi
for submit <at> 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 <stefan-guix@HIDDEN>) id 1jTWFH-0002Lw-N6
for 40872 <at> 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 <stefan-guix@HIDDEN>
In-Reply-To: <87sggn613q.fsf@HIDDEN>
Date: Tue, 28 Apr 2020 21:50:14 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <EDA4C18A-3733-4012-828E-C04FF76F8B76@HIDDEN>
References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@HIDDEN>
<87sggn613q.fsf@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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=
X-Loop: help-debbugs@HIDDEN
Subject: bug#40872: First installed package on guix system is not instantly usable
Resent-From: Marius Bakke <mbakke@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guix@HIDDEN
Resent-Date: Sat, 02 May 2020 14:21:01 +0000
Resent-Message-ID: <handler.40872.B40872.1588429223815 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 40872
X-GNU-PR-Package: guix
X-GNU-PR-Keywords:
To: Stefan <stefan-guix@HIDDEN>
Cc: 40872 <at> debbugs.gnu.org
Received: via spool by 40872-submit <at> 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 <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1jUt0A-0000D5-TH
for submit <at> 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 <mbakke@HIDDEN>) id 1jUt09-0000Co-Ha
for 40872 <at> 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: <xms:noGtXlREu3VzG3RlUMZKEDG_sRkATqauY_fCc-AdXM0vR6YPUVxDpA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieelgdejfecutefuodetggdotefrodftvf
curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
uegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehgtderre
dtreejnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgrshht
mhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeektdelffevvedtledvvedugeffie
ffhfelgeehtedugedvgeeguedujefhjefhteenucfkphepkeegrddvtddvrdeikedrjeeh
necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrg
hkkhgvsehfrghsthhmrghilhdrtghomh
X-ME-Proxy: <xmx:noGtXrV2W60HAdEEJQF9LWWvXZ8deyHWMzjxgSSGzR9rPLk1HuQrew>
<xmx:noGtXvRhGtUaHrmlMAvdI2p_Cuqz4reqxPMIRK9TMsREf5jfrUBrTg>
<xmx:noGtXj3uoYW7CJOPXZa3D4KLz1cOuQs9LPRsYz7-7IkxWjC7lcZ5PA>
<xmx:n4GtXq865GOugVCPI9hJJraiMYZe8QYBTaXyuu3Glum4A3r9OA4VTQ>
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 <mbakke@HIDDEN>
In-Reply-To: <EDA4C18A-3733-4012-828E-C04FF76F8B76@HIDDEN>
References: <73CADE52-3A2F-433F-A2FD-491AC81C7A8A@HIDDEN>
<87sggn613q.fsf@HIDDEN>
<EDA4C18A-3733-4012-828E-C04FF76F8B76@HIDDEN>
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@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Stefan <stefan-guix@HIDDEN> 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-----
--=-=-=--
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.