Source: ferret-vis
Version: 6.9.3-2.1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [0], we have noticed
that ferret-vis could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, ferret-vis can be built reproducibly in our reproducible
toolchain.

 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-build.patch   1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-build.patch   2015-08-31 18:12:03.020475556 
+0100
@@ -0,0 +1,14 @@
+--- ferret-vis-6.9.3.orig/fer/Makefile
++++ ferret-vis-6.9.3/fer/Makefile
+@@ -145,7 +145,11 @@ ferret:
+ .PHONY: update
+ update:
+       - mv $(EXECNAME) $(EXECNAME)_`ls -l $(EXECNAME) | awk '{print 
$$6"_"$$7}' | tr [A-Z] [a-z]`
++ifdef SOURCE_DATE_EPOCH
++      ${MAKE} update_date DATE=`/bin/date --utc 
--date="@$(SOURCE_DATE_EPOCH)" +%D`
++else
+       ${MAKE} update_date DATE=`/bin/date +%D`
++endif
+       rm -f special/xrevision_type_data.[Ffo]
+       sed -e 's&mmmmmmmm&($(DEBUG_TITLE)/$(GUI))&' -e 's&(/&(&' -e 's&/)&)&' 
< special/xrevision_type_data.template > special/xrevision_type_data.F 
+       rm -f special/xplatform_type_data.[Ffo]
--- a/debian/patches/series     2015-08-31 17:45:19.118960423 +0100
--- b/debian/patches/series     2015-08-31 18:11:59.896449040 +0100
@@ -4,3 +4,4 @@
 missing-functions.patch
 debian.patch
 fix-bashisms.patch
+reproducible-build.patch
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to