Package: pixelmed-codec / 20170512-2

reproducible_build.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2016-08-11
Bug-Debian: https://bugs.debian.org/834052

--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,11 @@ metainf:
 
 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