File: reproducible_build.patch

package info (click to toggle)
pixelmed-codec 20141206-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 268 kB
  • ctags: 329
  • sloc: java: 1,270; makefile: 164
file content (19 lines) | stat: -rw-r--r-- 552 bytes parent folder | 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

--- 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: