Package: libpciaccess0
Version: 0.12.1-1.1
Severity: wishlist
Tags: patch
--- Please enter the report below this line. ---
Dears Maintainers,
Could you support multiarch same for libpciaccess0? Multiarch
information can be found on this wiki
http://wiki.debian.org/Multiarch/Implementation
A small patch is attached.
Short description of the patch:
* build lib in usr/lib/$DEB_HOST_MULTIARCH
* bump debhelper to support ${misc:Pre-Depends}
* move file to /usr/lib/$DEB_HOST_MULTIARCH except for udeb package
(which stay in /usr/lib).
Best regards,
Gregory
diff -u libpciaccess-0.12.1/debian/rules libpciaccess-0.12.1/debian/rules
--- libpciaccess-0.12.1/debian/rules
+++ libpciaccess-0.12.1/debian/rules
@@ -13,6 +13,7 @@
MAKEFLAGS += -j$(NUMJOBS)
endif
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
@@ -33,6 +34,7 @@
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--with-pciids-path=\$${prefix}/share/misc \
+ --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
--with-zlib \
$(confflags) \
CFLAGS="$(CFLAGS)"
diff -u libpciaccess-0.12.1/debian/control libpciaccess-0.12.1/debian/control
--- libpciaccess-0.12.1/debian/control
+++ libpciaccess-0.12.1/debian/control
@@ -4,7 +4,7 @@
Maintainer: Debian X Strike Force <debia...@lists.debian.org>
Uploaders: David Nusinow <dnusi...@debian.org>, Cyril Brulebois <k...@debian.org>
Build-Depends:
- debhelper (>= 5),
+ debhelper (>= 8.0.3),
libtool,
automake,
zlib1g-dev,
@@ -17,7 +17,9 @@
Package: libpciaccess0
Section: libs
Architecture: any
+Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
Suggests: pciutils
Description: Generic PCI access library for X
Provides functionality for X to access the PCI bus and devices
diff -u libpciaccess-0.12.1/debian/libpciaccess-dev.install libpciaccess-0.12.1/debian/libpciaccess-dev.install
--- libpciaccess-0.12.1/debian/libpciaccess-dev.install
+++ libpciaccess-0.12.1/debian/libpciaccess-dev.install
@@ -1,4 +1,4 @@
-usr/lib/pkgconfig
-usr/lib/lib*.a
-usr/lib/lib*.so
+usr/lib/*/pkgconfig
+usr/lib/*/lib*.a
+usr/lib/*/lib*.so
usr/include
diff -u libpciaccess-0.12.1/debian/libpciaccess0-udeb.install libpciaccess-0.12.1/debian/libpciaccess0-udeb.install
--- libpciaccess-0.12.1/debian/libpciaccess0-udeb.install
+++ libpciaccess-0.12.1/debian/libpciaccess0-udeb.install
@@ -1 +1 @@
-usr/lib/libpciaccess.so.0*
+usr/lib/*/libpciaccess.so.0* /usr/lib
diff -u libpciaccess-0.12.1/debian/libpciaccess0.install libpciaccess-0.12.1/debian/libpciaccess0.install
--- libpciaccess-0.12.1/debian/libpciaccess0.install
+++ libpciaccess-0.12.1/debian/libpciaccess0.install
@@ -1 +1 @@
-usr/lib/libpciaccess.so.0*
+usr/lib/*/libpciaccess.so.0*