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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Ludovic Courtès <ludo@HIDDEN>; Done: zimoun <zimon.toutoune@HIDDEN>; Maintainer for guix is bug-guix@HIDDEN.

Message received at 43744-done <at> debbugs.gnu.org:


Received: (at 43744-done) by debbugs.gnu.org; 21 Oct 2020 17:34:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 21 13:34:29 2020
Received: from localhost ([127.0.0.1]:50482 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kVI0K-0001pI-Ni
	for submit <at> debbugs.gnu.org; Wed, 21 Oct 2020 13:34:28 -0400
Received: from mail-wr1-f43.google.com ([209.85.221.43]:37252)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kVI0I-0001p5-Vh
 for 43744-done <at> debbugs.gnu.org; Wed, 21 Oct 2020 13:34:27 -0400
Received: by mail-wr1-f43.google.com with SMTP id h7so4046792wre.4
 for <43744-done <at> debbugs.gnu.org>; Wed, 21 Oct 2020 10:34:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=6SexOL+eGBxOEhLNINAiAbKmcJ/qcqlsoY+zVDpMHJs=;
 b=fUKM2O8lHX5/ORSirRQjoYM+ngpjqpxOFkbLTTmhZYUUgNUSqCeM/Gp594X8dsMNXW
 iPSbfqnk0/8tjASdunzmi7XE7wOCdXNtra7X2nM30WjU+o2getvPcaen1E09BPn6z9vB
 ROYgywe/ggygjvcbKG0SgWdvzA0xhC7UlHzA15U5rLNzXo86uSpClh9te+CCsCF14bRz
 s2+hTRfh1m9qT0YxX5CEjALzo81cqZzlXmeN+iPeJTRu70PrvM7pRPhaju14ERuLHKTl
 EArxKnlqsNHkhdMX+pHlEaCURTyZw6cglHspVj/fINOMBdOW8hJ3ycfCxyo4xTnkA9tZ
 OCoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=6SexOL+eGBxOEhLNINAiAbKmcJ/qcqlsoY+zVDpMHJs=;
 b=M7++naMzXI07FHTGoTWPsfEpkenZa3aUqql2R1KwvV0fEOZaacLYjDCr75mYfUeo3x
 hdcGIMBN91tlOR4YRBuU0pZnQgYEY1q4uxolGvd0p1jOKh9ft8bzIC3QwcptDCcnp7lJ
 WBr9gaoNLzEYVzqadFUf8wuALDiEpKjf9ax1WwkLqTBLP9VFLKJeHwu5ImY14blQtCWp
 s3fFMdNOgYtLZA4Gv+zPGcZd8Y+hl582GO6Q89tsTRIPfTD7OgyHhVSyVAhynalyFLHo
 p2pWrnlUauQrfq8wajfc5Ae2Z+m9+JZWTGkMgiWr43UKjntSH0kiFa5sed00A36fVVFm
 Pa4A==
X-Gm-Message-State: AOAM530i17yKyTSj8u9OrT8Pcc4UiLyvD08z63NQCPj33KuDXGSk+zmB
 7TeLVdj/2XpiDgTxxV4/uJHbWWH7sjI=
X-Google-Smtp-Source: ABdhPJwdOotzSTntfjZheFCTrSU6mLezAs9L278tKbbL/poAO4bCXP4DojAcSluWTfTrJM23aOXTIg==
X-Received: by 2002:a5d:654e:: with SMTP id z14mr6074544wrv.361.1603301660920; 
 Wed, 21 Oct 2020 10:34:20 -0700 (PDT)
Received: from pfiuh02 ([193.48.40.241])
 by smtp.gmail.com with ESMTPSA id x1sm4878286wrl.41.2020.10.21.10.34.20
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 21 Oct 2020 10:34:20 -0700 (PDT)
From: zimoun <zimon.toutoune@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: Re: bug#43744: guix-install.sh should do more first-time setup
References: <87362yt99e.fsf@HIDDEN>
Date: Wed, 21 Oct 2020 19:34:19 +0200
In-Reply-To: <87362yt99e.fsf@HIDDEN> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?=
 =?utf-8?Q?s?= message of "Thu, 01 Oct 2020 14:34:37 +0200")
