GNU bug report logs - #42378
Improve guix-install.sh's messages

Previous Next

Package: guix;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Wed, 15 Jul 2020 19:35:02 UTC

Severity: normal

Done: Tobias Geerinckx-Rice <me <at> tobias.gr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42378 in the body.
You can then email your comments to 42378 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#42378; Package guix. (Wed, 15 Jul 2020 19:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 15 Jul 2020 19:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: bug-guix <at> gnu.org
Subject: Improve guix-install.sh's messages
Date: Wed, 15 Jul 2020 21:33:13 +0200
[Message part 1 (text/plain, inline)]
Guix,

Here are 2 short patches to address 2 tedious recurring questions 
in #guix.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#42378; Package guix. (Wed, 15 Jul 2020 20:05:02 GMT) Full text and rfc822 format available.

Message #8 received at 42378 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 42378 <at> debbugs.gnu.org
Subject: [PATCH 1/2] guix-install.sh: Suggest running gpg as root.
Date: Wed, 15 Jul 2020 22:04:46 +0200
The original example regularly prevented new users from installing Guix
at all.

* etc/guix-install.scm (chk_gpg_keyring): Suggest ‘sudo -i gpg’.
---
 etc/guix-install.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index 54bd813efd..efcc3d81d8 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -111,7 +111,7 @@ chk_gpg_keyring()
     # systems where gpg has never been used, causing errors and confusion.
     gpg --dry-run --list-keys ${OPENPGP_SIGNING_KEY_ID} >/dev/null 2>&1 || (
         _err "${ERR}Missing OpenPGP public key.  Fetch it with this command:"
-        echo "  wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | gpg --import -"
+        echo "  wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | sudo -i gpg --import -"
         exit 1
     )
 }
-- 
2.27.0





Information forwarded to bug-guix <at> gnu.org:
bug#42378; Package guix. (Wed, 15 Jul 2020 20:06:02 GMT) Full text and rfc822 format available.

Message #11 received at 42378 <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 42378 <at> debbugs.gnu.org
Subject: [PATCH 2/2] guix-install.sh: Make sure /etc/profile is sourced.
Date: Wed, 15 Jul 2020 22:04:47 +0200
New users regularly report missing newly-installed programmes and icons.

* etc/guix-install.scm (main): Tell users to log out & back in.
---
 etc/guix-install.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/etc/guix-install.sh b/etc/guix-install.sh
index efcc3d81d8..72dc3839e8 100755
--- a/etc/guix-install.sh
+++ b/etc/guix-install.sh
@@ -418,6 +418,7 @@ sys_authorize_build_farms()
 
 sys_create_init_profile()
 { # Create /etc/profile.d/guix.sh for better desktop integration
+  # This will not take effect until the next shell or desktop session!
     [ -d "/etc/profile.d" ] || mkdir /etc/profile.d # Just in case
     cat <<"EOF" > /etc/profile.d/guix.sh
 # _GUIX_PROFILE: `guix pull` profile
@@ -507,6 +508,9 @@ main()
 
     _msg "${PAS}Guix has successfully been installed!"
     _msg "${INF}Run 'info guix' to read the manual."
+
+    # Required to source /etc/profile in desktop environments.
+    _msg "${INF}Please log out and back in to complete the installation."
  }
 
 main "$@"
-- 
2.27.0





Information forwarded to bug-guix <at> gnu.org:
bug#42378; Package guix. (Thu, 16 Jul 2020 10:23:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix <at> gnu.org>
Cc: Tobias Geerinckx-Rice <me <at> tobias.gr>, 42378 <at> debbugs.gnu.org
Subject: Re: bug#42378: Improve guix-install.sh's messages
Date: Thu, 16 Jul 2020 12:22:15 +0200
Howdy!

Tobias Geerinckx-Rice via Bug reports for GNU Guix <bug-guix <at> gnu.org>
skribis:

> Here are 2 short patches to address 2 tedious recurring questions in
> #guix.

I’m all for it.  It’s the kind of “tiny issue” that causes lots of
troubles to newcomers.

Thanks!

Ludo’.




Information forwarded to bug-guix <at> gnu.org:
bug#42378; Package guix. (Thu, 16 Jul 2020 10:23:01 GMT) Full text and rfc822 format available.

Reply sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
You have taken responsibility. (Thu, 16 Jul 2020 18:18:02 GMT) Full text and rfc822 format available.

Notification sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
bug acknowledged by developer. (Thu, 16 Jul 2020 18:18:02 GMT) Full text and rfc822 format available.

Message #22 received at 42378-done <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 42378-done <at> debbugs.gnu.org
Subject: Re: bug#42378: Improve guix-install.sh's messages
Date: Thu, 16 Jul 2020 20:17:37 +0200
[Message part 1 (text/plain, inline)]
Ludovic Courtès 写道:
> I’m all for it.  It’s the kind of “tiny issue” that causes lots 
> of
> troubles to newcomers.

I agree!  Pushed.

Thanks,

T G-R
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 14 Aug 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 254 days ago.

Previous Next


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