Source: rpy2
Version: 3.5.13-5
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@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
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
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
 

Reply via email to