Message-ID: <871rhrfppg.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43744-done
Cc: 43744-done <at> debbugs.gnu.org
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.0 (-)

Dear,

On Thu, 01 Oct 2020 at 14:34, Ludovic Court=C3=A8s <ludo@HIDDEN> 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
> =E2=80=9CApplication Setup=E2=80=9D section of the manual.  Things that c=
ome 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/=E2=80=A6).
>      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=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
>
>      The user should be explicitly asked whether they want this change
>      to be made.

Nothing to done.


>   3. It could check =E2=80=9Cps aux | grep nscd=E2=80=9D and install nscd=
 using the host
>      distro package manager if needed, or at least suggest doing it.

Done in b2683a2bed424f58722c9c17c9582e3e2e19d9a3.


So closing!




Notification sent to Ludovic Courtès <ludo@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to zimoun <zimon.toutoune@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 43744 <at> debbugs.gnu.org:


Received: (at 43744) by debbugs.gnu.org; 2 Oct 2020 17:41:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 02 13:41:56 2020
Received: from localhost ([127.0.0.1]:42460 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kOP48-0001Gi-15
	for submit <at> debbugs.gnu.org; Fri, 02 Oct 2020 13:41:56 -0400
Received: from mail-qt1-f173.google.com ([209.85.160.173]:41095)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zimon.toutoune@HIDDEN>) id 1kOP45-0001GU-GQ
 for 43744 <at> debbugs.gnu.org; Fri, 02 Oct 2020 13:41:54 -0400
Received: by mail-qt1-f173.google.com with SMTP id j22so1930867qtj.8
 for <43744 <at> debbugs.gnu.org>; Fri, 02 Oct 2020 10:41:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=IJ/gVwUhLi/U0JCKb5lUJSrMQEg5p7I9kkb+5HSivnE=;
 b=JhxhOA8cVCYHWPCr5yCwz+cW/z6VUtrjPUbmsX1IE54te2fJFfbrdhBbSMn9itUa5S
 VP9hq2yeWI0KP0ZGbQyubE0EadHu6inmolIqHo+g/vgE894Klia1Qa7y22L9SOwsLJn4
 pa8bZgvKEKg9Ecvcpp/8yVeHOUBlJtIl40GGy8++bBDtY95MyfmwevUkRCG4eJCS8zfB
 MpQf5Lexo98Jz4FbBXJPdC4jTiELvD0FLCiDBNWyk8NMp8L8E11HJG0u8IED6DBXq+0B
 4ft3avBRxPCdrp4AUhiR4s2Imq9qEreQn982zGYSbsutU3ls2v9+seltX1aV6A/gSa+I
 33cQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=IJ/gVwUhLi/U0JCKb5lUJSrMQEg5p7I9kkb+5HSivnE=;
 b=fYZH22rEYGRdEDgVlGqbFKW9GKnocDyn/Ynr569SFHzQMxa9vUaOuelxGAy2U1LebG
 ZzjZ5ULe1xf4vj8EFEFHGK2ZdO7OfwHHf9A7SVVYRagBO2onhjghvfLqfrhI8uQb+9GY
 G2c4/pqIPeNZYN4ar/zJtgSsyjbPNH6zvcY/qkdNHB/GmaKRnB9/0Hhe3GuRuJLewFHM
 8Mtpr7LQu00Gj80vBXRau+OsmOI+zIXR86srUz701Rn57BOiCvLAzpa+aOL9u934bBid
 nUTuisEv+YgsSvf/80LIbn0YnHmGi+X40RH3LGk1lk2UnZ4o3Si6msLCWQHgGZU8boMe
 b/lA==
