Source: gmap Version: 2020-04-08+ds-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: buildpath X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0] we noticed that gmap could not be built reproducibly. This is because the tests embed the absolute build dir, as well as inherit the build system's choice of /bin/sh symlink. Patch attached that normalises these prior to calling tar(1). [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/rules 2020-04-12 17:00:43.068505091 +0100 --- b/debian/rules 2020-04-12 17:35:28.162127458 +0100 @@ -43,6 +43,9 @@ override_dh_installexamples: mkdir $(CURDIR)/debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples + find tests/ -type f -print0 | xargs -0r sed -i \ + -e 's@$(CURDIR)@«buildpath»@g' \ + -e 's@\#! /bin/bash@\#! /bin/sh@g' tar --sort=name \ --mtime="@${SOURCE_DATE_EPOCH}" \ --owner=root --group=root --numeric-owner \