Package: dpkg
Version: 1.16.2~wipmultiarch
Severity: normal

Hi,

trying to install various multiarchified packages, I hit whiptail's
#658319, and it seems it resulted in a funny state for this package:
| # dpkg -l whiptail:i386 whiptail:amd64 whiptail
| un  whiptail                  <none>                    (no description 
available)
| in  whiptail                  <none>                    (no description 
available)
| No packages found matching whiptail:amd64.
|
| # dpkg -P whiptail:i386 whiptail:amd64 whiptail
| dpkg: warning: there's no installed package matching whiptail:i386
| dpkg: warning: there's no installed package matching whiptail:amd64
| dpkg: warning: there's no installed package matching whiptail
|
| # dpkg -l '*:i386'
| […]
| in  whiptail                  <none> 

Removing all *:i386 foreign packages to try and remove the i386 foreign
architecture, whiptail is indeed getting in the way (with patch from
#658812):
| dpkg: error: cannot remove architecture 'i386' currently in use by the 
database (for at least 'whiptail')

Asking gdb to break on ../../src/main.c:536, I get this for “pkg”:
| (gdb) p *pkg  
| $2 = {set = 0x760090, arch_next = 0x0, want = want_install, eflag = eflag_ok, 
status = stat_notinstalled, 
|   priority = pri_important, otherpriority = 0x0, section = 0x7946d0 "utils", 
configversion = {epoch = 0, version = 0x0, 
|     revision = 0x0}, files = 0x0, installed = {depends = 0x0, essential = 
false, multiarch = multiarch_no, arch = 0x75da20, 
|     pkgname_archqual = 0x0, description = 0x0, maintainer = 0x0, source = 
0x0, installedsize = 0x0, origin = 0x0, 
|     bugs = 0x0, version = {epoch = 0, version = 0x0, revision = 0x0}, 
conffiles = 0x0, arbs = 0x0}, available = {
|     depends = 0x0, essential = false, multiarch = multiarch_no, arch = 
0x75da20, pkgname_archqual = 0x0, description = 0x0, 
|     maintainer = 0x0, source = 0x0, installedsize = 0x0, origin = 0x0, bugs = 
0x0, version = {epoch = 0, version = 0x0, 
|       revision = 0x0}, conffiles = 0x0, arbs = 0x0}, clientdata = 0x0, trigaw 
= {head = 0x0, tail = 0x0}, 
|   othertrigaw_head = 0x0, trigpend_head = 0x0}
| ---
| (gdb) p *pkg->set
| $4 = {next = 0x0, name = 0x760220 "whiptail", pkg = {set = 0x760090, 
arch_next = 0x7946e0, want = want_unknown, 
|     eflag = eflag_ok, status = stat_notinstalled, priority = pri_unknown, 
otherpriority = 0x0, section = 0x0, 
|     configversion = {epoch = 0, version = 0x0, revision = 0x0}, files = 0x0, 
installed = {depends = 0x0, essential = false, 
|       multiarch = multiarch_no, arch = 0x648500, pkgname_archqual = 0x0, 
description = 0x0, maintainer = 0x0, source = 0x0, 
|       installedsize = 0x0, origin = 0x0, bugs = 0x0, version = {epoch = 0, 
version = 0x0, revision = 0x0}, conffiles = 0x0, 
|       arbs = 0x0}, available = {depends = 0x0, essential = false, multiarch = 
multiarch_no, arch = 0x648500, 
|       pkgname_archqual = 0x0, description = 0x0, maintainer = 0x0, source = 
0x0, installedsize = 0x0, origin = 0x0, 
|       bugs = 0x0, version = {epoch = 0, version = 0x0, revision = 0x0}, 
conffiles = 0x0, arbs = 0x0}, clientdata = 0x0, 
|     trigaw = {head = 0x0, tail = 0x0}, othertrigaw_head = 0x0, trigpend_head 
= 0x0}, depended = {available = 0x0, 
|     installed = 0x761b50}}

To reproduce, debootstrap sid and then:
| dpkg -i /tmp/dpkg_1.16.2~wipmultiarch_amd64.deb 
| dpkg --add-architecture i386
| apt-get update 
| apt-get install whiptail
| apt-get install whiptail:i386 --no-install-recommends
| apt-get -f install
then try removing packages.

Mraw,
KiBi.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to