Source: python-pairix
Version: 0.3.7-3
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: filesystem
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because whilst the generation of samples.tar.xz correctly uses
--mode, --owner, --group as well as --numeric-owner, it misses
--sort=name. It, therefore, inherits the underlying and
nondeterministic filesystem ordering.

A patch is attached that adds precisely this.

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


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-


--- a/debian/rules      2021-09-28 16:31:43.781471389 +0100
--- b/debian/rules      2021-09-28 16:38:20.346343067 +0100
@@ -10,7 +10,7 @@
        dh $@ --with python3 --buildsystem=pybuild
 
 override_dh_install:
-       tar caf samples.tar.xz samples --mode=go=rX,u+rw,a-s --owner=0 
--group=0 --numeric-owner
+       tar caf samples.tar.xz samples --mode=go=rX,u+rw,a-s --owner=0 
--group=0 --numeric-owner --sort=name
        dh_install
        find debian/python3-$(PYBUILD_NAME)/usr/lib -name samples -type d | 
xargs rm -rf
        find debian/*/usr/lib -name VERSION.txt -delete

Reply via email to