X-Gm-Message-State: AOAM533IWfYLkawhZ5+q42bDh5UoifH7RDWDKvEnGocMGDrqtCyTDsRG
 DLV2Not46v/mfFjXfuPmtwJwgcRiGL8vt1yJOTo=
X-Google-Smtp-Source: ABdhPJzVmjXf7XNNFSf4uOJFIqAcLbYFpusPmL+wooqbBz6exYfBb9harm8AvrhideLg2dx91nW8TYiT4Ja/PnEaKhw=
X-Received: by 2002:aed:2fc5:: with SMTP id m63mr3295790qtd.313.1601660507907; 
 Fri, 02 Oct 2020 10:41:47 -0700 (PDT)
MIME-Version: 1.0
References: <87362yt99e.fsf@HIDDEN>
In-Reply-To: <87362yt99e.fsf@HIDDEN>
From: zimoun <zimon.toutoune@HIDDEN>
Date: Fri, 2 Oct 2020 19:41:36 +0200
Message-ID: <CAJ3okZ1t0vXWKFXg0s3C6=vwRwVtUcn9-pku8+CwcDp+tiCmbQ@HIDDEN>
Subject: Re: bug#43744: guix-install.sh should do more first-time setup
To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 43744
Cc: 43744 <at> debbugs.gnu.org
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.0 (-)

Hi,

On Thu, 1 Oct 2020 at 14:35, Ludovic Court=C3=A8s <ludo@HIDDEN> wrote:

>   1. Installing Bash and Zsh completion files globally (actually making
>      them a symlink to
>      /var/guix/profiles/per-user/root/current-guix/etc/=E2=80=A6).
>      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=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
> --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 =E2=80=9Cps aux | grep nscd=E2=80=9D 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




Information forwarded to bug-guix@HIDDEN:
bug#43744; Package guix. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Oct 2020 12:34:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 01 08:34:43 2020
Received: from localhost ([127.0.0.1]:34556 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kNxnH-0003xC-LZ
	for submit <at> debbugs.gnu.org; Thu, 01 Oct 2020 08:34:43 -0400
Received: from lists.gnu.org ([209.51.188.17]:43514)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1kNxnG-0003x4-BG
 for submit <at> debbugs.gnu.org; Thu, 01 Oct 2020 08:34:42 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34284)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>) id 1kNxnG-0000v0-4L
 for bug-guix@HIDDEN; Thu, 01 Oct 2020 08:34:42 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:53720)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@HIDDEN>) id 1kNxnF-0000tS-RA
 for bug-guix@HIDDEN; Thu, 01 Oct 2020 08:34:41 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38002 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@HIDDEN>) id 1kNxnE-0002h3-AF
 for bug-guix@HIDDEN; Thu, 01 Oct 2020 08:34:40 -0400
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: <bug-guix@HIDDEN>
Subject: guix-install.sh should do more first-time setup
X-URL: http://www.fdn.fr/~lcourtes/
X-Revolutionary-Date: 10 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la
 =?utf-8?Q?R=C3=A9volution?=
X-PGP-Key-ID: 0x090B11993D9AEBB5
X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc
X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4  0CFB 090B 1199 3D9A EBB5
X-OS: x86_64-pc-linux-gnu
Date: Thu, 01 Oct 2020 14:34:37 +0200
Message-ID: <87362yt99e.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
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: -3.3 (---)

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
=E2=80=9CApplication Setup=E2=80=9D section of the manual.  Things that com=
e 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/=E2=80=A6).
     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=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
--8<---------------cut here---------------end--------------->8---

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

  3. It could check =E2=80=9Cps aux | grep nscd=E2=80=9D and install nscd u=
sing the host
     distro package manager if needed, or at least suggest doing it.

Any takers?  :-)

Thanks,
Ludo=E2=80=99.




Acknowledgement sent to Ludovic Courtès <ludo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#43744; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 21 Oct 2020 17:45:02 UTC

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