Article View: linux.debian.bugs.dist
Article #7076Bug#1039865: valgrind: reproducible-builds: differing permissions on debian.supp
From: Vagrant Cascadian
Date: Tue, 01 Dec 2026 19:20
Date: Tue, 01 Dec 2026 19:20
122 lines
5906 bytes
5906 bytes
--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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/dif=
foscope-results/valgrind.html
>>
>> -rw-r--r--=C2=B7=C2=B7=C2=B70=C2=B7root=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=
=C2=B7=C2=B7=C2=B7=C2=B7(0)=C2=B7root=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=
=C2=B7=C2=B7=C2=B7(0)=C2=B7=C2=B7=C2=B7=C2=B7=C2=B71136=C2=B72022-08-28=C2=
=B710:40:16.000000=C2=B7./usr/lib/valgrind/debian.supp
>> vs.
>> -rw-rw-r--=C2=B7=C2=B7=C2=B70=C2=B7root=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=
=C2=B7=C2=B7=C2=B7=C2=B7(0)=C2=B7root=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=C2=B7=
=C2=B7=C2=B7=C2=B7(0)=C2=B7=C2=B7=C2=B7=C2=B7=C2=B71136=C2=B72022-08-28=C2=
=B710:40:16.000000=C2=B7./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 <ghedo@debian.org>
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 belon=
g 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
=20
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
filename=0001-debian-rules-Update-dh_fixperms-override-to-not-excl.patch
Content-Transfer-Encoding: quoted-printable
From=2081fd152663c3f8052c5286a19d4c8a8babf74224 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Tue, 1 Dec 2026 11:08:18 -0800
Subject: [PATCH] debian/rules: Update dh_fixperms override to not exclude
.supp files. (Closes: #1039865)
=2D--
debian/rules | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/debian/rules b/debian/rules
index 6582a9dd..afc491f9 100755
=2D-- a/debian/rules
+++ b/debian/rules
@@ -49,7 +49,8 @@ ifeq ($(DEB_HOST_ARCH),armhf)
endif
=20
override_dh_fixperms:
=2D 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
=20
override_dh_installchangelogs:
dh_installchangelogs NEWS
=2D-=20
2.47.3
--=-=-=--
--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCaw8c0AAKCRDcUY/If5cW
qukeAP0Wkk25K8keli7ZrwIIMoh53oz8a4xcEVSLsgEguN9vMQEAlwch9joxhkJa
q2Xb7oBmepn8Vu5mubEjOIELQ8BWywI=
=3mAy
-----END PGP SIGNATURE-----
--==-=-=--
Technical Details
Message-ID:
<O5Byp-fotD-23@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomodReferences:
<GLM93-1BTy-1@gated-at.bofh.it> <MEtAJ-bvLY-15@gated-at.bofh.it> <GLM93-1BTy-1@gated-at.bofh.it> <MEtAJ-bvLY-15@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Vagrant Cascadian <vagrant@reproducible-builds.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1039865: valgrind: reproducible-builds: differing permissions on debian.supp Date: Tue, 01 Dec 2026 20:20:01 +0100 Message-ID: <O5Byp-fotD-23@gated-at.bofh.it> References: <GLM93-1BTy-1@gated-at.bofh.it> <MEtAJ-bvLY-15@gated-at.bofh.it> <GLM93-1BTy-1@gated-at.bofh.it> <MEtAJ-bvLY-15@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Dec 1 19:17:21 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.451 Reply-To: Vagrant Cascadian <vagrant@reproducible-builds.org>, 1039865@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: ghedo@debian.org X-Debian-Pr-Message: followup 1039865 X-Debian-Pr-Package: src:valgrind X-Debian-Pr-Keywords: patch X-Debian-Pr-Source: valgrind MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006391 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 122 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 01 Dec 2026 11:15:27 -0800 X-Original-Message-ID: <87y0a8ke28.fsf@wireframe> X-Original-References: <877crnyzvc.fsf@wireframe> <87ldf9c5ix.fsf@wireframe> <877crnyzvc.fsf@wireframe> <87ldf9c5ix.fsf@wireframe>