Source: adduser
Version: 3.113+nmu3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that adduser could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, adduser can be built reproducibly in our current experimental
framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff -urNad adduser.orig/adduser-3.113+nmu3/debian/rules
adduser/adduser-3.113+nmu3/debian/rules
--- adduser.orig/adduser-3.113+nmu3/debian/rules 2015-02-07
09:46:26.743192249 +0000
+++ adduser/adduser-3.113+nmu3/debian/rules 2015-02-07 10:41:41.286433263
+0000
@@ -65,7 +65,7 @@
install -o root -g root -m644 TODO debian/tmp/usr/share/doc/adduser/
install -o root -g root -m644 debian/changelog
debian/tmp/usr/share/doc/adduser/
install -o root -g root -m644 debian/lintian/overrides/adduser
debian/tmp/usr/share/lintian/overrides
- find debian/tmp/usr/share/doc -type f | xargs gzip -9f
+ find debian/tmp/usr/share/doc -type f | xargs gzip -9fn
install -o root -g root -m644 deluser.conf debian/tmp/etc
install -o root -g root -m644
examples/adduser.local.conf.examples/skel.other/index.html
debian/tmp/usr/share/doc/adduser/examples/adduser.local.conf.examples/skel.other/
install -o root -g root -m644
examples/adduser.local.conf.examples/skel/dot.bash_logout
debian/tmp/usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/
diff -urNad adduser.orig/adduser-3.113+nmu3/debian/scripts/install-manpages.pl
adduser/adduser-3.113+nmu3/debian/scripts/install-manpages.pl
--- adduser.orig/adduser-3.113+nmu3/debian/scripts/install-manpages.pl
2015-02-07 09:46:26.743192249 +0000
+++ adduser/adduser-3.113+nmu3/debian/scripts/install-manpages.pl
2015-02-07 10:42:06.151536875 +0000
@@ -58,7 +58,7 @@
close(IN);
close(OUT);
printf("Compressing and setting permissions for %s...\n", $destfile);
- system("/bin/gzip", "-9", $destfile);
+ system("/bin/gzip", "-9n", $destfile);
chmod(0644, $destfile.".gz");
}
closedir(DIR);