Bug#1050955: rpy2: please make the build reproducible
Chris Lamb
lamby at debian.org
Thu Aug 31 19:37:04 BST 2023
Source: rpy2
Version: 3.5.13-5
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
rpy2 could not be built reproducibly.
This is because the testsuite generates a Rplots.pdf file which
contains a build timestamp. This file is then installed directly into
/usr/lib/python3/dist-packages — hence the increased severity of this
bug.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index dee8be3..980d8a2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,6 +24,9 @@ tarball:
# Commented-out again 2023-05-24
# override_dh_auto_test:
+execute_after_dh_auto_test:
+ find -type f -name Rplots.pdf -delete
+
override_dh_installdocs:
dh_installdocs -a NEWS
More information about the Reproducible-bugs
mailing list