GNU bug report logs - #43744
guix-install.sh should do more first-time setup

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 1 Oct 2020 12:35:03 UTC

Severity: important

Done: zimoun <zimon.toutoune <at> gmail.com>

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 43744 in the body.
You can then email your comments to 43744 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#43744; Package guix. (Thu, 01 Oct 2020 12:35:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 01 Oct 2020 12:35:03 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: <bug-guix <at> gnu.org>
Subject: guix-install.sh should do more first-time setup
Date: Thu, 01 Oct 2020 14:34:37 +0200
Hello!

One of the things we can do to provide a better first-time experience on
a foreign distro is to automatically do some of the things that make
Guix readily usable and convenient, even for someone who skips the
“Application Setup” section of the manual.  Things that come to mind:

  1. Installing Bash and Zsh completion files globally (actually making
     them a symlink to
     /var/guix/profiles/per-user/root/current-guix/etc/…).
     There seems to be +/- a cross-distro conventional directory to
     collect those, for example /etc/bash_completion.d, no?  The script
     could create that symlink, perhaps asking the user to confirm.

  2. Adding the following lines to /etc/profile (taken from Guix System):

--8<---------------cut here---------------start------------->8---
# 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="$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="$profile/bin:$PATH"
  fi
done
--8<---------------cut here---------------end--------------->8---

     The user should be explicitly asked whether they want this change
     to be made.

  3. It could check “ps aux | grep nscd” and install nscd using the host
     distro package manager if needed, or at least suggest doing it.

Any takers?  :-)

Thanks,
Ludo’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 02 Oct 2020 07:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#43744; Package guix. (Fri, 02 Oct 2020 17:42:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 43744 <at> debbugs.gnu.org
Subject: Re: bug#43744: guix-install.sh should do more first-time setup
Date: Fri, 2 Oct 2020 19:41:36 +0200
Hi,

On Thu, 1 Oct 2020 at 14:35, Ludovic Courtès <ludo <at> gnu.org> wrote:

>   1. Installing Bash and Zsh completion files globally (actually making
>      them a symlink to
>      /var/guix/profiles/per-user/root/current-guix/etc/…).
>      There seems to be +/- a cross-distro conventional directory to
>      collect those, for example /etc/bash_completion.d, no?  The script
>      could create that symlink, perhaps asking the user to confirm.

Done in patch 1/2 #43769 [1].


>   2. Adding the following lines to /etc/profile (taken from Guix System):
>
> --8<---------------cut here---------------start------------->8---
> # 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="$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="$profile/bin:$PATH"
>   fi
> done
> --8<---------------cut here---------------end--------------->8---

Hum?  It looks like 'sys_create_init_profile'.  I have not checked the
current order but maybe that's only that.


>      The user should be explicitly asked whether they want this change
>      to be made.

Currently, 'sys_create_init_profile' is simply run without asking.


>   3. It could check “ps aux | grep nscd” and install nscd using the host
>      distro package manager if needed, or at least suggest doing it.

Done in patch 2/2 #43769 [1].

[1] <http://issues.guix.gnu.org/issue/43769>


All the best,
simon




Reply sent to zimoun <zimon.toutoune <at> gmail.com>:
You have taken responsibility. (Wed, 21 Oct 2020 17:35:01 GMT) Full text and rfc822 format available.

Notification sent to Ludovic Courtès <ludo <at> gnu.org>:
bug acknowledged by developer. (Wed, 21 Oct 2020 17:35:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 43744-done <at> debbugs.gnu.org
Subject: Re: bug#43744: guix-install.sh should do more first-time setup
Date: Wed, 21 Oct 2020 19:34:19 +0200
Dear,

On Thu, 01 Oct 2020 at 14:34, Ludovic Courtès <ludo <at> gnu.org> wrote:

> One of the things we can do to provide a better first-time experience on
> a foreign distro is to automatically do some of the things that make
> Guix readily usable and convenient, even for someone who skips the
> “Application Setup” section of the manual.  Things that come to mind:
>
>   1. Installing Bash and Zsh completion files globally (actually making
>      them a symlink to
>      /var/guix/profiles/per-user/root/current-guix/etc/…).
>      There seems to be +/- a cross-distro conventional directory to
>      collect those, for example /etc/bash_completion.d, no?  The script
>      could create that symlink, perhaps asking the user to confirm.

Done in b3fba5ef043b161d05a9fdc371a32d89e9b22ea1.


>   2. Adding the following lines to /etc/profile (taken from Guix System):
>
> # 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="$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="$profile/bin:$PATH"
>   fi
> done
>
>      The user should be explicitly asked whether they want this change
>      to be made.

Nothing to done.


>   3. It could check “ps aux | grep nscd” and install nscd using the host
>      distro package manager if needed, or at least suggest doing it.

Done in b2683a2bed424f58722c9c17c9582e3e2e19d9a3.


So closing!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 19 Nov 2020 12:24:06 GMT) Full text and rfc822 format available.

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

Previous Next


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