diff options
author | Vagrant Cascadian <vagrant@reproducible-builds.org> | 2022-06-13 18:51:00 -0700 |
---|---|---|
committer | Vagrant Cascadian <vagrant@debian.org> | 2022-06-13 20:56:47 -0700 |
commit | 824f2afcf0ffa7d515b04e360fa49a6b0c4a7753 (patch) | |
tree | 55866d640c371550907b6abcd4f1a1c06d11128d /gnu/packages/autogen.scm | |
parent | 3691e37eb14c5871d213646154b98f5aaa5dd2f1 (diff) | |
download | guix-824f2afcf0ffa7d515b04e360fa49a6b0c4a7753.tar guix-824f2afcf0ffa7d515b04e360fa49a6b0c4a7753.tar.gz |
gnu: autogen: Build reproducibly.
* gnu/packages/autogen.scm (autogen)[arguments]: Add
'use-numeric-ids-in-tarball phase.
Diffstat (limited to 'gnu/packages/autogen.scm')
-rw-r--r-- | gnu/packages/autogen.scm | 7 |
1 files changed, 7 insertions, 0 deletions
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 _ |