From: Jakob Kirsch via Guix-patches via <guix-patches@gnu.org>
To: 74112@debbugs.gnu.org
Subject: [bug#74112] [PATCH] Fix determinism issue in guix package
Date: Wed, 30 Oct 2024 19:06:57 +0100 [thread overview]
Message-ID: <ZyJ1wSX6cPIdnLpN@kernelpanicroom> (raw)
[-- Attachment #1: Type: text/plain, Size: 524 bytes --]
I've recently noticed that `guix challenge guix` returns different hashes for each substitute server and also every build with `guix build --no-grafts guix` fails.
Running `guix build --no-grafts guix --cores=1` seems to reliably produce the same hash though. As someone pointed out on XMPP, Guile seems to have issues with parallel builds so this patch disables them for the guix package.
I think this has high importance because the main guix package should be reproducible in order to trust the whole chain of packages.
[-- Attachment #2: v1-0001-gnu-guix-Fix-determinism-issue.patch --]
[-- Type: text/plain, Size: 1292 bytes --]
From 0f3df56dd0c430c09ba2839c9e2d5b32948201ae Mon Sep 17 00:00:00 2001
Message-ID: <0f3df56dd0c430c09ba2839c9e2d5b32948201ae.1730311414.git.jakob.kirsch@web.de>
From: Jakob Kirsch <jakob.kirsch@web.de>
Date: Wed, 30 Oct 2024 19:02:15 +0100
Subject: [PATCH v1] gnu: guix: Fix determinism issue
* gnu/packages/package-management.scm (guix): Fix determinism issue by disabling parallel build.
Change-Id: Ie28e16ed1f15cbc0da0c0d70b2c461e2baa3ff0a
---
gnu/packages/package-management.scm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 1763d2d59f..478a74385b 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -199,7 +199,8 @@ (define-public guix
(file-name (string-append "guix-" version "-checkout"))))
(build-system gnu-build-system)
(arguments
- `(#:configure-flags (list
+ `(#:parallel-build? #false ; for reproducibility
+ #:configure-flags (list
;; Provide channel metadata for 'guix describe'.
;; Don't pass '--with-channel-url' and
base-commit: d6f775c30c6f47e174f6110d1089edc6315600e4
--
2.46.0
next reply other threads:[~2024-10-30 18:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ZykUqu7t4WuUF9kj@kernelpanicroom>
2024-10-30 18:06 ` Jakob Kirsch via Guix-patches via [this message]
2024-11-05 10:31 ` [bug#74112] bug#74204: Guix is not reproducible Hilton Chain via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZyJ1wSX6cPIdnLpN@kernelpanicroom \
--to=guix-patches@gnu.org \
--cc=74112@debbugs.gnu.org \
--cc=jakob.kirsch@web.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).