Source: cypari2
Version: 1.0.0-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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 <[email protected]>
+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
-- 
debian-science-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to