debian/rules: Use find rather than shell glob for strip
authorIan Jackson <iwj@amdahl.debian.org>
Fri, 12 Oct 2018 18:26:16 +0000 (18:26 +0000)
committerHans van Kranenburg <hans@knorrie.org>
Wed, 2 Jan 2019 19:59:36 +0000 (20:59 +0100)
This stops this from falling over on arches without hvmloader.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/rules

index e0d8355c392a55d0214462b41809e8b4eda1d23d..45c665815720e70a18ed06d41c2a7c3481569be3 100755 (executable)
@@ -284,9 +284,9 @@ override_dh_installinit:
 # that again, then.  This all happens after dh_install so we operate
 # on the package-specific file.
 override_dh_strip:
-       chmod +x debian/xen-utils-*/usr/lib/xen-*/boot/hvmloader
+       find debian/xen-utils-* -name hvmloader | xargs -r chmod -v +x
        dh_strip
-       chmod -x debian/xen-utils-*/usr/lib/xen-*/boot/hvmloader
+       find debian/xen-utils-* -name hvmloader | xargs -r chmod -v -x
 
 # Hardlink the various xenstore-* programs together.  This is an
 # argv[0]-using binary of which we can have only one copy.  We need to