🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Vagrant Cascadian Tue, 01 Dec 2026 19:20
Bug#1039865: valgrind: reproducible-builds: differing permissions on debian.supp
#7076
Author: Vagrant Cascadian
Date: Tue, 01 Dec 2026 19:20
122 lines
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-----
--==-=-=--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads