unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 3c3977b683773c74bd8cba144b792183d58f9945 1240 bytes (raw)
name: gnu/packages/patches/extra-cmake-modules-reproducible-tarballs.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
 
Fixes 2 non-reproducibility bugs:
1: root GID in guix can changed, and is embedded in the tarball. this sets it to 0
2: mtime of some directories set to current time. This sets it to 0 SOURCE_DATE_EPOCH

--- a/kde-modules/KDEPackageAppTemplates.cmake
+++ b/kde-modules/KDEPackageAppTemplates.cmake
@@ -117,8 +117,8 @@ function(kde_package_app_templates)
             # Make tar archive reproducible, the arguments are only available with GNU tar
             add_custom_command(OUTPUT ${_template}
                 COMMAND ${_tar_executable} ARGS -c
-                   --exclude .kdev_ignore --exclude .svn --sort=name --mode=go=rX,u+rw,a-s --owner=root
-                   --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0
-                   --group=root --numeric-owner -j -v -f ${_template} .
+                   --exclude .kdev_ignore --exclude .svn --sort=name --mode=go=rX,u+rw,a-s
+                   --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime
+                   --mtime="@${SOURCE_DATE_EPOCH}" --owner=0 --group=0 --numeric-owner -j -v -f ${_template} .
                 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_templateName}
                 DEPENDS ${_subdirs_entries}
             )

debug log:

solving 3c3977b683 ...
found 3c3977b683 in https://yhetil.org/guix-patches/20211015093015.5834-7-mail@brendan.scot/

applying [1/1] https://yhetil.org/guix-patches/20211015093015.5834-7-mail@brendan.scot/
diff --git a/gnu/packages/patches/extra-cmake-modules-reproducible-tarballs.patch b/gnu/packages/patches/extra-cmake-modules-reproducible-tarballs.patch
new file mode 100644
index 0000000000..3c3977b683

Checking patch gnu/packages/patches/extra-cmake-modules-reproducible-tarballs.patch...
Applied patch gnu/packages/patches/extra-cmake-modules-reproducible-tarballs.patch cleanly.

index at:
100644 3c3977b683773c74bd8cba144b792183d58f9945	gnu/packages/patches/extra-cmake-modules-reproducible-tarballs.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).