Bug#885873: cypari2: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Dec 30 18:12:53 UTC 2017


Source: cypari2
Version: 1.0.0-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 cypari2 could not be built reproducibly as it embeds the
absolute build path in the generated .pxd files.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/reproducible_build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.patch	2017-12-30 18:09:41.607997970 +0000
@@ -0,0 +1,24 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-12-30
+
+--- cypari2-1.0.0.orig/autogen/generator.py
++++ cypari2-1.0.0/autogen/generator.py
+@@ -34,7 +34,7 @@ cdef class Gen_auto:
+     This class is not meant to be used directly, use the derived class
+     :class:`Gen` instead.
+     """
+-'''.format(__file__)
++'''.format(os.path.relpath(__file__, os.getcwd()))
+ 
+ instance_banner = '''# This file is auto-generated by {}
+ 
+@@ -45,7 +45,7 @@ cdef class Pari_auto:
+     You must never use this class directly (in fact, Sage may crash if
+     you do), use the derived class :class:`Pari` instead.
+     """
+-'''.format(__file__)
++'''.format(os.path.relpath(__file__, os.getcwd()))
+ 
+ 
+ function_re = re.compile(r"^[A-Za-z][A-Za-z0-9_]*$")
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2017-12-30 18:06:02.966591684 +0000
@@ -0,0 +1 @@
+reproducible_build.patch


More information about the debian-science-maintainers mailing list