[eccodes] 11/13: Sanitize cmake scripts further, removing build paths for reproduciblity.

Alastair McKinstry mckinstry at moszumanska.debian.org
Wed Oct 25 10:55:29 UTC 2017


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

mckinstry pushed a commit to tag debian/2.5.0-2
in repository eccodes.

commit 5f23fb40bcf5af6176a464bbb4978912b9f944d1
Author: Alastair McKinstry <mckinstry at debian.org>
Date:   Wed Oct 11 13:20:25 2017 +0100

    Sanitize cmake scripts further, removing build paths for reproduciblity.
---
 debian/changelog | 6 ++++++
 debian/rules     | 8 ++++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index ce03b60..a72f28a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+eccodes (2.5.0-2) UNRELEASED; urgency=medium
+
+  * Sanitize cmake scripts further, removing build paths for reproduciblity.
+
+ -- Alastair McKinstry <mckinstry at debian.org>  Wed, 11 Oct 2017 13:19:59 +0100
+
 eccodes (2.5.0-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/rules b/debian/rules
index 0c7345c..8345e0e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -49,7 +49,6 @@ BUILD_FLAGS =  \
 	dh $@ --buildsystem=cmake --with=python3 --builddirectory=${BUILDDIR} --no-parallel
 
 override_dh_auto_configure:
-	# Disable python modules until we figure out how to build them properly
 	F77=gfortran dh_auto_configure -- \
 	    ${BUILD_FLAGS}
 	( cd ${BUILDDIR}/data ; tar axpf $(CURDIR)/../eccodes_$(UPSTREAM_VERSION).orig-data.tar.xz )
@@ -95,7 +94,12 @@ override_dh_install:
 	sed -s 's%/usr/include/${PY3VERSD};%%g' | sed -e 's%/usr/include/python2.7;%%g' | \
 	sed -e 's%;${LIBDIR}/libpng.so%%g' \
 		> debian/libeccodes-dev/$(LIBDIR)/cmake/eccodes/grib_api-config.cmake
-
+	# For bit-reproducibility, sanitize the build paths
+	for f in eccodes-config.cmake eccodes-import.cmake grib_api-config.cmake ; do \	
+		sed -e 's%${CURDIR}%/build%g' < debian/libeccodes-dev/$(LIBDIR)/cmake/eccodes/$$f \
+		> debian/libeccodes-dev/$(LIBDIR)/cmake/eccodes/x; \
+		mv debian/libeccodes-dev/$(LIBDIR)/cmake/eccodes/x  debian/libeccodes-dev/$(LIBDIR)/cmake/eccodes/$$f ; \
+		done
 
 override_dh_auto_clean:
 	dh_auto_clean

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



More information about the debian-science-commits mailing list