On Thu, Sep 13, 2012 at 05:17:55PM +0200, Vincent Lefevre wrote: > On 2012-09-11 15:36:15 +0000, Debian Bug Tracking System wrote: > > [ David Kalnischkies ] > > * handle packages without a mandatory architecture (debian-policy ยง5.3) > > by introducing a pseudo-architecture 'none' so that the small group of > > users with these packages can get right of them without introducing too > > much hassle for other users (Closes: #686346) > > I'm not sure whether this is done correctly. For instance, I have > the following packages installed: > > Package: docbook-mathml > Status: install ok installed > Priority: optional > Section: text > Installed-Size: 100 > Maintainer: Mark Johnson <m...@debian.org> > Version: 1.0.0-2 > Depends: xml-core (>= 0.05), sgml-base (>= 1.17), docbook-xml (>= 4.1.2-4), > w3-dtd-mathml > Suggests: docbook-xsl > Description: Extension to DocBook XML for using MathML markup > [...] > > (with a missing architecture and which depends on docbook-xml) and: > > Package: docbook-xml > Status: install ok installed > Priority: optional > Section: text > Installed-Size: 2024 > Maintainer: Debian XML/SGML Group > <debian-xml-sgml-p...@lists.alioth.debian.org> > Architecture: all > Version: 4.5-7.1 > Provides: docbk-xml > Depends: sgml-data (>= 2.0.2), sgml-base (>= 1.26+nmu2) > Pre-Depends: xml-core (>= 0.12) > Suggests: docbook, docbook-dsssl, docbook-xsl, docbook-defguide > Conffiles: > [...] > Description: standard XML documentation system for software and systems > [...] > > apt is up-to-date: > > ay:~> apt-show-versions apt > apt/unstable uptodate 0.9.7.5 > > but... > > ay:~> sudo apt-get remove --purge -s docbook-mathml docbook-xml > Reading package lists... Done > Building dependency tree > Reading state information... Done > Package 'docbook-mathml' is not installed, so not removed. Did you mean > 'docbook-mathml:none'? > The following packages will be REMOVED: > docbook-xml* > 0 upgraded, 0 newly installed, 1 to remove and 566 not upgraded. > Purg docbook-xml [4.5-7.1] > > so that docbook-mathml would depend on a package that has been > uninstalled. However if I do this, the system doesn't notice > this broken dependency, as if docbook-mathml were not installed > at all (so that I don't need an "apt-get -f install").
I propose we just abort with an error message if the user has a package without an architecture and force the user to remove that package, instead of fixing this. That's probably much easier and should only have little impact. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org