[SCM] guitarix/master: Add Multi-Arch support

viccuad-guest at users.alioth.debian.org viccuad-guest at users.alioth.debian.org
Fri Mar 25 23:33:55 UTC 2016


The following commit has been merged in the master branch:
commit 31721939caa6f46e75707f87edd588706d7ee391
Author: Víctor Cuadrado Juan <me at viccuad.me>
Date:   Sat Mar 26 00:05:16 2016 +0100

    Add Multi-Arch support

diff --git a/debian/control b/debian/control
index d88e037..80c21b6 100644
--- a/debian/control
+++ b/debian/control
@@ -34,6 +34,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/pkg-multimedia/guitarix.git
 
 Package: guitarix
 Architecture: any
+Multi-Arch: foreign
 Depends:
  guitarix-common (= ${source:Version}),
  guitarix-ladspa (>= ${source:Version}),
@@ -53,6 +54,7 @@ Description: Rock guitar amplifier for Jack
 
 Package: guitarix-common
 Architecture: all
+Multi-Arch: foreign
 Depends:
  ${shlibs:Depends}, ${misc:Depends}
 Description: Guitarix - Common files
@@ -66,6 +68,7 @@ Description: Guitarix - Common files
 
 Package: guitarix-ladspa
 Architecture: any
+Multi-Arch: same
 Provides: ladspa-plugin
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Guitarix - ladspa plugins
@@ -79,6 +82,7 @@ Description: Guitarix - ladspa plugins
 
 Package: guitarix-lv2
 Architecture: any
+Multi-Arch: same
 Provides: lv2-plugin
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Guitarix - LV2 plugins
@@ -93,6 +97,7 @@ Description: Guitarix - LV2 plugins
 Package: guitarix-doc
 Section: doc
 Architecture: all
+Multi-Arch: foreign
 Priority: optional
 Depends: ${misc:Depends},
  libjs-jquery
@@ -109,6 +114,8 @@ Description: Guitarix - Development documentation
 Package: libgxw0
 Section: libs
 Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Guitarix - GTK+ library
  Guitarix is a rock guitar amplifier for Jack (Jack Audio Connection Kit) with
@@ -121,6 +128,7 @@ Description: Guitarix - GTK+ library
 Package: libgxw-dev
 Section: libdevel
 Architecture: any
+Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}, libgxw0 (= ${binary:Version})
 Recommends: guitarix-doc
 Description: Guitarix - GTK+ library (development files)
@@ -134,6 +142,8 @@ Description: Guitarix - GTK+ library (development files)
 Package: libgxwmm0
 Section: libs
 Architecture: any
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Guitarix - GTK+ C++ widget library
  Guitarix is a rock guitar amplifier for Jack (Jack Audio Connection Kit) with
@@ -146,6 +156,7 @@ Description: Guitarix - GTK+ C++ widget library
 Package: libgxwmm-dev
 Section: libdevel
 Architecture: any
+Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}, libgxwmm0 (= ${binary:Version})
 Recommends: guitarix-doc
 Description: Guitarix - GTK+ C++ widget library (development files)
@@ -159,6 +170,8 @@ Description: Guitarix - GTK+ C++ widget library (development files)
 Package: gxw-glade
 Section: libs
 Architecture: any
+Multi-Arch: foreign
+# Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: Guitarix - GTK+ library Glade support
  Guitarix is a rock guitar amplifier for Jack (Jack Audio Connection Kit) with
diff --git a/debian/guitarix-ladspa.install b/debian/guitarix-ladspa.install
index e400d18..6008fb1 100644
--- a/debian/guitarix-ladspa.install
+++ b/debian/guitarix-ladspa.install
@@ -1,2 +1,2 @@
-debian/tmp/usr/lib/ladspa/*
-debian/tmp/usr/share/ladspa/*
\ No newline at end of file
+debian/tmp/usr/lib/*/ladspa/*
+debian/tmp/usr/share/ladspa/*
diff --git a/debian/guitarix-lv2.install b/debian/guitarix-lv2.install
index c4a3c9f..7bfce42 100644
--- a/debian/guitarix-lv2.install
+++ b/debian/guitarix-lv2.install
@@ -1 +1 @@
-debian/tmp/usr/lib/lv2/*
\ No newline at end of file
+debian/tmp/usr/lib/*/lv2/*
diff --git a/debian/libgxw-dev.install b/debian/libgxw-dev.install
index 5a37201..4d0300e 100644
--- a/debian/libgxw-dev.install
+++ b/debian/libgxw-dev.install
@@ -1,4 +1,4 @@
 debian/tmp/usr/include/gxw/*
 debian/tmp/usr/include/gxw.h
-debian/tmp/usr/lib/pkgconfig/gxw.pc
-debian/tmp/usr/lib/libgxw.so
+debian/tmp/usr/lib/*/pkgconfig/gxw.pc
+debian/tmp/usr/lib/*/libgxw.so
diff --git a/debian/libgxw-dev.lintian-overrides b/debian/libgxw-dev.lintian-overrides
deleted file mode 100644
index 2495bdd..0000000
--- a/debian/libgxw-dev.lintian-overrides
+++ /dev/null
@@ -1,2 +0,0 @@
-# Allowed by Policy, I intend to support only one -dev per library:
-libgxw-dev binary: package-name-doesnt-match-sonames libgxw0
\ No newline at end of file
diff --git a/debian/libgxw0.install b/debian/libgxw0.install
index 0862018..f71d983 100644
--- a/debian/libgxw0.install
+++ b/debian/libgxw0.install
@@ -1,2 +1,2 @@
-debian/tmp/usr/lib/libgxw.so.*
+debian/tmp/usr/lib/*/libgxw.so.*
 
