Package: dos2unix Version: 6.0.4-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps
Hi! While working on the "reproducible builds" effort [1], we have noticed that dos2unix could not be built reproducibly. The attached patch removes extra timestamps from the build system. Once applied, dos2unix can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds -- System Information: Debian Release: stretch/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -rupN dos2unix-6.0.4.old/debian/rules dos2unix-6.0.4/debian/rules --- dos2unix-6.0.4.old/debian/rules 2014-01-03 09:07:50.000000000 -0200 +++ dos2unix-6.0.4/debian/rules 2015-05-31 03:46:57.648901919 -0300 @@ -5,6 +5,10 @@ PKGDIR = $(CURDIR)/debian/$(PACKAGE) DOCROOTDIR = $(PKGDIR)/usr/share/doc PKGDOCDIR = $(DOCROOTDIR)/$(PACKAGE) +BUILD_DATE = $(shell dpkg-parsechangelog -S Date) +PODCENTER = $(shell date -u +"%Y-%m-%d" --date="$(BUILD_DATE)") +export PODCENTER + export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed