guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/02: gnu: autogen: Build reproducibly.


From: guix-commits
Subject: 02/02: gnu: autogen: Build reproducibly.
Date: Mon, 13 Jun 2022 23:59:50 -0400 (EDT)

vagrantc pushed a commit to branch master
in repository guix.

commit 824f2afcf0ffa7d515b04e360fa49a6b0c4a7753
Author: Vagrant Cascadian <vagrant@reproducible-builds.org>
AuthorDate: Mon Jun 13 18:51:00 2022 -0700

    gnu: autogen: Build reproducibly.
    
    * gnu/packages/autogen.scm (autogen)[arguments]: Add
      'use-numeric-ids-in-tarball phase.
---
 gnu/packages/autogen.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/autogen.scm b/gnu/packages/autogen.scm
index d0e4f2f34c..9751e11a64 100644
--- a/gnu/packages/autogen.scm
+++ b/gnu/packages/autogen.scm
@@ -73,6 +73,13 @@
                (("#elif GUILE_VERSION < 203000") "#elif GUILE_VERSION < 
301000"))
              (substitute* "configure"
                (("2.2 2.0 1.8") "3.0 2.2 2.0 1.8"))))
+         (add-after 'unpack 'use-numeric-ids-in-tarball
+           ;; Pass arguments to tar to generate tarball with consistent uid
+           ;; and gid to ensure reproducible build
+           (lambda _
+             (substitute* "pkg/libopts/mklibsrc.sh"
+               (("--sort=name --format=gnu")
+                "--sort=name --format=gnu --owner=0 --group=0 
--numeric-owner"))))
          (add-before 'build 'set-man-page-date
            ;; Avoid embedding the current date for reproducible builds
            (lambda _



reply via email to

[Prev in Thread] Current Thread [Next in Thread]