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

Bug#976980: apt: Possible to silently remove some depends



Hi,

Quoting Helge Kreutzmann (2020-12-09 16:02:35)
> Hello Johannes,
> On Wed, Dec 09, 2020 at 03:56:51PM +0100, Johannes Schauer Marin Rodrigues wrote:
> > Quoting Helge Kreutzmann (2020-12-09 15:47:23)
> > > root@samd:~# apt-cache show po4a | grep epends Depends: gettext,
> > > libpod-parser-perl, libsgmls-perl, libyaml-tiny-perl, opensp, perl:any
> > > 
> > > 
> > > root@samd:~# apt-get remove libpod-parser-perl
> > > Paketlisten werden gelesen... Fertig
> > > Abhängigkeitsbaum wird aufgebaut.
> > > Statusinformationen werden eingelesen.... Fertig
> > > Die folgenden Pakete werden ENTFERNT:
> > >   libpod-parser-perl
> > > 0 aktualisiert, 0 neu installiert, 1 zu entfernen und 2 nicht aktualisiert.
> > > Nach dieser Operation werden 260 kB Plattenplatz freigegeben.
> > > Möchten Sie fortfahren? [J/n]
> > > (Lese Datenbank ... 567353 Dateien und Verzeichnisse sind derzeit installiert.)
> > > Entfernen von libpod-parser-perl (1.63-2) ...
> > > »Umleitung von /usr/bin/podselect zu /usr/bin/podselect.bundled durch libpod-parser-perl« wird entfernt
> > > »Umleitung von /usr/share/man/man1/podselect.1.gz zu /usr/share/man/man1/podselect.bundled.1.gz durch libpod-parser-perl« wird entfernt
> > > Trigger für man-db (2.9.3-2) werden verarbeitet ...
> > > ======  How can you help?  (doc: https://wiki.debian.org/how-can-i-help ) ======
> > > 
> > > -----  Show old opportunities as well as new ones: how-can-i-help --old  -----
> > > root@samd:~# dpkg -l po4a
> > > Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
> > > | Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
> > >          Halb installiert/Trigger erWartet/Trigger anhängig
> > > |/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
> > > ||/ Name           Version      Architektur  Beschreibung
> > > +++-==============-============-============-==============================================
> > > ii  po4a           0.61-1       all          tools to ease the translation of documentation
> > > 
> > > All the other dependecies correctly remove po4a as well …
> > > 
> > > I noticed this in #976704
> > 
> > libpod-parser-perl is also a virtual package provided by perl.
> 
> So is this a bug in po4a (it does not work if libpod-parser-perl is
> installed) or a bug in apt (as it allows p4a without libpod-parser-perl)?

apt is behaving correctly here. po4a has an unversioned dependency on
libpod-parser-perl which is fulfilled by perl as far as apt is concerned. If
this is wrong then the metadata has to be fixed. Either perl has to drop its
Provides of libpod-parser-perl or po4a has to make its dependency on
libpod-parser-perl versioned.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature


Reply to: