On 2026-03-30, Vagrant Cascadian wrote: > On 2023-06-28, Vagrant Cascadian wrote: >> The permissions debian.supp differs depending on the umask of the build >> environment: >> >> >> https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/diffoscope-results/valgrind.html >> >> >> -rw-r--r--···0·root·········(0)·root·········(0)·····1136·2022-08-28·10:40:16.000000·./usr/lib/valgrind/debian.supp >> vs. >> >> -rw-rw-r--···0·root·········(0)·root·········(0)·····1136·2022-08-28·10:40:16.000000·./usr/lib/valgrind/debian.supp >> >> >> The attached patch to debian/rules explicitly sets the permissions on >> debian.supp after dh_fixperms is run. >> >> Another approach is to remove the exclusion on .supp files from the >> dh_fixperms call, though presumeably this was added for a reason and >> that might need to be fixed some other way. > > This still seems to be an issue, with no comments ... I would like to > perform an NMU to fix this unless the maintainers have significant > concerns.
The plot thickens... .supp and numerous other files extensions were excluded from dh_fixperms call in commit: commit 0c7b41fdf1b91a2fa20ec13862166bac33a2fc9f Author: Alessandro Ghedini <[email protected]> Date: Sat Sep 4 10:43:02 2021 +0100 Avoid marking files executable unnecessarily Which is presumably to work around the issue in dh_fixperms: dh_fixperms: please don't make all files executable in subdirectories of /usr/libexec https://bugs.debian.org/ Which resulted in filing a bug in valgrind: valgrind: a lot of files in /usr/libexec/ are .xml files that don't belong there https://bugs.debian.org/1043527 ... So the workaround to dh_fixperms marking libexec files executable triggers minor reproducibility issues... I have attached an updated patch, which I think might at least address the reproducibility issue, by removing .supp files from the dh_fixperms excludes, and manually removing the execute bit in the dh_fixperms override. Arguably, the dh_fixperms override should do the same with all the other file types as well, as the (intended?) purpose of the override was to remove the execute bit, as opposeed to all the other changes. live well, vagrant
From 81fd152663c3f8052c5286a19d4c8a8babf74224 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Tue, 1 Dec 2026 11:08:18 -0800 Subject: [PATCH] debian/rules: Update dh_fixperms override to not exclude .supp files. (Closes: #1039865) --- debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 6582a9dd..afc491f9 100755 --- a/debian/rules +++ b/debian/rules @@ -49,7 +49,8 @@ ifeq ($(DEB_HOST_ARCH),armhf) endif override_dh_fixperms: - dh_fixperms -X.css -X.html -X.js -X.so -X.supp -X.xml + dh_fixperms -X.css -X.html -X.js -X.so -X.xml + chmod -x debian/valgrind/usr/libexec/valgrind/default.supp override_dh_installchangelogs: dh_installchangelogs NEWS -- 2.47.3
signature.asc
Description: PGP signature

