Am 16.06.2015 um 19:35 schrieb Kees Cook:
On Tue, Jun 16, 2015 at 11:55:30AM +0200, Martin Pitt wrote:
Would you mind moving this into /lib?
Sure, that would be fine by me. I don't see a common way to handle this,
though. Each package I've looked at does it differently. Can you send a
patch that implements this (yet leaves libseccomp-dev files in /usr/lib)?
The attached patch is not particularly pretty, but it should do the
trick. It's based on what is done in dbus.
Cheers,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
diff --git a/debian/libseccomp2.install b/debian/libseccomp2.install
deleted file mode 100644
index 3ddde58..000
--- a/debian/libseccomp2.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*/lib*.so.*
diff --git a/debian/rules b/debian/rules
index c6445e8..7b3b32a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,9 @@
#export DH_VERBOSE=1
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+LIBPKG := libseccomp2
+DEVPKG := libseccomp-dev
+
# Enable verbose build details.
export V=1
@@ -15,6 +18,18 @@ override_dh_auto_clean:
dh_auto_clean
rm -f regression.out
+override_dh_link:
+ dh_link -p$(DEVPKG) \
+ lib/$(DEB_HOST_MULTIARCH)/$$(basename $$(readlink debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libseccomp.so)) \
+ usr/lib/$(DEB_HOST_MULTIARCH)/libseccomp.so
+ dh_link --remaining-packages
+
+override_dh_install:
+ dh_install -p$(LIBPKG) \
+ usr/lib/$(DEB_HOST_MULTIARCH)/libseccomp.so.* \
+ lib/$(DEB_HOST_MULTIARCH)
+ dh_install --remaining-packages --list-missing
+
#override_dh_auto_configure:
# ./configure --prefix=/usr \
# --libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
signature.asc
Description: OpenPGP digital signature