]> git.proxmox.com Git - mirror_zfs-debian.git/commitdiff
Fix build breakage caused by nonstandard umask
authorLukas Wunner <lukas@wunner.de>
Sat, 28 Jan 2017 20:37:06 +0000 (21:37 +0100)
committerAron Xu <aron@debian.org>
Tue, 31 Jan 2017 12:51:53 +0000 (20:51 +0800)
If the user has set umask 077 instead of the standard 022,
dpkg-buildpackage fails with:

chmod -x debian/tmp/etc/zfs/zfs-functions
chmod: debian/tmp/etc/zfs/zfs-functions: new permissions are rw-r-xr-x, not rw-r--r--
debian/rules:64: recipe for target 'override_dh_auto_install' failed

Signed-off-by: Lukas Wunner <lukas@wunner.de>
debian/rules

index 6dfb8c12efc67948f34f507cb18cbb5a8ee9a0b3..3b9015f7cb7eb04679a3315261a0d6fa3c0eb808 100755 (executable)
@@ -111,8 +111,8 @@ override_dh_auto_install:
                rm $${i}; \
        done
 
-       chmod -x $(CURDIR)/debian/tmp/etc/zfs/zfs-functions
-       chmod -x $(CURDIR)/debian/tmp/etc/default/zfs
+       chmod a-x $(CURDIR)/debian/tmp/etc/zfs/zfs-functions
+       chmod a-x $(CURDIR)/debian/tmp/etc/default/zfs
 
 override_dh_dkms:
        dh_dkms -V $(VERSION)