Source: wims-modules-es Version: 3.64-1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps fileordering
Hi! While working on Debian's “reproducible builds” effort [1], we have noticed that wims-modules-es doesn't build reproducibly. It updates debian/copyright at build time with a timestamp and random file order. The attached patch fixes this. Once applied, wims-modules-es can be built reproducibly in our current experimental framework. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/makedebiancopyright.sh b/makedebiancopyright.sh index 55acfb8..8dde084 100644 --- a/makedebiancopyright.sh +++ b/makedebiancopyright.sh @@ -29,12 +29,12 @@ Here is the automatically generated list: EOF -echo "This list was generated on "$(date) >> debian/copyright +echo "This list was generated on "$(dpkg-parsechangelog --show-field Date) >> debian/copyright echo "-------------------------------------------------------------" >> debian/copyright echo >> debian/copyright ( - for f in $(find modules/ -type f -name INDEX); do + for f in $(find modules/ -type f -name INDEX | LC_ALL=C sort); do echo -n "$(dirname $f) "; grep COPYING $f | sed -e 's%\(.*\)©\(.*\)<a.*COPYING>\(.*\)</a>\(.*\)%\1\2\3\4%'| sed -e 's/copyright= /(c)/'; grep author $f;
signature.asc
Description: OpenPGP digital signature

