Package: debhelper
Version: 12.7.1
Severity: wishlist
I’ve recently gained a build reproducibility error in src:musescore where
cmake is used to first copy a few files around, generate some, and then
create a PKZIP archive from them using its built-in archiver. The files
in that archive were different in permissions.
I’ve tried setting the umask globally by doing this:
• add “SHELL:=$(abspath debian/rwrap)” to debian/rules
• create debian/rwrap (executable) with the following content:
tglase@tglase:~/Projekte/musescore $ cat debian/rwrap
#!/bin/lksh
# ${SHELL} wrapper to fix the umask
umask 022
eval "$2"
For some reason the desired effect is not observed, although
I had some debugging echos in debian/rwrap earlier whose output
was seen during a local build.
As there’s a general recommendation of using the dh wrapper
nowadays anyway, please (feature request, wishlist severity)
make it reset umask.
debian/rules has:
%:
dh $@ --buildsystem=cmake
I could probably change that to…
%:
umask 022 && exec dh $@ --buildsystem=cmake
… but everyone needs to do that then, and this is a good example
of harmonisation potential.
-- System Information:
Debian Release: bullseye/sid
APT prefers buildd-unstable
APT policy: (500, 'buildd-unstable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.3.0-1-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_CRAP
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)
Versions of packages debhelper depends on:
ii autotools-dev 20180224.1
ii dh-autoreconf 19
ii dh-strip-nondeterminism 1.6.2-1
ii dpkg 1.19.7
ii dpkg-dev 1.19.7
ii dwz 0.13-2
ii file 1:5.37-6
ii libdebhelper-perl 12.7.1
ii libdpkg-perl 1.19.7
ii man-db 2.9.0-1
ii perl 5.30.0-9
ii po-debconf 1.0.21
debhelper recommends no packages.
Versions of packages debhelper suggests:
pn dh-make <none>
-- no debconf information