From 1950f28084bfc1e381f6383fc12052101e5fe738 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Fri, 29 Jun 2012 22:35:39 +0200 Subject: [PATCH] Convert to Multi-Arch: same where possible. Closes: #676615 --- debian/changelog | 1 + debian/control | 10 ++++++++++ debian/libpam-systemd.install | 2 +- debian/libsystemd-daemon-dev.install | 4 ++-- debian/libsystemd-daemon0.install | 2 +- debian/libsystemd-id128-0.install | 2 +- debian/libsystemd-id128-dev.install | 4 ++-- debian/libsystemd-journal-dev.install | 4 ++-- debian/libsystemd-journal0.install | 2 +- debian/libsystemd-login-dev.install | 4 ++-- debian/libsystemd-login0.install | 2 +- debian/rules | 7 ++++--- debian/systemd.install | 1 + 13 files changed, 29 insertions(+), 16 deletions(-) diff --git a/debian/changelog b/debian/changelog index 534d25a4..f2ab7b4d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ systemd (44-3) UNRELEASED; urgency=low [ Michael Biebl ] * Bump to debhelper 9. + * Convert to Multi-Arch: same where possible. Closes: #676615 -- Tollef Fog Heen Fri, 29 Jun 2012 22:34:16 +0200 diff --git a/debian/control b/debian/control index a1f3e58a..81c93991 100644 --- a/debian/control +++ b/debian/control @@ -74,8 +74,10 @@ Description: system and service manager - SysV links Package: libpam-systemd Architecture: linux-any +Multi-Arch: same Section: admin Priority: extra +Pre-Depends: ${misc:Pre-Depends} Depends: systemd (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: system and service manager - PAM module systemd is a replacement for sysvinit. It is dependency-based and @@ -107,7 +109,9 @@ Description: system and service manager - GUI Package: libsystemd-login0 Architecture: linux-any +Multi-Arch: same Section: libs +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: systemd login utility library The libsystemd-login library provides an interface for the @@ -125,7 +129,9 @@ Description: systemd login utility library - development files Package: libsystemd-daemon0 Architecture: linux-any +Multi-Arch: same Section: libs +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: systemd utility library The sd-daemon library provides a reference implementation of various @@ -143,7 +149,9 @@ Description: systemd utility library - development files Package: libsystemd-journal0 Architecture: linux-any +Multi-Arch: same Section: libs +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: systemd journal utility library The libsystemd-journal library provides an interface for the @@ -161,7 +169,9 @@ Description: systemd journal utility library - development files Package: libsystemd-id128-0 Architecture: linux-any +Multi-Arch: same Section: libs +Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: systemd 128 bit ID utility library The libsystemd-id128 library provides utility functions for generating diff --git a/debian/libpam-systemd.install b/debian/libpam-systemd.install index 18b8af92..0796a221 100644 --- a/debian/libpam-systemd.install +++ b/debian/libpam-systemd.install @@ -1,2 +1,2 @@ -lib/security/pam_systemd.so +lib/*/security/pam_systemd.so usr/share/man/man8/pam_systemd.8 diff --git a/debian/libsystemd-daemon-dev.install b/debian/libsystemd-daemon-dev.install index 3a20bfcc..b4b7f0db 100644 --- a/debian/libsystemd-daemon-dev.install +++ b/debian/libsystemd-daemon-dev.install @@ -1,3 +1,3 @@ -usr/lib/libsystemd-daemon.so -usr/lib/pkgconfig/libsystemd-daemon.pc +usr/lib/*/libsystemd-daemon.so +usr/lib/*/pkgconfig/libsystemd-daemon.pc usr/include/systemd/sd-daemon.h diff --git a/debian/libsystemd-daemon0.install b/debian/libsystemd-daemon0.install index 48d464a9..6f94e207 100644 --- a/debian/libsystemd-daemon0.install +++ b/debian/libsystemd-daemon0.install @@ -1 +1 @@ -lib/libsystemd-daemon.so.* +lib/*/libsystemd-daemon.so.* diff --git a/debian/libsystemd-id128-0.install b/debian/libsystemd-id128-0.install index 2bfcaf1a..8dd964ea 100644 --- a/debian/libsystemd-id128-0.install +++ b/debian/libsystemd-id128-0.install @@ -1 +1 @@ -lib/libsystemd-id128.so.* +lib/*/libsystemd-id128.so.* diff --git a/debian/libsystemd-id128-dev.install b/debian/libsystemd-id128-dev.install index a6f9ee35..68e08296 100644 --- a/debian/libsystemd-id128-dev.install +++ b/debian/libsystemd-id128-dev.install @@ -1,3 +1,3 @@ -usr/lib/libsystemd-id128.so -usr/lib/pkgconfig/libsystemd-id128.pc +usr/lib/*/libsystemd-id128.so +usr/lib/*/pkgconfig/libsystemd-id128.pc usr/include/systemd/sd-id128.h diff --git a/debian/libsystemd-journal-dev.install b/debian/libsystemd-journal-dev.install index c57f0549..e16e1878 100644 --- a/debian/libsystemd-journal-dev.install +++ b/debian/libsystemd-journal-dev.install @@ -1,4 +1,4 @@ -usr/lib/libsystemd-journal.so -usr/lib/pkgconfig/libsystemd-journal.pc +usr/lib/*/libsystemd-journal.so +usr/lib/*/pkgconfig/libsystemd-journal.pc usr/include/systemd/sd-journal.h usr/include/systemd/sd-messages.h diff --git a/debian/libsystemd-journal0.install b/debian/libsystemd-journal0.install index f72ef372..99c2c522 100644 --- a/debian/libsystemd-journal0.install +++ b/debian/libsystemd-journal0.install @@ -1 +1 @@ -lib/libsystemd-journal.so.* +lib/*/libsystemd-journal.so.* diff --git a/debian/libsystemd-login-dev.install b/debian/libsystemd-login-dev.install index d6a0367b..8090778d 100644 --- a/debian/libsystemd-login-dev.install +++ b/debian/libsystemd-login-dev.install @@ -1,3 +1,3 @@ -usr/lib/libsystemd-login.so -usr/lib/pkgconfig/libsystemd-login.pc +usr/lib/*/libsystemd-login.so +usr/lib/*/pkgconfig/libsystemd-login.pc usr/include/systemd/sd-login.h diff --git a/debian/libsystemd-login0.install b/debian/libsystemd-login0.install index 02ccaf8e..18c12286 100644 --- a/debian/libsystemd-login0.install +++ b/debian/libsystemd-login0.install @@ -1 +1 @@ -lib/libsystemd-login.so.* +lib/*/libsystemd-login.so.* diff --git a/debian/rules b/debian/rules index 9be2c364..3b00888f 100755 --- a/debian/rules +++ b/debian/rules @@ -3,10 +3,12 @@ #export DH_VERBOSE=1 #export DEB_BUILD_OPTIONS="nostrip" +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + override_dh_auto_configure: dh_auto_configure -- \ --with-rootprefix= \ - --with-rootlibdir=/lib \ + --with-rootlibdir=/lib/$(DEB_HOST_MULTIARCH) \ --with-udevrulesdir=/lib/udev/rules.d \ --enable-gtk \ --enable-libcryptsetup \ @@ -24,9 +26,8 @@ override_dh_auto_clean: override_dh_install: rm debian/tmp/usr/share/doc/systemd/LICENSE - rm debian/tmp/lib/security/pam_systemd.la - rm debian/tmp/usr/lib/*.la rm debian/tmp/lib/systemd/system/sysinit.target.wants/systemd-vconsole-setup.service + find debian/tmp/ -name '*.la' -delete chmod +x debian/debian-fixup dh_install -O--parallel --fail-missing dh_install -plibpam-systemd debian/pam-configs /usr/share diff --git a/debian/systemd.install b/debian/systemd.install index 8003e351..f4916ba0 100644 --- a/debian/systemd.install +++ b/debian/systemd.install @@ -39,6 +39,7 @@ usr/lib/binfmt.d usr/lib/modules-load.d usr/lib/sysctl.d usr/lib/systemd +usr/lib/*/systemd usr/lib/tmpfiles.d debian/init-functions lib/lsb debian/debian-fixup lib/systemd/ -- 2.39.5