From patchwork Mon Aug 22 11:20:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 3597 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C72DB23F22 for ; Mon, 22 Aug 2011 11:20:41 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 16A67A182EA for ; Mon, 22 Aug 2011 11:20:41 +0000 (UTC) Received: by ywo7 with SMTP id 7so4953964ywo.11 for ; Mon, 22 Aug 2011 04:20:40 -0700 (PDT) Received: by 10.150.132.17 with SMTP id f17mr2204803ybd.105.1314012039559; Mon, 22 Aug 2011 04:20:39 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.150.157.17 with SMTP id f17cs192514ybe; Mon, 22 Aug 2011 04:20:38 -0700 (PDT) Received: by 10.52.74.130 with SMTP id t2mr2129650vdv.55.1314012038453; Mon, 22 Aug 2011 04:20:38 -0700 (PDT) Received: from afflict.kos.to (afflict.kos.to [92.243.29.197]) by mx.google.com with ESMTPS id o2si13165004vdw.95.2011.08.22.04.20.37 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Aug 2011 04:20:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of nchip@afflict.kos.to designates 92.243.29.197 as permitted sender) client-ip=92.243.29.197; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of nchip@afflict.kos.to designates 92.243.29.197 as permitted sender) smtp.mail=nchip@afflict.kos.to Received: by afflict.kos.to (Postfix, from userid 1000) id A22632669D; Mon, 22 Aug 2011 11:20:36 +0000 (UTC) Date: Mon, 22 Aug 2011 14:20:36 +0300 From: Riku Voipio To: submit@bugs.debian.org Subject: please add multi-arch support for libhal1 Message-ID: <20110822112036.GA10573@afflict.kos.to> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Package: hal Version: 0.5.14-7 Severity: wishlist User: debian-dpkg@lists.debian.org Usertags: multiarch Tags: patch Hi, The attached patch converts the libraries included in hal package to multiarch paths and adds the relevant Multi-Arch: fields to debian/control. For more information, see: http://wiki.debian.org/Multiarch/Implementation Riku diff -urN tmp/popt-1.16//debian/control popt-1.16//debian/control --- tmp/popt-1.16//debian/control 2010-05-13 07:12:36.000000000 +0300 +++ popt-1.16//debian/control 2011-08-19 14:10:57.772543530 +0300 @@ -2,7 +2,7 @@ Section: devel Priority: optional Maintainer: Paul Martin -Build-Depends: debhelper (>> 7), gettext, quilt +Build-Depends: debhelper (>> 8.1.3), gettext, quilt Homepage: http://rpm5.org/ Standards-Version: 3.8.4 @@ -11,6 +11,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 +30,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 -urN tmp/popt-1.16//debian/libpopt0.install popt-1.16//debian/libpopt0.install --- tmp/popt-1.16//debian/libpopt0.install 2010-05-13 06:52:04.000000000 +0300 +++ popt-1.16//debian/libpopt0.install 1970-01-01 02:00:00.000000000 +0200 @@ -1,2 +0,0 @@ -debian/tmp/usr/lib*/libpopt.so.* lib -debian/tmp/usr/share/locale/*/LC_MESSAGES/popt.mo diff -urN tmp/popt-1.16//debian/libpopt0.install.in popt-1.16//debian/libpopt0.install.in --- tmp/popt-1.16//debian/libpopt0.install.in 1970-01-01 02:00:00.000000000 +0200 +++ popt-1.16//debian/libpopt0.install.in 2011-08-19 14:14:00.582543530 +0300 @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/DEB_HOST_MULTIARCH/libpopt.so.* lib/DEB_HOST_MULTIARCH +debian/tmp/usr/share/locale/*/LC_MESSAGES/popt.mo diff -urN tmp/popt-1.16//debian/libpopt0.links popt-1.16//debian/libpopt0.links --- tmp/popt-1.16//debian/libpopt0.links 2010-05-13 06:52:04.000000000 +0300 +++ popt-1.16//debian/libpopt0.links 1970-01-01 02:00:00.000000000 +0200 @@ -1 +0,0 @@ -lib/libpopt.so.0.0.0 lib/libpopt.so.0 diff -urN tmp/popt-1.16//debian/libpopt0.links.in popt-1.16//debian/libpopt0.links.in --- tmp/popt-1.16//debian/libpopt0.links.in 1970-01-01 02:00:00.000000000 +0200 +++ popt-1.16//debian/libpopt0.links.in 2011-08-19 14:14:14.502543532 +0300 @@ -0,0 +1 @@ +lib/DEB_HOST_MULTIARCH/libpopt.so.0.0.0 lib/DEB_HOST_MULTIARCH/libpopt.so.0 diff -urN tmp/popt-1.16//debian/libpopt-dev.install popt-1.16//debian/libpopt-dev.install --- tmp/popt-1.16//debian/libpopt-dev.install 2010-05-13 06:52:04.000000000 +0300 +++ popt-1.16//debian/libpopt-dev.install 2011-08-19 14:15:31.302543532 +0300 @@ -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/lib/*/libpopt.so +debian/tmp/usr/lib/*/libpopt.la +debian/tmp/usr/lib/*/libpopt.a debian/tmp/usr/share/man/man3/popt.3 usr/share/man/man3 debian/tmp/usr/include/popt.h usr/include diff -urN tmp/popt-1.16//debian/libpopt-dev.links popt-1.16//debian/libpopt-dev.links --- tmp/popt-1.16//debian/libpopt-dev.links 2010-05-13 06:52:04.000000000 +0300 +++ popt-1.16//debian/libpopt-dev.links 1970-01-01 02:00:00.000000000 +0200 @@ -1 +0,0 @@ -lib/libpopt.so.0 usr/lib/libpopt.so diff -urN tmp/popt-1.16//debian/libpopt-dev.links.in popt-1.16//debian/libpopt-dev.links.in --- tmp/popt-1.16//debian/libpopt-dev.links.in 1970-01-01 02:00:00.000000000 +0200 +++ popt-1.16//debian/libpopt-dev.links.in 2011-08-19 14:15:50.622543530 +0300 @@ -0,0 +1 @@ +lib/DEB_HOST_MULTIARCH/libpopt.so.0 usr/lib/DEB_HOST_MULTIARCH/libpopt.so diff -urN tmp/popt-1.16//debian/preprocess popt-1.16//debian/preprocess --- tmp/popt-1.16//debian/preprocess 1970-01-01 02:00:00.000000000 +0200 +++ popt-1.16//debian/preprocess 2011-08-19 14:13:17.742543532 +0300 @@ -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 -urN tmp/popt-1.16//debian/rules popt-1.16//debian/rules --- tmp/popt-1.16//debian/rules 2010-05-13 07:02:52.000000000 +0300 +++ popt-1.16//debian/rules 2011-08-19 14:16:39.102543532 +0300 @@ -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