Package: snoopy
Version: 1.8.0-5
Severity: wishlist
Tags: patch

Please apply the attached patch to enable multiarch support for snoopy.so
The snoopy.so will be relocated into /lib/$(DEB_HOST_MULTIARCH) and the record
in the /etc/ld.so.preload will bee snoopy.so only, where the path will be
computed from /etc/ld.so.conf.d/$DEB_HOST_MULTIARCH.conf ...

-- System Information:
Debian Release: 7.8
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-0.bpo.4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@
 
 Package: snoopy
 Architecture: any
+Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: execve() wrapper and logger
  snoopy is merely a shared library that is used as a wrapper
--- a/debian/postinst
+++ b/debian/postinst
@@ -8,7 +8,7 @@
 set -e
 
 PRELOAD="/etc/ld.so.preload"
-LIBNAME="/lib/snoopy.so"
+LIBNAME="snoopy.so"
 
 if [ "$1" = "configure" ]; then
     # is snoopy already in $PRELOADFILE?
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,7 @@
 
 override_dh_auto_configure:
 	autoconf
-	dh_auto_configure -- --libdir=/lib
+	dh_auto_configure -s -- --libdir=/lib/$(DEB_HOST_MULTIARCH)
 
 override_dh_clean:
 	dh_clean

Reply via email to