diff --git a/debian/libgxw0.lintian-overrides b/debian/libgxw0.lintian-overrides
index b46d79e..44830f5 100644
--- a/debian/libgxw0.lintian-overrides
+++ b/debian/libgxw0.lintian-overrides
@@ -1,2 +1,2 @@
 # Using only shlibs, because it is a minor lib and maintaining C++ symbols files is a bit onerous:
-libgxw0 binary: no-symbols-control-file usr/lib/libgxw.so.0.1
+libgxw0 binary: no-symbols-control-file usr/lib/*/libgxw.so.0.1
diff --git a/debian/libgxwmm-dev.install b/debian/libgxwmm-dev.install
index a311a03..bf17e83 100644
--- a/debian/libgxwmm-dev.install
+++ b/debian/libgxwmm-dev.install
@@ -1,4 +1,4 @@
 debian/tmp/usr/include/gxwmm/*
 debian/tmp/usr/include/gxwmm.h
-debian/tmp/usr/lib/pkgconfig/gxwmm.pc
-debian/tmp/usr/lib/libgxwmm.so
+debian/tmp/usr/lib/*/pkgconfig/gxwmm.pc
+debian/tmp/usr/lib/*/libgxwmm.so
diff --git a/debian/libgxwmm-dev.lintian-overrides b/debian/libgxwmm-dev.lintian-overrides
deleted file mode 100644
index f30d6a7..0000000
--- a/debian/libgxwmm-dev.lintian-overrides
+++ /dev/null
@@ -1,2 +0,0 @@
-# Allowed by Policy, I intend to support only one -dev per library:
-libgxwmm-dev binary: package-name-doesnt-match-sonames libgxwmm0
\ No newline at end of file
diff --git a/debian/libgxwmm0.install b/debian/libgxwmm0.install
index 3622007..7849675 100644
--- a/debian/libgxwmm0.install
+++ b/debian/libgxwmm0.install
@@ -1,2 +1,2 @@
-debian/tmp/usr/lib/libgxwmm.so.*
+debian/tmp/usr/lib/*/libgxwmm.so.*
 
diff --git a/debian/libgxwmm0.lintian-overrides b/debian/libgxwmm0.lintian-overrides
index e5c07af..5699285 100644
--- a/debian/libgxwmm0.lintian-overrides
+++ b/debian/libgxwmm0.lintian-overrides
@@ -1,2 +1,2 @@
 # Using only shlibs, because it is a minor lib and maintaining C++ symbols files is a bit onerous:
-libgxwmm0 binary: no-symbols-control-file usr/lib/libgxwmm.so.0.1
+libgxwmm0 binary: no-symbols-control-file usr/lib/*/libgxwmm.so.0.1
diff --git a/debian/rules b/debian/rules
index fb3c12d..4e44fa4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 %:
 	dh $@
@@ -10,7 +11,8 @@ override_dh_auto_configure:
 		--cxxflags="$(shell dpkg-buildflags --get CXXFLAGS) \
 			$(shell dpkg-buildflags --get CPPFLAGS)" \
 		--ldflags="$(shell dpkg-buildflags --get LDFLAGS)" -v \
-		--shared-lib --lib-dev --glade-support
+		--shared-lib --lib-dev --glade-support \
+		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH)
 
 override_dh_auto_build-arch:
 	./waf build -v
@@ -33,11 +35,12 @@ override_dh_auto_install:
 	./waf install --destdir=$(CURDIR)/debian/tmp --libdir=$(CURDIR)/debian/tmp
 	rm -f $(CURDIR)/debian/tmp/usr/share/gx_head/sounds/bands/LICENSE
 	rm -f $(CURDIR)/debian/tmp/usr/share/gx_head/sounds/amps/LICENSE
-	rm -rf $(CURDIR)/debian/tmp/usr/lib/lv2/gx_amp.lv2/modgui
-	rm -f $(CURDIR)/debian/tmp/usr/lib/libgxwmm.so
-	rm -f $(CURDIR)/debian/tmp/usr/lib/libgxw.so
-	ln -s $(CURDIR)/debian/tmp/usr/lib/libgxwmm.so.0.1 $(CURDIR)/debian/tmp/usr/lib/libgxwmm.so
-	ln -s $(CURDIR)/debian/tmp/usr/lib/libgxw.so.0.1 $(CURDIR)/debian/tmp/usr/lib/libgxw.so
+	rm -rf $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/lv2/gx_amp.lv2/modgui
+	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgxwmm.so
+	rm -f $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgxw.so
+	ln -s $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgxwmm.so.0.1 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgxwmm.so
+	ln -s $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgxw.so.0.1 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgxw.so
+
 override_dh_install:
 	dh_install --fail-missing
 

-- 
guitarix packaging



More information about the pkg-multimedia-commits mailing list