]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
xenstore-utils: Hardlink the various xenstore-* programs together
authorIan Jackson <ian.jackson@citrix.com>
Thu, 4 Oct 2018 14:44:32 +0000 (15:44 +0100)
committerIan Jackson <ian.jackson@citrix.com>
Fri, 5 Oct 2018 16:37:53 +0000 (17:37 +0100)
This is an argv[0]-using binary of which we could have only one copy.

Signed-off-by: Ian Jackson <ian.jackson@citrix.com>
debian/control
debian/rules

index b8922b8a08715d4cdbbd66b593570e7a3790d23f..62d8d72058267db70c978ba3dabbaa65d700f2ee 100644 (file)
@@ -7,6 +7,7 @@ Build-Depends:
    debhelper (>> 9),
    autotools-dev,
    dpkg-dev (>= 1.16.0~),
+   rdfind,
    lsb-release,
    python-dev,
    bcc [i386 amd64],
index 7672889bdd40aee1efc08f4cbc532a4c8e432419..d3f67b0463f5768083e4eb1405e9b3c7f52c98c8 100755 (executable)
@@ -255,9 +255,16 @@ override_dh_strip:
        dh_strip
        chmod -x debian/xen-utils-*/usr/lib/xen-*/boot/hvmloader
 
+# Hardlink the various xenstore-* programs together.  This is an
+# argv[0]-using binary of which we can have only one copy.  We need to
+# do this late, because dh_strip breaks hardlinks.
+#
 # The debug files are fairly large, fairly rarely used,
 # and not compressed by the upstream build system.
 override_dh_compress:
+       rdfind -makehardlinks true -makeresultsfile false \
+               debian/xenstore-utils/usr/bin
+       :
        dh_compress
        find debian/xen-hypervisor-*/usr/lib/debug -type f -print0 \
                | xargs -0r gzip -9v