Source: gap-polymaking
Version: 0.8.7-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: umask
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because the .tst files *AND* its surrounding directory will
retain its group-writeable bit due to the use of dh_fixperms -Xtst,
and will thus vary when the package is built with a different umask.

A patch is attached that limits the "-Xtst" → "-X.tst" (to prevent the
surrounding "/tst/" directory being matched), and then normalises the
group-writable bits of the .tst files themselves.

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


Regards,

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


--- a/debian/rules      2024-04-17 11:00:54.347285261 +0100
--- b/debian/rules      2024-04-17 11:10:56.519616668 +0100
@@ -25,7 +25,8 @@
        make -C doc install DESTDIR=../debian/gap-polymaking
 
 override_dh_fixperms:
-       dh_fixperms -Xtst
+       dh_fixperms -X.tst
+       chmod g-w debian/gap-polymaking/usr/share/gap/pkg/polymaking/tst/*.tst
 
 override_dh_installdocs:
        dh_installdocs README.md

Reply via email to