GNU bug report logs - #76109
[PATCH] doc: Mention --check --no-grafts as a way to force-rebuild packages.

Previous Next

Package: guix-patches;

Reported by: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>

Date: Thu, 6 Feb 2025 23:45:02 UTC

Severity: normal

Tags: patch

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
Subject: bug#76109: closed (Re: [bug#76109] [PATCH] doc: Mention --check
 --no-grafts as a way to force-rebuild packages.)
Date: Fri, 07 Feb 2025 19:03:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#76109: [PATCH] doc: Mention --check --no-grafts as a way to force-rebuild packages.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 76109 <at> debbugs.gnu.org.

-- 
76109: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76109
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Leo Famulari <leo <at> famulari.name>
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>, 76109-done <at> debbugs.gnu.org
Subject: Re: [bug#76109] [PATCH] doc: Mention --check --no-grafts as a way to
 force-rebuild packages.
Date: Fri, 7 Feb 2025 14:02:08 -0500
On Fri, Feb 07, 2025 at 02:23:20AM +0100, Rostislav Svoboda wrote:
> @@ -3978,7 +3978,11 @@ On Trusting Binaries
>  challenge}).  Similarly, the @option{--check} option of @command{guix
>  build} allows users to check whether previously-installed substitutes
>  are genuine by rebuilding them locally (@pxref{build-check,
> -@command{guix build --check}}).
> +@command{guix build --check}}).  To force a full rebuild of a package
> +(ignoring security updates via grafts, if any grafts exist—which is
> +not always the case), use @option{--check} together with
> +@option{--no-grafts} (@pxref{Common Build Options,
> +@option{--no-grafts}}).

I realized that it would be worthwhile to include a brief explanation of
why --no-grafts would be necessary here, so I wrote another sentence and
pushed as 8e9bceda87d55f475992ec5184590463ac7b5ffb

Thanks for recognizing the need for the documentation and making it
happen!

[Message part 3 (message/rfc822, inline)]
From: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Rostislav Svoboda <Rostislav.Svoboda <at> gmail.com>
Subject: [PATCH] doc: Mention --check --no-grafts as a way to force-rebuild
 packages.
Date: Fri,  7 Feb 2025 00:43:36 +0100
* doc/guix.texi (On Trusting Binaries): Document that combining --check and
--no-grafts with 'guix build' forces the rebuild of a package.

Change-Id: I4eb6be04243a52f70d0fc298f76e62f10e3d376e
---
 doc/guix.texi | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/doc/guix.texi b/doc/guix.texi
index 9f1e4bf0f0..20d9debfbf 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -3978,7 +3978,10 @@ On Trusting Binaries
 challenge}).  Similarly, the @option{--check} option of @command{guix
 build} allows users to check whether previously-installed substitutes
 are genuine by rebuilding them locally (@pxref{build-check,
-@command{guix build --check}}).
+@command{guix build --check}}).  To force a full rebuild of a package
+(ignoring security updates via grafts), use @option{--check} together
+with @option{--no-grafts} (@pxref{Common Build Options,
+@option{--no-grafts}}).
 
 In the future, we want Guix to have support to publish and retrieve
 binaries to/from other users, in a peer-to-peer fashion.  If you would

base-commit: 3afa3aa73a35364f8c429334ac68f50f719f5b22
-- 
2.48.1




This bug report was last modified 101 days ago.

Previous Next


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