diff -Nru popt-1.16/debian/changelog popt-1.16/debian/changelog --- popt-1.16/debian/changelog 2010-05-13 04:15:05.000000000 +0000 +++ popt-1.16/debian/changelog 2011-11-08 23:26:28.000000000 +0000 @@ -1,3 +1,12 @@ +popt (1.16-1ubuntu1) precise; urgency=low + + * Build for multiarch; thanks to Riku Voipio for the + patch. Closes: #638447. + * Build-depend on gettext:any instead of just gettext, for + cross-compilation support. + + -- Steve Langasek Tue, 08 Nov 2011 15:26:27 -0800 + popt (1.16-1) unstable; urgency=low * New upstream release (Closes: #581439) diff -Nru popt-1.16/debian/control popt-1.16/debian/control --- popt-1.16/debian/control 2010-05-13 04:12:36.000000000 +0000 +++ popt-1.16/debian/control 2011-11-08 23:26:56.000000000 +0000 @@ -1,8 +1,9 @@ Source: popt Section: devel Priority: optional -Maintainer: Paul Martin -Build-Depends: debhelper (>> 7), gettext, quilt +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Paul Martin +Build-Depends: debhelper (>= 8.1.3~), gettext:any, quilt Homepage: http://rpm5.org/ Standards-Version: 3.8.4 @@ -11,6 +12,8 @@ Section: libs Priority: important Depends: ${shlibs:Depends}, ${misc:Depends} +Pre-Depends: ${misc:Pre-Depends} +Multi-Arch: same Conflicts: popt, libpopt-dev (<= 1.4-1), rpm (<= 4.0.2-3) Replaces: popt Description: lib for parsing cmdline parameters @@ -28,6 +31,7 @@ Section: libdevel Priority: optional Depends: libc6-dev | libc-dev, libpopt0 (= ${binary:Version}), ${misc:Depends} +Multi-Arch: same Conflicts: popt Replaces: popt Description: lib for parsing cmdline parameters - development files diff -Nru popt-1.16/debian/libpopt0.install popt-1.16/debian/libpopt0.install --- popt-1.16/debian/libpopt0.install 2010-05-13 03:52:04.000000000 +0000 +++ popt-1.16/debian/libpopt0.install 1970-01-01 00:00:00.000000000 +0000 @@ -1,2 +0,0 @@ -debian/tmp/usr/lib*/libpopt.so.* lib -debian/tmp/usr/share/locale/*/LC_MESSAGES/popt.mo diff -Nru popt-1.16/debian/libpopt0.install.in popt-1.16/debian/libpopt0.install.in --- popt-1.16/debian/libpopt0.install.in 1970-01-01 00:00:00.000000000 +0000 +++ popt-1.16/debian/libpopt0.install.in 2011-11-08 23:20:19.000000000 +0000 @@ -0,0 +1,2 @@ +usr/lib/DEB_HOST_MULTIARCH/libpopt.so.* lib/DEB_HOST_MULTIARCH +usr/share/locale/*/LC_MESSAGES/popt.mo diff -Nru popt-1.16/debian/libpopt0.links popt-1.16/debian/libpopt0.links --- popt-1.16/debian/libpopt0.links 2010-05-13 03:52:04.000000000 +0000 +++ popt-1.16/debian/libpopt0.links 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -lib/libpopt.so.0.0.0 lib/libpopt.so.0 diff -Nru popt-1.16/debian/libpopt0.links.in popt-1.16/debian/libpopt0.links.in --- popt-1.16/debian/libpopt0.links.in 1970-01-01 00:00:00.000000000 +0000 +++ popt-1.16/debian/libpopt0.links.in 2011-11-08 23:19:53.000000000 +0000 @@ -0,0 +1 @@ +lib/DEB_HOST_MULTIARCH/libpopt.so.0.0.0 lib/DEB_HOST_MULTIARCH/libpopt.so.0 diff -Nru popt-1.16/debian/libpopt-dev.install popt-1.16/debian/libpopt-dev.install --- popt-1.16/debian/libpopt-dev.install 2010-05-13 03:52:04.000000000 +0000 +++ popt-1.16/debian/libpopt-dev.install 2011-11-08 23:20:50.000000000 +0000 @@ -1,5 +1,5 @@ -debian/tmp/usr/lib*/libpopt.so usr/lib -debian/tmp/usr/lib*/libpopt.la usr/lib -debian/tmp/usr/lib*/libpopt.a usr/lib -debian/tmp/usr/share/man/man3/popt.3 usr/share/man/man3 -debian/tmp/usr/include/popt.h usr/include +usr/lib/*/libpopt.so +usr/lib/*/libpopt.la +usr/lib/*/libpopt.a +usr/share/man/man3/popt.3 +usr/include/popt.h diff -Nru popt-1.16/debian/libpopt-dev.links popt-1.16/debian/libpopt-dev.links --- popt-1.16/debian/libpopt-dev.links 2010-05-13 03:52:04.000000000 +0000 +++ popt-1.16/debian/libpopt-dev.links 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -lib/libpopt.so.0 usr/lib/libpopt.so diff -Nru popt-1.16/debian/libpopt-dev.links.in popt-1.16/debian/libpopt-dev.links.in --- popt-1.16/debian/libpopt-dev.links.in 1970-01-01 00:00:00.000000000 +0000 +++ popt-1.16/debian/libpopt-dev.links.in 2011-11-08 23:19:53.000000000 +0000 @@ -0,0 +1 @@ +lib/DEB_HOST_MULTIARCH/libpopt.so.0 usr/lib/DEB_HOST_MULTIARCH/libpopt.so diff -Nru popt-1.16/debian/preprocess popt-1.16/debian/preprocess --- popt-1.16/debian/preprocess 1970-01-01 00:00:00.000000000 +0000 +++ popt-1.16/debian/preprocess 2011-11-08 23:19:53.000000000 +0000 @@ -0,0 +1,9 @@ +#!/bin/sh + +DEB_HOST_MULTIARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH` + +for file in debian/*.in; +do + target=`echo $file|sed -e 's/...$//'` + sed -e s/DEB_HOST_MULTIARCH/$DEB_HOST_MULTIARCH/g $file > $target +done diff -Nru popt-1.16/debian/rules popt-1.16/debian/rules --- popt-1.16/debian/rules 2010-05-13 04:02:52.000000000 +0000 +++ popt-1.16/debian/rules 2011-11-08 23:19:53.000000000 +0000 @@ -7,6 +7,8 @@ DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) else @@ -50,7 +52,7 @@ mkdir $(objdir) # Add here commands to configure the package. cd $(objdir) && \ - ../configure --prefix=/usr --mandir=/usr/share/man --enable-shared $(CROSS) + ../configure --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) --prefix=/usr --mandir=/usr/share/man --enable-shared $(CROSS) touch $@ configure-udeb-stamp: @@ -124,6 +126,7 @@ dh_testdir dh_testroot + sh debian/preprocess dh_install --list-missing # dh_installdebconf dh_installdocs