From 2b065a0428747bab2f5cb477a01a89ec03dcf695 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 27 Jul 2012 15:02:59 +0200 Subject: [PATCH] Adjust file permissions also of files that are added during dh_quilt_patch stage For example debian/patches/15_networking_grml.patch generates a new file scripts/live-bottom/23networking_grml which doesn't have the according permissions set. As a result the script won't be executed during initramfs bootup, so make sure we don't run into this again. --- debian/rules | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 910523b..e84a4b9 100755 --- a/debian/rules +++ b/debian/rules @@ -1,9 +1,6 @@ #!/usr/bin/make -f build: - # this is needed because dpatch doesn't do file modes on diffs. - chmod a+rx scripts/live-bottom/* - chmod a+rx hooks/* # regular build. dh build @@ -25,6 +22,12 @@ override_dh_auto_install: mkdir -p debian/live-boot-grml-initramfs-tools/usr/share mv debian/tmp/usr/share/initramfs-tools debian/live-boot-grml-initramfs-tools/usr/share + # this is needed because dpatch doesn't do file modes on diffs + # and we can't execute this fix during build stage as new files + # might be installed during dh_quilt_patch + chmod a+rx debian/live-boot-grml-initramfs-tools/usr/share/initramfs-tools/scripts/live-bottom/* + chmod a+rx debian/live-boot-grml-initramfs-tools/usr/share/initramfs-tools/hooks/* + override_dh_builddeb: dh_builddeb -- -Zgzip -z9 -- 2.1.4