Your message dated Sat, 19 Feb 2022 15:15:29 +0100
with message-id <[email protected]>
and subject line Re: python-pybedtools: please make the build reproducible
has caused the Debian Bug report #995259,
regarding python-pybedtools: please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
995259: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=995259
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-pybedtools
Version: 0.8.0-5
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: filesystem
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
python-pybedtools could not be built reproducibly.

This is because it includes output inherited from non-deterministic
filesystem ordering:

/usr/lib/python3/dist-packages/pybedtools/cbedtools.cpp:

│ │ │ │ @@ -16,17 +16,17 @@
│ │ │ │              "z"
│ │ │ │          ],
│ │ │ │          "name": "pybedtools.cbedtools",
│ │ │ │          "sources": [
│ │ │ │              "pybedtools/cbedtools.pyx",
│ │ │ │ -            "pybedtools/include/fileType.cpp",
│ │ │ │              "pybedtools/include/bedFile.cpp",
│ │ │ │ -            "pybedtools/include/gzstream.cpp"
│ │ │ │ +            "pybedtools/include/gzstream.cpp",
│ │ │ │ +            "pybedtools/include/fileType.cpp"
│ │ │ │          ]
│ │ │ │      },
│ │ │ │      "module_name": "pybedtools.cbedtools"
│ │ │ │  }

Patch attached that sorts these entries in setup.py.

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


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/patches/reproducible-builds.patch  1970-01-01 01:00:00.000000000 
+0100
--- b/debian/patches/reproducible-builds.patch  2021-09-28 16:37:45.666272543 
+0100
@@ -0,0 +1,24 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2021-09-28
+
+--- python-pybedtools-0.8.0.orig/setup.py
++++ python-pybedtools-0.8.0/setup.py
+@@ -199,7 +199,7 @@ extensions = [
+         depends=glob.glob('pybedtools/include/*h'),
+         libraries=['stdc++', 'z'],
+         include_dirs=['pybedtools/include/'],
+-        sources=['pybedtools/cbedtools' + EXT] + 
glob.glob('pybedtools/include/*.cpp'),
++        sources=['pybedtools/cbedtools' + EXT] + 
sorted(glob.glob('pybedtools/include/*.cpp')),
+         language='c++'),
+ 
+     Extension(
+@@ -207,7 +207,7 @@ extensions = [
+         depends=glob.glob('pybedtools/include/*h'),
+         libraries=['stdc++', 'z'],
+         include_dirs=['pybedtools/include/'],
+-        sources=['pybedtools/featurefuncs' + EXT] + 
glob.glob('pybedtools/include/*.cpp'),
++        sources=['pybedtools/featurefuncs' + EXT] + 
sorted(glob.glob('pybedtools/include/*.cpp')),
+         language='c++'),
+ ]
+ 
--- a/debian/patches/series     2021-09-28 16:33:12.425681025 +0100
--- b/debian/patches/series     2021-09-28 16:37:44.886270948 +0100
@@ -8,3 +8,4 @@
 remove_badges_from_documentation.patch
 parseDebianVersions.patch
 add_missing_shebang.patch
+reproducible-builds.patch

--- End Message ---
--- Begin Message ---
AFAICS this is done by updating the package to the latest version 0.9.0
which contains the fixes upstreamed by Chris. This version seems to
build reproducibly now everywhere.

Cheers
Sascha

--- End Message ---

Reply via email to