Bug#788923: libseccomp2: please move to /lib, so that systemd can use it

2015-06-16 Thread 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)?

Thanks!

-Kees

-- 
Kees Cook@debian.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#788923: libseccomp2: please move to /lib, so that systemd can use it

2015-06-16 Thread Michael Biebl
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


Bug#788923: libseccomp2: please move to /lib, so that systemd can use it

2015-06-16 Thread Martin Pitt
Package: libseccomp2
Version: 2.2.1-1

Hello,

We would like to use systemd's seccomp support. In fact we recently
enabled it already in 220-6 (https://tracker.debian.org/news/689328),
but this caused boot failure with separate /usr and no initramfs
(https://bugs.debian.org/788913_ as libseccomp2 is in /usr/lib.

Would you mind moving this into /lib?

Thanks!

Martin

-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


signature.asc
Description: Digital signature