Bug#860372: hp-search-mac: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Apr 15 10:15:37 UTC 2017


Source: hp-search-mac
Version: 0.1.4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at 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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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


More information about the Reproducible-bugs mailing list