Source: ncurses Version: 6.3-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 ncurses could not be built reproducibly. This is because the README.gz file will retain its group-writeable bit due to the use of dh_fixperms -Xfoo, and will thus vary when the package is built with a different umask: --rw-r--r-- 0 root (0) root (0) 7937 2021-03-07 00:08:58.000000 ./usr/libexec/ncurses-examples/README.gz +-rw-rw-r-- 0 root (0) root (0) 7937 2021-03-07 00:08:58.000000 ./usr/libexec/ncurses-examples/README.gz Patch attached that removes this bit manually, but feel free to go with a different solution, of course. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/rules 2022-01-18 08:47:42.277389249 +0000 --- b/debian/rules 2022-01-18 09:03:30.547729907 +0000 @@ -508,6 +508,7 @@ dh_compress -p$(package-examples) usr/libexec/ncurses-examples/README dh_compress -a -N$(package-examples) dh_fixperms -a -Xusr/libexec/ncurses-examples/README + chmod g-w debian/ncurses-examples/usr/libexec/ncurses-examples/README.gz dh_missing -a --fail-missing dh_makeshlibs -p$(package-ti) -V "$(package-ti) $(sodepver)" --add-udeb=$(package-ti)-udeb -- -c4 dh_makeshlibs -p$(package-lib) -V "$(package-lib) $(sodepver)" -- -c4