Source: hp-search-mac Version: 0.1.4 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that hp-search-mac could not be built reproducibly. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/Makefile 2017-04-15 11:10:38.989029602 +0100 --- b/Makefile 2017-04-15 11:14:26.502040312 +0100 @@ -1,8 +1,14 @@ +ifdef SOURCE_DATE_EPOCH + BUILD_DATE = $(shell LANG=C date --utc --date="@$(SOURCE_DATE_EPOCH)") +else + BUILD_DATE = $(shell LANG=C date) +endif + all: for PL in *.pl ; do \ pod2man --section=1 \ --release=" hp-search-mac " \ - --date="`LANG=C date`" \ + --date="$(BUILD_DATE)" \ $$PL > $$(echo $$PL | sed -e "s|.pl|.1|;") ;\ gzip -9 $$(echo $$PL | sed -e "s|.pl|.1|;") \ ; done