[Reproducible-builds] Bug#833141: apg: please make the build reproducible (umask)
Daniel Shahaf
danielsh at apache.org
Mon Aug 1 10:56:05 UTC 2016
Source: apg
Version: 2.2.3.dfsg.1-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: umask
Dear Maintainer,
While working on the “reproducible builds” effort [1], we have noticed
that apg could not be built reproducibly.
Following up on #778215, please find enclosed a patch that makes the
permissions of files inside php.tar.gz independent of the umask [2].
Cheers,
Daniel
[1]: https://wiki.debian.org/ReproducibleBuilds
[2]: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/apg.html
[[[
diff --git a/debian/rules b/debian/rules
index e313383..11d92b9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,8 @@ override_dh_auto_build:
override_dh_auto_install:
make install INSTALL_PREFIX=$(CURDIR)/debian/apg/usr
mv $(CURDIR)/debian/apg/usr/bin/apg $(CURDIR)/debian/apg/usr/lib/apg/apg
- tar --create --file - --directory $(CURDIR)/php/apgonline/ . | gzip --no-name > php.tar.gz
+ tar --create --file - --directory $(CURDIR)/php/apgonline/ --mode=u=rwX,go=rX . \
+ | gzip --no-name > php.tar.gz
install -D --mode=0644 php.tar.gz $(CURDIR)/debian/apg/usr/share/doc/apg/php.tar.gz
rm php.tar.gz
install -D --mode=0755 $(CURDIR)/debian/apg.wrapper $(CURDIR)/debian/apg/usr/bin/apg
]]]
More information about the Reproducible-builds
mailing list