set the umask consistently, for each shell invocation
authormirabilos <tg@debian.org>
Sun, 29 Sep 2019 17:33:40 +0000 (19:33 +0200)
committermirabilos <mirabilos@evolvis.org>
Sun, 29 Sep 2019 17:33:40 +0000 (19:33 +0200)
(using an inline SHELL:=/bin/lksh -c '…' doesn’t work,
most likely due to a bug in GNU make, since that’s the
way found out in the wild)

debian/changelog
debian/rules
debian/rwrap [new file with mode: 0755]

index 8e0a5be..44f32f0 100644 (file)
@@ -2,9 +2,9 @@ musescore2 (2.3.2+dfsg3-6) UNRELEASED; urgency=medium
 
   * d/copyright: Update MuseJazz information from historic records
   * d/copyright: Write year numbers consistently (four digits, comma)
-  * Set umask 022 around dh_auto_build (might fix reproducibility)
+  * Set umask 022 for reproducibility
 
- -- Thorsten Glaser <tg@mirbsd.de>  Tue, 06 Aug 2019 20:25:45 +0200
+ -- Thorsten Glaser <tg@mirbsd.de>  Sun, 29 Sep 2019 19:32:57 +0200
 
 musescore2 (2.3.2+dfsg3-5) wtf; urgency=low
 
index d3bbf6b..548d620 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+SHELL:=$(abspath debian/rwrap)
+
 ifeq (,$(findstring terse,${DEB_BUILD_OPTIONS}))
 export DH_VERBOSE=1
 export V=1
@@ -70,7 +72,7 @@ override_dh_auto_configure:
        exec dh_auto_configure -- ${CMAKE_DEFS}
 
 override_dh_auto_build:
-       umask 022; env GNUMAKEFLAGS="$$GNUMAKEFLAGS --output-sync" \
+       env GNUMAKEFLAGS="$$GNUMAKEFLAGS --output-sync" \
            dh_auto_build -- lrelease all
 
 override_dh_auto_test:
diff --git a/debian/rwrap b/debian/rwrap
new file mode 100755 (executable)
index 0000000..88411a3
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/lksh
+# ${SHELL} wrapper to fix the umask
+
+umask 022
+eval "$2"