GNU bug report logs - #66148
Fix Guix version number in pulled (=most) manuals

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-patches; Reported by: Tobias Geerinckx-Rice <me@HIDDEN>; dated Fri, 22 Sep 2023 00:53:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

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


Received: (at 66148) by debbugs.gnu.org; 22 Sep 2023 13:18:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 22 09:18:17 2023
Received: from localhost ([127.0.0.1]:35652 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjg2z-0006I4-HP
	for submit <at> debbugs.gnu.org; Fri, 22 Sep 2023 09:18:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33166)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1qjg2v-0006Hq-QJ
 for 66148 <at> debbugs.gnu.org; Fri, 22 Sep 2023 09:18:14 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1qjg2e-0004mz-C7; Fri, 22 Sep 2023 09:17:56 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=oxPj8p9LF0EJ1lGfk9BNj7r0qxp7df/0ev5gCIEETHw=; b=sfTzUECJW/wng215Xih9
 jm/1vbAiiFUQePleCQcMchP4hG3Dse+xzNU4BPndVnmYOqJlM4gGq9B0+KybnhNti+Rs4ar8HyyyM
 b6/ZvpcBFwn2SFBXKIEFxDY+5Ed7ASOb+Re4bQjE5u93HUCzYCflHJYZVU0iYIA9fmjo4EGFAGxk2
 l9cr7B1teQvbbflcLzsGPrGXiCHyWYAsJGfK/nlM4XVAjVKZXGabhknfLMMqcDCvA/qiehPNEGTUB
 lCW+IuGSn4yJrcb47KzePiAPkcFPKr6eV4ytMVFSOh9IvI2De6tpqRqTgzKX1AtRwwRv7bSwRzfde
 zBRBCVecX8lNcA==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: bug#66148: Fix Guix version number in pulled (=most) manuals
References: <dd2fb832636c6859d7dfa1fcbd4dc3a7d6559673.1694908800.git.me@HIDDEN>
 <dae1caae6a5355977e6fc0d94b0c16278be206d8.1694908800.git.me@HIDDEN>
Date: Fri, 22 Sep 2023 15:17:51 +0200
In-Reply-To: <dae1caae6a5355977e6fc0d94b0c16278be206d8.1694908800.git.me@HIDDEN>
 (Tobias Geerinckx-Rice's message of "Sun, 17 Sep 2023 02:00:00 +0200")
Message-ID: <875y42bb40.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (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: 66148
Cc: Josselin Poiret <dev@HIDDEN>,
 Simon Tournier <zimon.toutoune@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>,
 66148 <at> debbugs.gnu.org, Ricardo Wurmus <rekado@HIDDEN>,
 Christopher Baines <guix@HIDDEN>
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 (---)

Hi!

Tobias Geerinckx-Rice <me@HIDDEN> skribis:

> Now that we use the latest release VERSION even for pulled Guixes,
> make it abundantly clear that this is a later build.
>
> * guix/self.scm (info-manual): @set the PULLED flag in version.texi.
> * doc/guix.texi (Top): Honour it.

Yeah, great initiative!

I wonder if we could avoid adding code to (guix self).  For instance,
we could have (guix self) leave =E2=80=98VERSION=E2=80=99 undefined and in =
the manual
we=E2=80=99d have those @inlineifset{VERSION, version @value{VERSION}, revi=
sion
from @command{guix pull}}.

How does that sound?

Ludo=E2=80=99.




Information forwarded to guix-patches@HIDDEN:
bug#66148; Package guix-patches. Full text available.

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


Received: (at 66148) by debbugs.gnu.org; 22 Sep 2023 01:01:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 21:01:10 2023
Received: from localhost ([127.0.0.1]:35005 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjUXe-0007Bo-EJ
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 21:01:10 -0400
Received: from tobias.gr ([80.241.217.52]:53096)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1qjUXc-0007BT-WA
 for 66148 <at> debbugs.gnu.org; Thu, 21 Sep 2023 21:01:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=aeg+QgLWj7WyA
 qxJUs/hjRSpaTmS2I+uP1W1/r+i/DE=; h=references:in-reply-to:date:
 subject:to:from; d=tobias.gr;
 b=J2Dce23gDeo42vBNNDYWRYos/u9wg/077OWWJ1
 YWv+QjBE3d98BE2PCQrJIHONEJk2iHfKsd4U9KHQTN/vGZZ7mK3oKo4J2GzMMB6Jn/o6ZE
 oAlBTcHT38u3H82xgCtkytt/44eu+wNXum8eRqArKjcuEtXNNparm/u8ObJxzmoAlKftE6
 Byp1oX+rZiwLb9kVRNsmvpTONgm1P1DYQ6zq5mHncCrHD6ZlpWmM70hczcVJ9Zgzzook0X
 b6oDnRMF4c3xiVA7L5nqiT+DBOCfql+G8QqMuyDxmrlTAIRsNXoClViyxYObDhooz7APqs
 YoE5hp7qJoMc/Yc/gLdk5aZw==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 4926f85a
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <66148 <at> debbugs.gnu.org>;
 Fri, 22 Sep 2023 01:00:56 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: 66148 <at> debbugs.gnu.org
Subject: [PATCH v2 2/2] doc: Mention it when we were pulled.
Date: Sun, 17 Sep 2023 02:00:00 +0200
Message-ID: <dae1caae6a5355977e6fc0d94b0c16278be206d8.1694908800.git.me@HIDDEN>
X-Mailer: git-send-email 2.41.0
In-Reply-To: <dd2fb832636c6859d7dfa1fcbd4dc3a7d6559673.1694908800.git.me@HIDDEN>
References: <dd2fb832636c6859d7dfa1fcbd4dc3a7d6559673.1694908800.git.me@HIDDEN>
MIME-Version: 1.0
X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Ricardo Wurmus <rekado@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 2.1 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Now that we use the latest release VERSION even for pulled
 Guixes, make it abundantly clear that this is a later build. * guix/self.scm
 (info-manual): @set the PULLED flag in version.texi. * doc/guix.texi (Top):
 Honour it. --- doc/guix.texi | 5 +++-- guix/self.scm | 4 ++++ 2 files changed, 
 7 insertions(+), 2 deletions( [...] 
 Content analysis details:   (2.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 2.1 DATE_IN_PAST_96_XX     Date: is 96 hours or more before Received:
 date -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
X-Debbugs-Envelope-To: 66148
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.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Now that we use the latest release VERSION even for pulled
    Guixes, make it abundantly clear that this is a later build. * guix/self.scm
    (info-manual): @set the PULLED flag in version.texi. * doc/guix.texi (Top):
    Honour it. --- doc/guix.texi | 5 +++-- guix/self.scm | 4 ++++ 2 files changed,
    7 insertions(+), 2 deletions( [...] 
 
 Content analysis details:   (1.1 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
  2.1 DATE_IN_PAST_96_XX     Date: is 96 hours or more before Received:
                             date
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

Now that we use the latest release VERSION even for pulled Guixes,
make it abundantly clear that this is a later build.

* guix/self.scm (info-manual): @set the PULLED flag in version.texi.
* doc/guix.texi (Top): Honour it.
---
 doc/guix.texi | 5 +++--
 guix/self.scm | 4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 39088b954b..c959cff1a1 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -166,8 +166,9 @@
 @node Top
 @top GNU Guix
 
-This document describes GNU Guix version @value{VERSION}, a functional
-package management tool written for the GNU system.
+This document describes GNU Guix @inlineifset{GUIX-PULLED, from a
+@command{guix pull} after the release of} version @value{VERSION}, a
+functional package management tool written for the GNU system.
 
 @c TRANSLATORS: You can replace the following paragraph with information on
 @c how to join your own translation team and how to report issues with the
diff --git a/guix/self.scm b/guix/self.scm
index 2d11dd47a4..81c5c722e0 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -469,6 +469,10 @@ (define (info-manual source)
                                     v)
                                   "0.0-git")))
                 (format output "\
+@c There's no Texinfo command to test whether @value{UPDATED} ends in 1970 and
+@c tweak the intro to guix.texi accordingly, so we add this Guix-specific flag.
+@set GUIX-PULLED true
+
 @set UPDATED 1 January 1970
 @set UPDATED-MONTH January 1970
 @set EDITION ~a
-- 
2.41.0





Information forwarded to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, rekado@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, guix-patches@HIDDEN:
bug#66148; Package guix-patches. Full text available.

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


Received: (at 66148) by debbugs.gnu.org; 22 Sep 2023 01:01:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 21:01:10 2023
Received: from localhost ([127.0.0.1]:35003 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjUXd-0007Bl-Tl
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 21:01:10 -0400
Received: from tobias.gr ([80.241.217.52]:53096)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1qjUXc-0007BT-2Q
 for 66148 <at> debbugs.gnu.org; Thu, 21 Sep 2023 21:01:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=9OXCtCN2RcXDt
 5SEgHgmP2oP3PdA1+MPccd+MaFEf00=; h=date:subject:to:from;
 d=tobias.gr; 
 b=fdwcdwYWY2bMf4LC4gFkLYqqMkCyf8gFQN9EQepI55MthMcAcBAizq7sNwYPin9O54y9
 h8rWVgQR6J/D5hM2xTvM6c2IIOEI7+eRDDREmFCrQuFLrnn8sIud7eB6YdG1q9N83nDKA2
 6gwJZyG4k8xbGaMXXUOdh9JtH1wfaFisp2u2tWrx6fwCzxDU6nDZQlDWNTzrV2HmDWyrq5
 vIXnGjbTTx8id4e3J93L2XNDqt+RaBrEOFarH6lYCA5HYlD/DW9LZfLbVZ1fa3/GkEE7s9
 JjX6z0QeDFdRjHYRVkGUBfCH9+sWn45CW/Vm3MFlXbicxOVWGtWjWVMidPHGIGCQ==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 3121fa6c
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <66148 <at> debbugs.gnu.org>;
 Fri, 22 Sep 2023 01:00:55 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: 66148 <at> debbugs.gnu.org
Subject: [PATCH v2 1/2] [Sloppy PoC] self: Use a more meaningful VERSION
 string for manuals.
Date: Sun, 17 Sep 2023 01:59:59 +0200
Message-ID: <dd2fb832636c6859d7dfa1fcbd4dc3a7d6559673.1694908800.git.me@HIDDEN>
X-Mailer: git-send-email 2.41.0
MIME-Version: 1.0
X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Ricardo Wurmus <rekado@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 2.1 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: * guix/self.scm (info-manual): Use the last public Guix
 release, 
 according to our own guix package. --- gnu/packages/package-management.scm
 | 2 +- guix/self.scm | 52 ++++++++++++++++++++++++----- 2 fi [...] 
 Content analysis details:   (2.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 2.1 DATE_IN_PAST_96_XX     Date: is 96 hours or more before Received:
 date -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
X-Debbugs-Envelope-To: 66148
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.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  * guix/self.scm (info-manual): Use the last public Guix release,
    according to our own guix package. --- gnu/packages/package-management.scm
    | 2 +- guix/self.scm | 52 ++++++++++++++++++++++++----- 2 fi [...] 
 
 Content analysis details:   (1.1 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
  2.1 DATE_IN_PAST_96_XX     Date: is 96 hours or more before Received:
                             date
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

* guix/self.scm (info-manual): Use the last public Guix release,
according to our own guix package.
---
 gnu/packages/package-management.scm |  2 +-
 guix/self.scm                       | 52 ++++++++++++++++++++++++-----
 2 files changed, 44 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index cbda40f78b..a7f3363f4e 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -172,7 +172,7 @@ (define (boot-guile-uri arch)
 (define-public guix
   ;; Latest version of Guix, which may or may not correspond to a release.
   ;; Note: the 'update-guix-package.scm' script expects this definition to
-  ;; start precisely like this.
+  ;; start precisely like this.  Also match the regexps in (guix self)!
   (let ((version "1.4.0")
         (commit "4dfdd822102690b5687acf28365ab707b68d9476")
         (revision 10))
diff --git a/guix/self.scm b/guix/self.scm
index 5c8c00e0b0..2d11dd47a4 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -418,23 +418,57 @@ (define (info-manual source)
   (define examples
     (file-append* source "gnu/system/examples"))
 
+  ;; Sniff the latest public Guix release version number from this file.
+  (define guix-package-module
+    (file-append* source "gnu/packages/package-management.scm"))
+
   (define build
     (with-imported-modules '((guix build utils))
       #~(begin
           (use-modules (guix build utils)
-                       (ice-9 match))
+                       (ice-9 match)
+                       (ice-9 rdelim)
+                       (ice-9 regex))
+
+          ;; Use regular expressions rather than READ to ‘parse’ the guix
+          ;; package, in an attempt not to limit any future reader extensions.
+          (define guix-package-regexp
+            (make-regexp
+             "^\\(define[-[:alnum:]]*[[:blank:]]+guix([^[:alnum:]]|$)"))
+
+          (define guix-package-version-regexp
+            (make-regexp "\\(version[[:blank:]]*\"([^\"]*)\"\\)"))
+
+          (define (get-guix-package-version port)
+            (let loop ()
+              (let ((line (read-line port)))
+                (unless (or (eof-object? line)
+                            (regexp-exec guix-package-regexp line))
+                  (loop))))
+            (let loop ()
+              (let ((line (read-line port)))
+                (if (eof-object? line)
+                    #f
+                    (let ((rx (regexp-exec guix-package-version-regexp line)))
+                      (if (eq? 2 (and=> rx match:count))
+                          (match:substring rx 1)
+                          (loop)))))))
 
           (mkdir #$output)
 
-          ;; Create 'version.texi'.
-          ;; XXX: Can we use a more meaningful version string yet one that
-          ;; doesn't change at each commit?
+          ;; Create 'version.texi'.  We could sniff the git commit from the
+          ;; SOURCE file name, but don't: not only is the manual expensive to
+          ;; rebuild, VERSION is used almost exclusively to construct release
+          ;; URLs and the like.
           (call-with-output-file "version.texi"
-            (lambda (port)
-              (let ((version "0.0-git"))
-                (pk (find-files #$source "."))
-                (punt)
-                (format port "
+            (lambda (output)
+              (let* ((input   (open-file #$guix-package-module "r"))
+                     (version (if input
+                                  (let ((v (get-guix-package-version input)))
+                                    (close-port input)
+                                    v)
+                                  "0.0-git")))
+                (format output "\
 @set UPDATED 1 January 1970
 @set UPDATED-MONTH January 1970
 @set EDITION ~a

base-commit: ee7c9d254117fa470686210ad2ef5e7f1ba4fefc
prerequisite-patch-id: 4df99ef206175ed2fc52016929d4b7a3413a36dc
prerequisite-patch-id: 61f4235965cf06a4a9a619afb1606c6b9f9eeaf1
prerequisite-patch-id: 4e22c12f447e759bbd52a486f25e279829c7b88f
prerequisite-patch-id: 7e6e4ab87b52996e9bb6cd8595889f21ba87e9fe
prerequisite-patch-id: 6f86f2a54f77c0e8841b6f22953c2f748e358107
prerequisite-patch-id: 7c88071ffd6af8c9de9a44ef2e745e3b111d28e7
prerequisite-patch-id: dacf336396c4f629906e4689dc2868d437179a37
prerequisite-patch-id: 35641348fcba881313d08cb85da3722ba0891264
prerequisite-patch-id: ea98f949fde81f63a309e36405b87463dc07ac50
prerequisite-patch-id: a299994eb9a52db942a5cc3a038b8bc34529c799
prerequisite-patch-id: 9ffc6d3a9be37af59ec29bfce0543cf8371edacb
prerequisite-patch-id: c489fbc8af7d431f9372d0b8bc9e4c609703680e
prerequisite-patch-id: 471c932817cc1044fd03f56e1a1f84e4ce4029a9
prerequisite-patch-id: 88f3a5981ea62ce654a48c258df09315f24ba73e
prerequisite-patch-id: 62b7b8d8b26d642f524d45e910f7685a57345d76
prerequisite-patch-id: 6ad7cb518d3f48614c97e7ef851289a8f4375306
prerequisite-patch-id: 758284e9a8f0cbc718feace3ba3575478360b88a
prerequisite-patch-id: 3fec7d86bd725207d19e77b38cba7f989af68ea3
prerequisite-patch-id: 3bd20d51aa3a07f86722c5894b85f58b96e1e798
prerequisite-patch-id: 1011132081c09cd02295c999c9af44d1191bc4b2
prerequisite-patch-id: c3b42b9e20d68f2d3522424af509bfa6c8e79ee8
prerequisite-patch-id: 760df26aee26e14249c412f32630ae6e71a3fa3e
prerequisite-patch-id: b89039b55bef0639c3679b1a5ba13b7a5593af5b
prerequisite-patch-id: 24fc8fdb82bb9287ed944673e2f922587bc49503
prerequisite-patch-id: 077e45c8081930192499bfa5c7391d882b1ad401
prerequisite-patch-id: 68aa5fda780581e44d43d179d71b1232e568bcd3
prerequisite-patch-id: f31368d6b77f811e4b1fba489492ac4d6cde0948
prerequisite-patch-id: fc4e5787813af14bc812bc61a18acd684bd319af
prerequisite-patch-id: 08f122a2c9dec498a089d665280f37191f96a1ba
prerequisite-patch-id: 8df25a01fcb36ee0616d12930524131a6cb5af40
-- 
2.41.0





Information forwarded to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, rekado@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, guix-patches@HIDDEN:
bug#66148; Package guix-patches. Full text available.

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


Received: (at 66148) by debbugs.gnu.org; 22 Sep 2023 01:00:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 21:00:11 2023
Received: from localhost ([127.0.0.1]:34991 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjUWh-00079d-Dg
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 21:00:11 -0400
Received: from tobias.gr ([80.241.217.52]:33276)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1qjUWe-00079T-Th
 for 66148 <at> debbugs.gnu.org; Thu, 21 Sep 2023 21:00:09 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=nZ3eZYjVuPqvf
 vn8ZtD1YD0qg1ylvsKhkgf0+QlJKp0=; h=date:subject:to:from;
 d=tobias.gr; 
 b=Fpl1swuORXubHhqA7dw7dUGoFvZDp7hCS4FelXElHlx+5LH5+PhizpuIfW+8WUbFl5y7
 A648feNsGJtzunoF10YkpYI95wTWQEutBncf9Qv/+OvyCYl1C0FMpcC91vZdBg1uGQ7/q4
 VSzcMB/8pbXwlc9Bn4QJuCfnhibRI/kAp2MuyuJ6G0Con6/lihtROkeQt9/tVD5pSFwq02
 rhtLnSX02QtdUxCuPASjFh7XEXuW/PKJ93HWCFFDUlHjFUCNGvu0L5hkcUAs9d9uUJQ2M6
 bE/gMj7S1I7rROaJt/twL05pBE/kJpatEkyPMbMbWFGCuRub5NkFwZajNfDr8NRA==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 0cd389d2
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <66148 <at> debbugs.gnu.org>;
 Fri, 22 Sep 2023 00:59:56 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: 66148 <at> debbugs.gnu.org
Subject: [PATCH] doc: Mention it when we were pulled.
Date: Sun, 17 Sep 2023 02:00:01 +0200
Message-ID: <dae1caae6a5355977e6fc0d94b0c16278be206d8.1694908801.git.me@HIDDEN>
X-Mailer: git-send-email 2.41.0
MIME-Version: 1.0
X-Debbugs-Cc: Christopher Baines <guix@HIDDEN>, Josselin Poiret <dev@HIDDEN>, Ludovic Courtès <ludo@HIDDEN>, Mathieu Othacehe <othacehe@HIDDEN>, Ricardo Wurmus <rekado@HIDDEN>, Simon Tournier <zimon.toutoune@HIDDEN>, Tobias Geerinckx-Rice <me@HIDDEN>
Content-Transfer-Encoding: 8bit
X-Spam-Score: 2.1 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  Now that we use the latest release VERSION even for pulled
 Guixes, make it abundantly clear that this is a later build. * guix/self.scm
 (info-manual): @set the PULLED flag in version.texi. * doc/guix.texi (Top):
 Honour it. --- doc/guix.texi | 5 +++-- guix/self.scm | 4 ++++ 2 files changed, 
 7 insertions(+), 2 deletions( [...] 
 Content analysis details:   (2.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
 2.1 DATE_IN_PAST_96_XX     Date: is 96 hours or more before Received:
 date -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
X-Debbugs-Envelope-To: 66148
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.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Now that we use the latest release VERSION even for pulled
    Guixes, make it abundantly clear that this is a later build. * guix/self.scm
    (info-manual): @set the PULLED flag in version.texi. * doc/guix.texi (Top):
    Honour it. --- doc/guix.texi | 5 +++-- guix/self.scm | 4 ++++ 2 files changed,
    7 insertions(+), 2 deletions( [...] 
 
 Content analysis details:   (1.1 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 SPF_PASS               SPF: sender matches SPF record
  2.1 DATE_IN_PAST_96_XX     Date: is 96 hours or more before Received:
                             date
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager

Now that we use the latest release VERSION even for pulled Guixes,
make it abundantly clear that this is a later build.

* guix/self.scm (info-manual): @set the PULLED flag in version.texi.
* doc/guix.texi (Top): Honour it.
---
 doc/guix.texi | 5 +++--
 guix/self.scm | 4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 39088b954b..c959cff1a1 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -166,8 +166,9 @@
 @node Top
 @top GNU Guix
 
-This document describes GNU Guix version @value{VERSION}, a functional
-package management tool written for the GNU system.
+This document describes GNU Guix @inlineifset{GUIX-PULLED, from a
+@command{guix pull} after the release of} version @value{VERSION}, a
+functional package management tool written for the GNU system.
 
 @c TRANSLATORS: You can replace the following paragraph with information on
 @c how to join your own translation team and how to report issues with the
diff --git a/guix/self.scm b/guix/self.scm
index 2d11dd47a4..81c5c722e0 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -469,6 +469,10 @@ (define (info-manual source)
                                     v)
                                   "0.0-git")))
                 (format output "\
+@c There's no Texinfo command to test whether @value{UPDATED} ends in 1970 and
+@c tweak the intro to guix.texi accordingly, so we add this Guix-specific flag.
+@set GUIX-PULLED true
+
 @set UPDATED 1 January 1970
 @set UPDATED-MONTH January 1970
 @set EDITION ~a

base-commit: ee7c9d254117fa470686210ad2ef5e7f1ba4fefc
prerequisite-patch-id: 4df99ef206175ed2fc52016929d4b7a3413a36dc
prerequisite-patch-id: 61f4235965cf06a4a9a619afb1606c6b9f9eeaf1
prerequisite-patch-id: 4e22c12f447e759bbd52a486f25e279829c7b88f
prerequisite-patch-id: 7e6e4ab87b52996e9bb6cd8595889f21ba87e9fe
prerequisite-patch-id: 6f86f2a54f77c0e8841b6f22953c2f748e358107
prerequisite-patch-id: 7c88071ffd6af8c9de9a44ef2e745e3b111d28e7
prerequisite-patch-id: dacf336396c4f629906e4689dc2868d437179a37
prerequisite-patch-id: 35641348fcba881313d08cb85da3722ba0891264
prerequisite-patch-id: ea98f949fde81f63a309e36405b87463dc07ac50
prerequisite-patch-id: a299994eb9a52db942a5cc3a038b8bc34529c799
prerequisite-patch-id: 9ffc6d3a9be37af59ec29bfce0543cf8371edacb
prerequisite-patch-id: c489fbc8af7d431f9372d0b8bc9e4c609703680e
prerequisite-patch-id: 471c932817cc1044fd03f56e1a1f84e4ce4029a9
prerequisite-patch-id: 88f3a5981ea62ce654a48c258df09315f24ba73e
prerequisite-patch-id: 62b7b8d8b26d642f524d45e910f7685a57345d76
prerequisite-patch-id: 6ad7cb518d3f48614c97e7ef851289a8f4375306
prerequisite-patch-id: 758284e9a8f0cbc718feace3ba3575478360b88a
prerequisite-patch-id: 3fec7d86bd725207d19e77b38cba7f989af68ea3
prerequisite-patch-id: 3bd20d51aa3a07f86722c5894b85f58b96e1e798
prerequisite-patch-id: 1011132081c09cd02295c999c9af44d1191bc4b2
prerequisite-patch-id: c3b42b9e20d68f2d3522424af509bfa6c8e79ee8
prerequisite-patch-id: 760df26aee26e14249c412f32630ae6e71a3fa3e
prerequisite-patch-id: b89039b55bef0639c3679b1a5ba13b7a5593af5b
prerequisite-patch-id: 24fc8fdb82bb9287ed944673e2f922587bc49503
prerequisite-patch-id: 077e45c8081930192499bfa5c7391d882b1ad401
prerequisite-patch-id: 68aa5fda780581e44d43d179d71b1232e568bcd3
prerequisite-patch-id: f31368d6b77f811e4b1fba489492ac4d6cde0948
prerequisite-patch-id: fc4e5787813af14bc812bc61a18acd684bd319af
prerequisite-patch-id: 08f122a2c9dec498a089d665280f37191f96a1ba
prerequisite-patch-id: 8df25a01fcb36ee0616d12930524131a6cb5af40
prerequisite-patch-id: a603c66d00222e69422a06d56784dc4362cd5fcd
-- 
2.41.0





Information forwarded to guix@HIDDEN, dev@HIDDEN, ludo@HIDDEN, othacehe@HIDDEN, rekado@HIDDEN, zimon.toutoune@HIDDEN, me@HIDDEN, guix-patches@HIDDEN:
bug#66148; Package guix-patches. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 22 Sep 2023 00:52:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 21 20:52:52 2023
Received: from localhost ([127.0.0.1]:34986 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qjUPc-0006wz-DF
	for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 20:52:52 -0400
Received: from lists.gnu.org ([2001:470:142::17]:41204)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1qjUPZ-0006wh-EI
 for submit <at> debbugs.gnu.org; Thu, 21 Sep 2023 20:52:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1qjUPI-0007PJ-38
 for guix-patches@HIDDEN; Thu, 21 Sep 2023 20:52:32 -0400
Received: from tobias.gr ([80.241.217.52])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1qjUPF-00026n-M5
 for guix-patches@HIDDEN; Thu, 21 Sep 2023 20:52:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=7nLItAaVCiK0g
 lwAAmbK4tQiJyLZw7bOrjEBbXyS/Y0=; h=date:subject:to:from;
 d=tobias.gr; 
 b=loREuBBopHy/8/WlfXuqvJGL6epzQlatdaDjOvOFou+5yhaeT9qpYam3XB9cuTq4+gCr
 o34MK8fSj96m9aDkNkH3DrDElUHMKdzluALvHg/O7/OJEo3Z1qCu8aL25UpilYxHKub2Cp
 pez8bn9TSJNZOBjOrULU9zcMZogrIOvL57oTPCtUn/hR3ZNgvde9TzWAdDiFXaRhw68RRT
 Rpmm7/CoZdusE/s6g+bhI/dZW8qS8JPFhk/tK8SxBLjwtYIwqhLszEthLDpNCoY6WQ95uk
 YIxvzvxRoOao8FoLni/cH8qwxRFbylxzXRkTED4fPoyhGMcXUK9GP7aD/fRKIqpw==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id a18e7612
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <guix-patches@HIDDEN>;
 Fri, 22 Sep 2023 00:52:23 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: guix-patches@HIDDEN
Subject: Fix Guix version number in pulled (=most) manuals
Date: Fri, 22 Sep 2023 01:07:23 +0200
BIMI-Selector: v=BIMI1; s=default;
Message-ID: <87edirt4ft.fsf@nckx>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=80.241.217.52; envelope-from=me@HIDDEN;
 helo=tobias.gr
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, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
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: -0.3 (/)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi all,

To avoid expensive rebuilds, (guix self) explicitly substitutes=20
the less than satisfying "0.0-git" as version number for the=20
Texinfo manual.

In some cases, that's merely ugly and confusing:

> This document describes GNU Guix version 0.0-git, a functional
> package management tool written for the GNU system.

or

> If you=E2=80=99re running Debian or a derivative such as Ubuntu, you can
> instead install the package (it might be a version older than
> 0.0-git but you can update it afterwards by running =E2=80=98guix=20
> pull=E2=80=99):

But in most cases it's worse:

> 1. Download the binary tarball from
> =E2=80=98https://ftp.gnu.org/gnu/guix/guix-binary-0.0-git.x86_64-linux.ta=
r.xz=E2=80=99,

eek

> $ wget=20
> https://ftp.gnu.org/gnu/guix/guix-binary-0.0-git.x86_64-linux.tar.xz.sig
> $ gpg --verify guix-binary-0.0-git.x86_64-linux.tar.xz.sig

boo

> An ISO-9660 installation image that can be written to a USB=20
> stick
> or burnt to a DVD can be downloaded from
> =E2=80=98https://ftp.gnu.org/gnu/guix/guix-system-install-0.0-git.x86_64-=
linux.iso=E2=80=99

nein

> make sure you checked the GPG signature of =E2=80=98guix-0.0-git.tar.gz=
=E2=80=99

Imagine coming to this with a fresh mind & without our knowledge=20
that this is =E2=80=98obviously wrong=E2=80=99.  After all: this is the off=
icial=20
upstream updater, not some random git snapshot!

(Only later will you find out the truth that it is both, but=20
you'll no longer care.)

Anyway.  So hesitant am I to even READ future (gnu packages=20
package-management) versions from older Guixen that I've committed=20
the crime of regex, twice.  Punish me by sharing your thoughts.

Kind regards,

T G-R

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCZQzlRg0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15w3IA/0wVWwaF/jQDFuWUGNCYga6htHVgh1lfgaouIuQL
3rgHAP9zmtrl8bRbIpbIqkl8L8zcpEnOleNsmRgH/BpdFX/0DQ==
=j+qh
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Tobias Geerinckx-Rice <me@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#66148; Package guix-patches. 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: Fri, 22 Sep 2023 13:30:02 UTC

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