Source: pixelmed-codec Version: 20141206-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, Whilst working on the "reproducible builds" effort [0], we noticed that pixelmed-codec could not be built reproducibly. Patch attached. [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 2016-08-11 17:28:14.803715294 +0100 @@ -0,0 +1,18 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2016-08-11 + +--- pixelmed-codec-20141206.orig/Makefile ++++ pixelmed-codec-20141206/Makefile +@@ -58,7 +58,11 @@ include ${PATHTOROOT}/Makefile.common.mk + + pixelmed_codec.jar: + (cd com/pixelmed/codec/jpeg; make all) ++ifdef SOURCE_DATE_EPOCH ++ LC_ALL=C date --utc --date="@$$SOURCE_DATE_EPOCH" >BUILDDATE ++else + date >BUILDDATE ++endif + jar -cvf $@ BUILDDATE COPYRIGHT \ + com/pixelmed/codec/jpeg/*.class + changelog: --- a/debian/patches/series 2016-08-11 17:18:43.222976689 +0100 --- b/debian/patches/series 2016-08-11 17:27:51.215520673 +0100 @@ -1,2 +1,3 @@ set_java_home.patch # debian_jars.patch +reproducible_build.patch