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

Bug#934472: reportbug: provider of virtual package dependency with versioned Provides is not reported



Package: reportbug
Version: 7.5.2
Severity: normal

Preconditions:

* dbus-user-session Provides: default-dbus-session-bus (without a version)
* dconf-service Depends: default-dbus-session-bus | dbus-session-bus
* libpam-systemd Provides: default-logind (= 241-7)
* The patched policykit-1 from #923240 Depends: default-logind | logind

Steps to reproduce:

* Have the packages above installed
* reportbug --template dconf-service
* reportbug --template policykit-1

Expected result:

* The template for dconf-service reports the installed version of
  dbus-user-session, because it provides default-dbus-session-bus
* The template for policykit-1 reports the installed version of
  libpam-systemd, because it provides default-logind

Actual result:

* As expected: The template for dconf-service reports the installed
  version of dbus-user-session
* Not as expected: The template for policykit-1 does not mention the
  installed version of libpam-systemd

I assume the fact that libpam-systemd has a *versioned* Provides is
confusing the logic in reportbug that is meant to report the versions of
providers of virtual packages.

Workaround: add known providers of the versioned package (in this
case libpam-systemd and libpam-elogind) to "package-status:"
in the depending package's bug control metadata (in this case
debian/policykit-1.bug-control).

Regards,
    smcv

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-debug'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages reportbug depends on:
ii  apt                1.8.3
ii  python3            3.7.3-1
ii  python3-reportbug  7.5.2
ii  sensible-utils     0.0.12

reportbug recommends no packages.

Versions of packages reportbug suggests:
pn  claws-mail                               <none>
ii  debconf-utils                            1.5.73
ii  debsums                                  2.2.3
pn  dlocate                                  <none>
pn  emacs24-bin-common | emacs25-bin-common  <none>
ii  file                                     1:5.37-5
ii  gnupg                                    2.2.17-3
ii  postfix [mail-transport-agent]           3.4.5-1
pn  python3-urwid                            <none>
pn  reportbug-gtk                            <none>
ii  xdg-utils                                1.1.3-1

Versions of packages python3-reportbug depends on:
ii  apt                1.8.3
ii  file               1:5.37-5
ii  python3            3.7.3-1
ii  python3-apt        1.8.4
ii  python3-debian     0.1.35
ii  python3-debianbts  2.8.2
ii  python3-requests   2.21.0-1

python3-reportbug suggests no packages.

-- no debconf information


Reply to: