[med-svn] [trinityrnaseq] 03/03: add more reproducibility

Michael Crusoe misterc-guest at moszumanska.debian.org
Wed Sep 16 21:10:05 UTC 2015


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

misterc-guest pushed a commit to branch master
in repository trinityrnaseq.

commit 031847cffdf33ae3cd0df2487ba3cafb64f6b5bc
Author: Michael R. Crusoe <michael.crusoe at gmail.com>
Date:   Wed Sep 16 12:30:04 2015 -0700

    add more reproducibility
---
 debian/changelog                  |  2 +-
 debian/patches/reproducible-build | 22 ++++++++++++++++++++++
 debian/patches/series             |  1 +
 debian/rules                      |  3 +++
 4 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 5c2b3e4..f830a90 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,4 +2,4 @@ trinityrnaseq (2.0.6+dfsg-1) UNRELEASED; urgency=low
 
   * Initial release (Closes: #777697)
 
- -- Michael R. Crusoe <crusoe at ucdavis.edu>  Thu, 24 May 2012 14:30:13 +0200
+ -- Michael R. Crusoe <crusoe at ucdavis.edu>  Wed, 16 Sep 2015 12:35:09 -0700
diff --git a/debian/patches/reproducible-build b/debian/patches/reproducible-build
new file mode 100644
index 0000000..ffa0ca0
--- /dev/null
+++ b/debian/patches/reproducible-build
@@ -0,0 +1,22 @@
+Author: Michael R. Crusoe <crusoe at ucdavis.edu>
+Description: Allow overriding of the MAKE_DATE define
+Enables reproducible builds
+--- trinityrnaseq.orig/Chrysalis/Makefile
++++ trinityrnaseq/Chrysalis/Makefile
+@@ -52,6 +52,7 @@
+ ##############################################################################
+ 
+ DATE = $(shell date)
++BUILD_DATETIME ?= $(DATE)  # allow for overrides to enable reproducible builds
+ OS_NAME = $(shell uname -s)
+ NODE_NAME = $(shell uname -n)
+ OS_RELEASE = $(shell uname -r)
+@@ -277,7 +278,7 @@
+ 
+ # Base definitions:
+ SYS_DEFS	= \
+-		  -DMAKE_DATE='"$(DATE)"' \
++		  -DMAKE_DATE='"$(BUILD_DATETIME)"' \
+ 		  -DMAKE_OS_RELEASE='"$(OS_RELEASE)"' \
+ 		  -DMAKE_RELEASE='"$(RELEASE)"' \
+ 		  -DNEW_MAKEFILE
diff --git a/debian/patches/series b/debian/patches/series
index b7c5342..e6ba448 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -8,3 +8,4 @@ collections15-to-4
 fix-jsquery
 fix_system_paths
 hardening
+reproducible-build
diff --git a/debian/rules b/debian/rules
index aa5fd46..5892085 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,9 @@ export JAVA_HOME=/usr/lib/jvm/default-java
 SOURCE_DIRECTORIES = Inchworm Chrysalis trinity-plugins/*Fastool* trinity-plugins/slclust
 BASEDIR=debian/trinityrnaseq/usr/lib/trinityrnaseq
 
+LAST_CHANGE := $(shell dpkg-parsechangelog -S Date)
+export BUILD_DATETIME := $(shell LC_ALL=C date -u -d '$(LAST_CHANGE)')
+
 %:
 	dh $@ --parallel --with javahelper,autoreconf
 

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



More information about the debian-med-commit mailing list