From patchwork Fri Mar 26 06:01:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 28115 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0F66427BC5D; Fri, 26 Mar 2021 06:02:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8C25127BC5C for ; Fri, 26 Mar 2021 06:02:26 +0000 (GMT) Received: from localhost ([::1]:44092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPfY9-00068v-HY for patchwork@mira.cbaines.net; Fri, 26 Mar 2021 02:02:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPfXr-00067G-2M for guix-patches@gnu.org; Fri, 26 Mar 2021 02:02:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPfXm-0005Yk-3k for guix-patches@gnu.org; Fri, 26 Mar 2021 02:02:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPfXm-0007U2-0z for guix-patches@gnu.org; Fri, 26 Mar 2021 02:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47401] [PATCH] doc: Mention value /etc to sysconfdir option. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 26 Mar 2021 06:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47401 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47401@debbugs.gnu.org Cc: zimoun X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161673851528750 (code B ref -1); Fri, 26 Mar 2021 06:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Mar 2021 06:01:55 +0000 Received: from localhost ([127.0.0.1]:40162 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPfXf-0007Te-BW for submit@debbugs.gnu.org; Fri, 26 Mar 2021 02:01:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:45402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPfXd-0007TW-R7 for submit@debbugs.gnu.org; Fri, 26 Mar 2021 02:01:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPfXc-0005yb-8p for guix-patches@gnu.org; Fri, 26 Mar 2021 02:01:53 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:45852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPfXa-0005Rj-B5 for guix-patches@gnu.org; Fri, 26 Mar 2021 02:01:51 -0400 Received: by mail-wr1-x42c.google.com with SMTP id j9so2737742wrx.12 for ; Thu, 25 Mar 2021 23:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ANBPAjtX+PvPLMcHstR10osHsHUmebmQRjkbuuPiIiA=; b=PA3I3s2BgD+Tf/PcfD1tLJeAcRPN3yGQqn8BsUqVD96SwjciIZoxaQYy6P11WCKdMX SgDyQ03kH+w6jVgA7wH8NWXojBloG78Xca8wMcRzoIPxcLhNbUU8m1Lg6azm3v/OIGr9 dLpns5JrNeWYaljCtLF+PNJFNIZeYbxtXlupuBVr3qgTNXQjbf8n6hS6PPoDSJDcvkzW NLowoCCeqIBHoZi96LZhuHFogEwhwp3KBCKiaGj1DO7lcQutb4H8j6+KiByXTzReouuy bX0QcYewD8dnq1Y5ZdQ9UKFU+mKiQjym5g76eJmVYOwr6rym7kv/fzKk+OepxftaPFYz DOgg== 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:date:message-id:mime-version :content-transfer-encoding; bh=ANBPAjtX+PvPLMcHstR10osHsHUmebmQRjkbuuPiIiA=; b=QgCdprL2lKOymR/rMwwgCXPC2JO1KPXyktbis4gyMFN5MKyvpCYo+CvOxKV9AZ1+uf IOZcmxXAAqdlWw5JhQQg7ZOr0i05IbTn47KExFVjmk1EUAAxr4RIHIbpkXRKtGCcTPpR ykOuAeqIf8NuqwH/SJIBr5DZV1BlVNfIWBdjFwojgI2c5avKWEMxeWg+7NBMoJG3xM8P wBMBAw6rLSXBk6NgzEzjMC3VmeZbWJ4HZYK+HfiVGYj+jDyV+P0W6f1hNDjQ2UnfLrvL cYiv7z6wy6QREMLcNC2bWaoQTgx5b1jfINa6AGdCkPsV3qmYxAeuQZg2OKcNqC4Vu2jN gg8A== X-Gm-Message-State: AOAM531D5rjxDlvOHGNknbidPZrXqzjjtdtgzmbUpZvHnY61A5rczX+U XWaeJNdsAJV7t7YvcLElgChVcbS9SmA= X-Google-Smtp-Source: ABdhPJyLJU65/Fjf7KXeMUUMmVFQOApr8khOzP08AIRzH1vE5iBNje8ylBt1w4cm/7GnMERI3yTgTA== X-Received: by 2002:a5d:58ce:: with SMTP id o14mr12763068wrf.4.1616738508831; Thu, 25 Mar 2021 23:01:48 -0700 (PDT) Received: from lili.univ-paris-diderot.fr ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id v18sm11294556wrf.41.2021.03.25.23.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 23:01:48 -0700 (PDT) From: zimoun Date: Fri, 26 Mar 2021 07:01:38 +0100 Message-Id: <20210326060138.27179-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * doc/contributing.texi (Building from Git): Mention value /etc to sysconfdir option. --- Hi, From a discussion [1] about a reproducibility issue, As discussed on IRC, ‘guix pull’ preserves the settings of the host Guix. So if your initial ‘guix’ has %sysconfdir set to /usr/local/etc, ‘guix pull’ will preserve that. It turns out that, as is always the case with GNU Standards compliant configure script, the default value for --prefix is /usr/local, and 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 ‘guix pull’ from that Guix. I discovered that the option ’sysconfdir’ 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 sentence 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(-) base-commit: 6e7ba45357078b31a369b23f8a9f38302dfcbb10 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=/etc/}, whereas the GNU +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}). @node The Perfect Setup @section The Perfect Setup diff --git a/doc/guix.texi b/doc/guix.texi index c23d044ff5..3f2cf4d6e1 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -69,8 +69,8 @@ Copyright @copyright{} 2019 Jakob L. Kreuze@* Copyright @copyright{} 2019 Kyle Andrews@* Copyright @copyright{} 2019 Alex Griffin@* Copyright @copyright{} 2019, 2020 Guillaume Le Vaillant@* +Copyright @copyright{} 2019, 2020, 2021 Simon Tournier@* Copyright @copyright{} 2020 Leo Prikler@* -Copyright @copyright{} 2019, 2020 Simon Tournier@* Copyright @copyright{} 2020 Wiktor Żelazny@* Copyright @copyright{} 2020 Damien Cassou@* Copyright @copyright{} 2020 Jakub Kądziołka@*