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

Bug#1026086: marked as done (Wrong output of apt-cache depends)



Your message dated Wed, 14 Dec 2022 16:18:14 +0100
with message-id <20221214160901.GA199641@debian.org>
and subject line Re: Bug#1026086: Wrong output of apt-cache depends
has caused the Debian Bug report #1026086,
regarding Wrong output of apt-cache depends
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.)


-- 
1026086: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026086
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 2.2.4

Linux 5.19.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1~bpo11+1 (2022-10-03) x86_64 GNU/Linux
Description: Debian GNU/Linux 11 (bullseye)

# apt show libdbus-1-3
Package: libdbus-1-3
Version: 1.12.20-2
Priority: optional
Section: libs
Source: dbus
Maintainer: Utopia Maintenance Team <pkg-utopia-maintainers@lists.alioth.debian.org>
Installed-Size: 496 kB
Depends: libc6 (>= 2.17), libsystemd0
Recommends: dbus
Breaks: dbus (<< 1.9.16-1~)
Homepage: https://dbus.freedesktop.org/
Tag: role::shared-lib
Download-Size: 219 kB
APT-Manual-Installed: no
APT-Sources: http://mirror.insacom.cl/debian bullseye/main amd64 Packages
Description: simple interprocess messaging system (library)

# apt depends libdbus-1-3
libdbus-1-3
  Depends: libc6 (>= 2.17)
  Depends: libsystemd0
    libelogind0

  Breaks: dbus (<< 1.9.16-1~)
  Recommends: dbus

libelogind0 must not be in the command output.

--- End Message ---
--- Begin Message ---
On Wed, Dec 14, 2022 at 11:18:37AM -0300, Orangey wrote:
> Package: apt
> Version: 2.2.4
> 
> Linux 5.19.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian
> 5.19.11-1~bpo11+1 (2022-10-03) x86_64 GNU/Linux
> Description: Debian GNU/Linux 11 (bullseye)
> 
> # apt show libdbus-1-3
> Package: libdbus-1-3
> Version: 1.12.20-2
> Priority: optional
> Section: libs
> Source: dbus
> Maintainer: Utopia Maintenance Team <
> pkg-utopia-maintainers@lists.alioth.debian.org>
> Installed-Size: 496 kB
> *Depends: libc6 (>= 2.17), libsystemd0*
> Recommends: dbus
> Breaks: dbus (<< 1.9.16-1~)
> Homepage: https://dbus.freedesktop.org/
> Tag: role::shared-lib
> Download-Size: 219 kB
> APT-Manual-Installed: no
> APT-Sources: http://mirror.insacom.cl/debian bullseye/main amd64 Packages
> Description: simple interprocess messaging system (library)
> 
> # apt depends libdbus-1-3
> libdbus-1-3
> *  Depends: libc6 (>= 2.17)*
> 
> *  Depends: libsystemd0    libelogind0*
>   Breaks: dbus (<< 1.9.16-1~)
>   Recommends: dbus
> 
> *libelogind0 must not be in the command output.*

No you're wrong. Please read the manual page:

    depends shows a listing of each dependency a package has and all the
    possible other packages that can fulfill that dependency

and if you check libelogind you see:

    Provides: libsystemd0 (= 246.9.1)


WRT your followup on --installed not filtering out libelogind, that's
well it is what is. It actually filters installed dependencies, not
installed packages, and hence libelogind0 is shown.

They're legacy commands provided for backward compatibility for users
who know what they're doing. You're likely better of asking your
questions using patterns, e.g.:

$ apt list '?reverse-depends(?name(libdbus-1-3))'
libc6/stable-updates,now 2.31-13+deb11u5 amd64 [installed,automatic]
libsystemd0/stable,now 247.3-7+deb11u1 amd64 [installed,automatic]

or using apt-cache show with the pattern if you need a machine-readable
output. See apt-patterns(7) for more information.

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

--- End Message ---

Reply to: