From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +OkQOo8gZGBTewAAgWs5BA (envelope-from ) for ; Wed, 31 Mar 2021 09:11:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CPb6M48gZGDmCgAAB5/wlQ (envelope-from ) for ; Wed, 31 Mar 2021 07:11:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 92EA12135B for ; Wed, 31 Mar 2021 09:11:11 +0200 (CEST) Received: from localhost ([::1]:51586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRV0Q-0007D2-AP for larch@yhetil.org; Wed, 31 Mar 2021 03:11:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRV0J-0007CS-EQ for guix-patches@gnu.org; Wed, 31 Mar 2021 03:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41839) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRV0I-0003Jn-OY for guix-patches@gnu.org; Wed, 31 Mar 2021 03:11:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRV0I-00084D-Kb for guix-patches@gnu.org; Wed, 31 Mar 2021 03:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47401] [PATCH] doc: Mention value /etc to sysconfdir option. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 31 Mar 2021 07:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47401 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 47401@debbugs.gnu.org Received: via spool by 47401-submit@debbugs.gnu.org id=B47401.161717464730963 (code B ref 47401); Wed, 31 Mar 2021 07:11:02 +0000 Received: (at 47401) by debbugs.gnu.org; 31 Mar 2021 07:10:47 +0000 Received: from localhost ([127.0.0.1]:53381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRV02-00083L-IC for submit@debbugs.gnu.org; Wed, 31 Mar 2021 03:10:46 -0400 Received: from mira.cbaines.net ([212.71.252.8]:44262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRV00-000839-Bh for 47401@debbugs.gnu.org; Wed, 31 Mar 2021 03:10:44 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id B7F8027BC65; Wed, 31 Mar 2021 08:10:43 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 4c1a7996; Wed, 31 Mar 2021 07:10:43 +0000 (UTC) References: <20210326060138.27179-1-zimon.toutoune@gmail.com> User-agent: mu4e 1.4.15; emacs 27.1 From: Christopher Baines In-reply-to: <20210326060138.27179-1-zimon.toutoune@gmail.com> Message-ID: <87r1jvztlb.fsf@cbaines.net> Date: Wed, 31 Mar 2021 08:10:40 +0100 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617174671; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=XWE/COXUPZ9YR19clLf+DAq3ncrwKcd9tsN5XggTxlM=; b=aROWgR+80jBkrAICs8lLjEWRemze4RNrnA+qUcjh4mEuD3y2QriRqCWPzdclQRtiCxW6y9 5f+0/EFGgf3AbRoe5AfyWwCjDnCWSZRkfacBC4q8zKLofxSM8oXWuxdmaQ+HFqCnP5h0yT qOkZwcqyB7ADw07790/Rrwate6ggIyXByuwcCzyg6aC3uJzSo9TXaJ0tEmtcZ0gopIcP8A 5L5BSPpLfQ8P+9MshRKj3qe5jYYH308F1LAAdV5wb5jzDChuLWXN6AbJgCy56hxo+3be/m BhcAQCrh9jSAlMPmghpP0pxyJP4RhdK5PQOvgicwVX0xjKGeu53TgJj/FEblAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617174671; a=rsa-sha256; cv=none; b=Vj72xoaXEdWmEoFNkEZpB1G3iSu6Fv9JINIBqklnLxTYmZ7y3uDl4Jbv6LPQZkxoPhpRFo 0bwlUOasOnXHW8Ot1WcZAWFPNs05Tx5FWMzshh7Ac5pSKFSJvEfOpYcLoI9cgIqBKIk4Cg GsQm5e0dkyK6+2c9hiiqwzdR2E31yfcjjei2FKJXfz0yBGDt8iXvyF7lTsY/Ev7bLLG6ot ABRJi3j3LYQxBDrII8Mmf7mcxPKuytbZ9mAcVtdKaDjFw0cNe6Zp8joHe9zasTUDfcC2zF 8Bdehm6x6duZ0j1WcNPSoyMeEUuuzNsyDKo/LeNdW5yWOMbMvHA5WCkQr0ojjA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 92EA12135B X-Spam-Score: -3.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: jpnypl1mqbfH --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable zimoun writes: > * doc/contributing.texi (Building from Git): Mention value /etc to syscon= fdir > option. > --- > > Hi, > > From a discussion [1] about a reproducibility issue, > > As discussed on IRC, =E2=80=98guix pull=E2=80=99 preserves the se= ttings of the host > Guix. So if your initial =E2=80=98guix=E2=80=99 has %sysconfdir = set to > /usr/local/etc, =E2=80=98guix pull=E2=80=99 will preserve that. > > It turns out that, as is always the case with GNU Standards compl= iant > configure script, the default value for --prefix is /usr/local, a= nd > the default for --sysconfdir is $prefix/etc. > > Mostly likely, what happened is that at some point you built Guix= from > source using the default prefix and sysconfdir, and then you ran = =E2=80=98guix > pull=E2=80=99 from that Guix. > > I discovered that the option =E2=80=99sysconfdir=E2=80=99 at ./configure = time is set by > default to /usr/local/etc conforming the GNU Coding standards. And Guix > expect instead /etc. As 'localstadir', it is unconventional. > > The manual does not mention this subtility. This patch adds a tiny sente= nce > to avoid the trap for the attentive reader. > > 1: > > > Thanks, > simon > > doc/contributing.texi | 8 ++++++-- > doc/guix.texi | 2 +- > 2 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/doc/contributing.texi b/doc/contributing.texi > index 58c4dafb9b..53840d81cc 100644 > --- a/doc/contributing.texi > +++ b/doc/contributing.texi > @@ -228,8 +228,12 @@ necessary to support this, including @env{PATH} and = @env{GUILE_LOAD_PATH}. > Note that @command{./pre-inst-env guix pull} does @emph{not} upgrade the > local source tree; it simply updates the @file{~/.config/guix/current} > symlink (@pxref{Invoking guix pull}). Run @command{git pull} instead if > -you want to upgrade your local source tree. > - > +you want to upgrade your local source tree. Moreover, note also that > +@command{guix pull} preserves the settings of the host Guix. For > +instance, regular Guix passes @code{--sysconfdir=3D/etc/}, whereas the G= NU > +Coding Standards sets by default @var{prefix} to @file{/usr/local} and > +@var{sysconfdir} to @file{$prefix/etc} (@pxref{Directory Variables,,, > +standards, GNU Coding Standards}). I think this is maybe useful to note somewhere, but not to add to the existing paragraph here. The paragraph starting on line 228 looks to me to be aimed at new users who might be at risk of confusing guix pull and git pull, whereas the bit you're adding is about something completely different, explaining a subtlety of running guix pull (something an earlier part of the paragraph is saying not to run). Maybe there is a more appropriate place in the main manual? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmBkIHFfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XeEJA/+JvLPRcx3biEBGiUXH5gNc6p1pkY7JbZc ToIvvMJFlhLNRTzg9ZUt3Gychhv9oKeOJuRmleFejXbXtpheRBgcLWC49G0uF5Hj UbteAFcvf6NDMrfvzj/1Jr9P2RUhVk7CRcOsny9fh4VEa9Dr0sq78RpNRzFjk9Io 2B33p6tKqH4NC3cYb7wjdJ+4YyBc7r/sSzTdj1M+93lZbuciEIjgE94KGPvvMBVF rBvsTQlKEIAA5N2RJb2jgSPxh42HRjFAbTh+GgvYrD9sWgdbHRdLY8oFubo4Yh0X j2XMoWFsgWv6s68PapBQrYdrqAqBNFggHsZSSbGaqtolbfGDGAojBx0iepF9hBSQ kXSwuimaLg7jl19FkqdBPuvXwgV6xxas8zZq5BnbwqMZFGc7eeNZNBNZ3bwgAPXM 5XKM3QToF2Af2Za74wVUrKI4LM6dLRzO7Ke6lxb1y1C3DLfnCB6iXH1QAmT8oHIT hZ8W+9G3BonwsZ8QqABvz4NPKRSBqUgHQyKE/fhtZ37f39r28mZFUlydM5cb0qeR G2U+p14GhKm0b3s7D1Gmb9ciYyCld1kyBcHPgrekKv1sURppY+DQXpAQQcH1h7+A mgkm+v0I63cEG6G90xHODwrxTUpfm4AMbEvEHnkpkOUL9aqBqNVmE8E5boGrI5qR m+WOtcctqb8= =1F/w -----END PGP SIGNATURE----- --=-=-=--