[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#649504: marked as done (apt: please add multiarch support)



Your message dated Mon, 14 May 2012 12:09:06 +0200
with message-id <CAAZ6_fBJkU5z6hcnGg3Q70tkcAEQHo4FDEcyZ2n-zLZRkkqh7Q@mail.gmail.com>
and subject line Re: apt: please add multiarch support
has caused the Debian Bug report #649504,
regarding apt: please add multiarch support
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
649504: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=649504
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.8.16~exp8
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch precise

The attached Bazaar bundle, based on the debian-experimental2 branch,
converts apt's runtime library packages to multiarch support.  Aside
from the usual reasons for converting libraries to multiarch, this would
be particularly helpful because I believe it should make it possible to
install apt:amd64 on an i386 system with an amd64 kernel (replacing the
native apt) as the first step of a multiarch crossgrade.

It's possible that libapt-pkg-dev can also be marked Multi-Arch: same as
a result of this patch; I haven't checked whether the header files are
reliably identical across architectures.  If this is the case, then
please do go ahead and add that field as well.

I did try building python-apt against this, but I can't find a tree that
supports the current apt ABI; so perhaps you could test this to make
sure that I haven't broken the ability to link against libapt-pkg?

Thanks,

-- 
Colin Watson                                       [cjwatson@ubuntu.com]
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: cjwatson@canonical.com-20111121164234-843yiynl2g0zznny
# target_branch: http+urllib://anonscm.debian.org/bzr/bzr/apt/apt\
#   /debian-experimental2/
# testament_sha1: 008645db7083071e10ab3bd7ebfbd03701b258d2
# timestamp: 2011-11-21 16:42:54 +0000
# base_revision_id: michael.vogt@ubuntu.com-20111110151055-\
#   gkbk6bfx6biids40
# 
# Begin patch
=== modified file '.bzrignore'
--- .bzrignore	2010-03-17 16:05:57 +0000
+++ .bzrignore	2011-11-21 16:42:34 +0000
@@ -10,6 +10,8 @@
 configure
 buildlib/config.sub
 buildlib/config.guess
+debian/libapt-pkg[0-9]*.install
+debian/libapt-inst[0-9]*.install
 
 # abichecker related files/dir
 abicheck/apt_build.xml

=== modified file 'debian/changelog'
--- debian/changelog	2011-11-03 14:41:14 +0000
+++ debian/changelog	2011-11-21 16:42:34 +0000
@@ -1,3 +1,9 @@
+apt (0.8.16~exp9) UNRELEASED; urgency=low
+
+  * Convert libapt-pkg4.12 and libapt-inst1.4 to Multi-Arch: same.
+
+ -- Colin Watson <cjwatson@ubuntu.com>  Mon, 21 Nov 2011 15:34:05 +0000
+
 apt (0.8.16~exp8) experimental; urgency=low
 
   [ David Kalnischkies ]

=== modified file 'debian/control'
--- debian/control	2011-09-14 11:56:33 +0000
+++ debian/control	2011-11-21 16:42:34 +0000
@@ -35,9 +35,20 @@
   * apt-config as an interface to the configuration settings
   * apt-key as an interface to manage authentication keys
 
+Package: libapt-common
+Architecture: all
+Multi-Arch: foreign
+Depends: ${misc:Depends}
+Breaks: libapt-pkg4.12 (<< 0.8.16~exp9), libapt-inst1.4 (<< 0.8.16~exp9)
+Replaces: libapt-pkg4.12 (<< 0.8.16~exp9), libapt-inst1.4 (<< 0.8.16~exp9)
+Description: Common files for APT libraries
+ This package includes translation files common to APT library packages.
+
 Package: libapt-pkg4.12
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, libapt-common
 Description: APT's package managment runtime library
  This library provides the common functionality for searching and
  managing packages as well as information about packages.
@@ -56,7 +67,9 @@
 
 Package: libapt-inst1.4
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Multi-Arch: same
+Pre-Depends: ${misc:Pre-Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, libapt-common
 Description: APT's deb package format runtime library
  This library provides methods to query and extract information 
  from deb packages. This includes the control data and the package
@@ -74,6 +87,7 @@
 Package: libapt-pkg-dev
 Architecture: any
 Priority: optional
+Pre-Depends: ${misc:Pre-Depends}
 Depends: ${libapt-pkg-name} (= ${binary:Version}), ${libapt-inst-name} (= ${binary:Version}), ${misc:Depends}, zlib1g-dev | zlib-dev
 Section: libdevel
 Description: Development files for APT's libapt-pkg and libapt-inst

=== added file 'debian/libapt-common.install'
--- debian/libapt-common.install	1970-01-01 00:00:00 +0000
+++ debian/libapt-common.install	2011-11-21 16:42:34 +0000
@@ -0,0 +1,1 @@
+usr/share/locale/*/*/libapt-*.mo

=== renamed file 'debian/libapt-inst1.4.install' => 'debian/libapt-inst1.4.install.in'
--- debian/libapt-inst1.4.install	2011-09-14 11:56:33 +0000
+++ debian/libapt-inst1.4.install.in	2011-11-21 16:42:34 +0000
@@ -1,2 +1,1 @@
-bin/libapt-inst*.so.* usr/lib/
-usr/share/locale/*/*/libapt-inst*.mo
+bin/libapt-inst*.so.* usr/lib/@DEB_HOST_MULTIARCH@/

=== removed file 'debian/libapt-pkg-dev.dirs'
--- debian/libapt-pkg-dev.dirs	2004-09-20 16:53:12 +0000
+++ debian/libapt-pkg-dev.dirs	1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
-usr/lib
-usr/include/apt-pkg

=== renamed file 'debian/libapt-pkg-dev.install' => 'debian/libapt-pkg-dev.install.in'
--- debian/libapt-pkg-dev.install	2011-01-15 23:54:48 +0000
+++ debian/libapt-pkg-dev.install.in	2011-11-21 16:42:34 +0000
@@ -1,3 +1,3 @@
-bin/libapt-pkg*.so usr/lib/
-bin/libapt-inst*.so usr/lib/
+bin/libapt-pkg*.so usr/lib/@DEB_HOST_MULTIARCH@/
+bin/libapt-inst*.so usr/lib/@DEB_HOST_MULTIARCH@/
 include/apt-pkg/*.h usr/include/apt-pkg/

=== renamed file 'debian/libapt-pkg4.12.install' => 'debian/libapt-pkg4.12.install.in'
--- debian/libapt-pkg4.12.install	2011-09-14 11:56:33 +0000
+++ debian/libapt-pkg4.12.install.in	2011-11-21 16:42:34 +0000
@@ -1,2 +1,1 @@
-bin/libapt-pkg*.so.* usr/lib/
-usr/share/locale/*/*/libapt-pkg*.mo
+bin/libapt-pkg*.so.* usr/lib/@DEB_HOST_MULTIARCH@/

=== modified file 'debian/rules'
--- debian/rules	2011-09-13 16:00:22 +0000
+++ debian/rules	2011-11-21 16:42:34 +0000
@@ -5,6 +5,7 @@
 
 export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 # FOR AUTOCONF 2.52 AND NEWER ONLY
 ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
@@ -118,9 +119,31 @@
 
 	[ ! -f Makefile ] || $(MAKE) clean distclean
 	rm -rf build
-
-binary-indep: apt-doc libapt-pkg-doc
+	rm -f debian/$(LIBAPT_PKG).install debian/$(LIBAPT_INST).install \
+	      debian/libapt-pkg-dev.install
+
+debian/%.install: debian/%.install.in
+	sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@
+
+binary-indep: libapt-common apt-doc libapt-pkg-doc
 # Build architecture-independent files here.
+libapt-common: build
+	dh_testdir -p$@
+	dh_testroot -p$@
+	dh_prep -p$@
+	dh_installdirs -p$@
+
+	dh_install -p$@ --sourcedir=$(BLD)
+	dh_installdocs -p$@
+	dh_installchangelogs -p$@
+	dh_strip -p$@
+	dh_compress -p$@
+	dh_fixperms -p$@
+	dh_installdeb -p$@
+	dh_gencontrol -p$@
+	dh_md5sums -p$@
+	dh_builddeb -p$@
+
 libapt-pkg-doc: build-doc
 	dh_testdir -p$@
 	dh_testroot -p$@
@@ -217,7 +240,7 @@
 	dh_md5sums -p$@
 	dh_builddeb -p$@
 
-libapt-pkg-dev: build
+libapt-pkg-dev: build debian/libapt-pkg-dev.install
 	dh_testdir -p$@
 	dh_testroot -p$@
 	dh_prep -p$@
@@ -265,7 +288,7 @@
 	dh_md5sums -p$@
 	dh_builddeb -p$@
 
-$(LIBAPT_PKG): build
+$(LIBAPT_PKG): build debian/$(LIBAPT_PKG).install
 	dh_testdir -p$@
 	dh_testroot -p$@
 	dh_prep -p$@
@@ -284,7 +307,7 @@
 	dh_md5sums -p$@
 	dh_builddeb -p$@
 
-$(LIBAPT_INST): build
+$(LIBAPT_INST): build debian/$(LIBAPT_INST).install
 	dh_testdir -p$@
 	dh_testroot -p$@
 	dh_prep -p$@

# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWTbVt0AAB35fgHAwV///////
//6////7YA43ddH3bp11qiy0bZa1MY+73ofO3vvvAAfQB9PK+3djoNGhpEIyYjRpPIZTAaTwqb1P
I0T0k9TMyFNqGI0GQAaJU09T1Hog/JDNU9qn6ao0aAxGm1MIaBtQAAAASoUzEaNEp+jBNKemmEja
TIaGQYJpiNNBoMgASJCBNJ6CYmQ1MEamjT0Go9NRhGRkyA0GmjIBtRUBMamho0yBptEDQaAZBoPS
AaDQAAEkiAJk00aAEZGmmmgaJqeU8EaNCnlPKeo0GhpkVCQBJIwDJ98gBhrAIMs4yxGzvRAcXwbv
GQOelc9l1/Z65WymhktyTy/7j0829GOD4KWLDRm55W/zGQ91pnlr9HfoaBKNSdyproFJS/BVZWpq
hWXrTyzVzEUvyImNrmxssTeBAczvnN5cxA29+WG7VKyjHiibsh2Ssq45VznXP245VbXHpzFAm67G
fRoBiGL1aHMFws0tWfZe9DeZgdxdB8ySOKQAQFCNtsE2DGdvrD2gbrDNy6JZXkunSArOTVSVcDOx
Kr38EX1wWPldbMTbdyqpMbHiqs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-{pkg,inst} are now M-A:same for a while and
seem to work (expect BE vs. LE mo files: #669984 and #669985)
so i mark this bug as done.

apt (0.8.16~exp9) experimental; urgency=low
[…]
  [ Colin Watson ]
  * Convert libapt-pkg4.12 and libapt-inst1.4 to Multi-Arch: same.
[…]
 -- Michael Vogt <mvo@debian.org>  Thu, 05 Jan 2012 20:26:31 +0100



Best regards

David Kalnischkies


--- End Message ---

Reply to: