Source: git-pw
Version: 2.7.1-0.1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

Hi,

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

This is because if you run the tests, the .egg-info file is copied into
place via PYBUILD_BEFORE_TEST and is not removed afterwards — this
results in the binary file containing this directory. However, this
means that if the tests are skipped (ie. via nocheck), then the .deb
will not include this directory and will have different contents.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-05-13 08:59:42.622981739 -0700
--- b/debian/rules      2026-05-13 09:20:47.311670829 -0700
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 export PYBUILD_NAME=git-pw
 export PYBUILD_BEFORE_TEST=cp -r {dir}/*.egg-info {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*.egg-info
 
 %:
        dh $@ --buildsystem=pybuild

Reply via email to