Bug#914672: netcdf-parallel: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Nov 26 07:51:44 GMT 2018


Source: netcdf-parallel
Version: 1:4.6.1-3
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that netcdf-parallel could not be built reproducibly.

This is because it ships .settings and .cmake files that include the
build arguments which, due to --debug-prefix-map are not reproducible.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2018-11-26 08:31:34.955934061 +0100
--- b/debian/rules	2018-11-26 08:50:57.884600226 +0100
@@ -91,6 +91,8 @@
 	-find $(CURDIR)/debian/tmp/usr/bin -type f -not -name nc-config -exec chrpath --delete {} \;
 	-find $(CURDIR)/debian/tmp/usr/lib -type f -name "*.so*" -exec chrpath --delete {} \;
 	cp include/netcdf_par.h debian/tmp/$(LIBDIR)/netcdf/mpi/include 
+	find $(CURDIR)/debian/tmp/usr/lib -type f \( -name "*.settings" -or -name "*.cmake" \) -print0 | \
+		xargs 0r sed -i -e 's@ [^ ]*-f\(file\|debug\)-prefix-map=[^ ]*@@g'
 
 override_dh_auto_test:
 	ARGS="--output-on-failure" dh_auto_test --max-parallel=1 || echo "Ignoring test failures"


More information about the Reproducible-bugs mailing list