Source: superlu-dist
Version: 6.1.1+dfsg1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed
that superlu-dist could not be built reproducibly.
Whilst it was likely reproducible in the past, due to the combination
of using sed's extended regular expression support (ie. "sed -r")
and repacking the tarball this means that the plus character ("+") in
the was causing the match part of the regular expression to fail to be
interpreted correctly.
Specifically, 6.1.1+dfsg1-1 when used as a regular expression instead
of a string literal is interpreted as attempting to match one or more
"1" characters followed by "dfsg", rather than the actual version and
thus directory name and thus the match misses and the required
replacement is not made.
Patch attached that just switches to regular "sed -e" for this part of
the replacement.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2019-08-04 09:15:35.043423422 +0100
--- b/debian/rules 2019-08-04 09:56:17.260567876 +0100
@@ -56,7 +56,8 @@
override_dh_install:
dh_install
for testfile in $$( find debian/libsuperlu-dist-dev -name
CTestTestfile.cmake ); do \
- sed -r "s|$(CURDIR)|<<builddir>>/superlu-dist|; \
-
s|(.*)\".*/(EXAMPLE/.*ua)|\1\"/usr/lib/$(DEB_HOST_MULTIARCH)/superlu-dist/tests/\2|"
\
+ sed -e "s|$(CURDIR)|<<builddir>>/superlu-dist|;" \
+ -i $$testfile; \
+ sed -r
"s|(.*)\".*/(EXAMPLE/.*ua)|\1\"/usr/lib/$(DEB_HOST_MULTIARCH)/superlu-dist/tests/\2|"
\
-i $$testfile; \
done