[openturns] 02/04: Use SOURCE_DATE_EPOCH for reproducible builds

Denis Barbier barbier at moszumanska.debian.org
Sun Nov 19 15:27:52 UTC 2017


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

barbier pushed a commit to branch debian
in repository openturns.

commit 81af995d89bc54d6e7c163965be0b1732b5c35f7
Author: Denis Barbier <bouzim at gmail.com>
Date:   Fri Aug 25 23:25:44 2017 +0200

    Use SOURCE_DATE_EPOCH for reproducible builds
---
 debian/rules | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 346e131..e57fa1a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -43,6 +43,8 @@ PYVER = $(shell pyversions -d)
 PY3VER = $(shell py3versions -d)
 PYALL = $(PYVER) $(PY3VER)
 
+BUILD_DATE = $(shell date --utc --date="@$(SOURCE_DATE_EPOCH)" "+%a, %d %b %Y %H:%M:%S %z")
+
 %:
 ifneq (,$(findstring $(shell dpkg-architecture -qDEB_HOST_ARCH), mips mipsel))
 	$(error This package requires more than 1GB RAM; do not build on mips/mipsel)
@@ -51,13 +53,14 @@ endif
 
 debian/tmp/usr/lib/R/site-library/rot:
 	-mkdir -p $(debRlib)
-	R CMD INSTALL --library=$(debRlib) utils/rot_1.4.6.tar.gz
+	R CMD INSTALL --library=$(debRlib) --built-timestamp='$(BUILD_DATE)' utils/rot_1.4.6.tar.gz
 
 override_dh_auto_configure: debian/tmp/usr/lib/R/site-library/rot $(PYALL:python%=cmake-configure-%) \
 
 cmake-configure-%:
 	dh_auto_configure -Bbuild-python$* -- \
             $(with_tbb) \
+            -Dot_configure_date:STRING='$(BUILD_DATE)' \
             -DUSE_SPHINX:BOOL=OFF \
             -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ \
             -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/openturns.git



More information about the debian-science-commits mailing list