[med-svn] [pixelmed-codec] 04/08: Enable reproducile builds

Andreas Tille tille at debian.org
Thu Sep 14 16:48:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository pixelmed-codec.

commit 04bf1c39153c4df5517d76c44cbb94d6938994c5
Author: Andreas Tille <tille at debian.org>
Date:   Fri Aug 12 13:24:08 2016 +0000

    Enable reproducile builds
---
 debian/changelog                        |  7 +++++++
 debian/patches/reproducible_build.patch | 19 +++++++++++++++++++
 debian/patches/series                   |  1 +
 3 files changed, 27 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 91f34a3..b4aa795 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pixelmed-codec (20141206-2) UNRELEASED; urgency=medium
+
+  * Make build reproducible (thanks for the patch to Chris Lamb)
+    Closes: #834052
+
+ -- Andreas Tille <tille at debian.org>  Fri, 12 Aug 2016 15:21:44 +0200
+
 pixelmed-codec (20141206-1) unstable; urgency=low
 
   * Initial release. (Closes: #808152)
diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..ef99733
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-11
+Bug-Debian: https://bugs.debian.org/834052
+
+--- 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:
diff --git a/debian/patches/series b/debian/patches/series
index bded595..03dc144 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 set_java_home.patch
 # debian_jars.patch
+reproducible_build.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pixelmed-codec.git



More information about the debian-med-commit mailing list