Your message dated Sat, 12 Mar 2022 01:03:33 +0100
with message-id <20220312000333.iz63hjrlr7lnjc6a@crossbow>
and subject line Re: Bug#1007122: apt: in dependencies, apt should not install
a package that is already provided via "Provides:"
has caused the Debian Bug report #1007122,
regarding apt: in dependencies, apt should not install a package that is
already provided via "Provides:"
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 [email protected]
immediately.)
--
1007122: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1007122
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: apt
Version: 2.4.1
Severity: minor
With "apt install ...", apt wants to install a package as a
dependency, but this package is already provided by an installed
package, via "Provides:".
Example:
cventin:~> apt install -s elpa-transient
[...]
The following additional packages will be installed:
emacs
but on my machine, emacs-gtk is already installed, and it has
Provides: editor, emacs, emacsen, info-browser, mail-reader, news-reader
Note: emacs is a metapackage for emacs-gtk or variants, so that
it is completely useless if emacs-gtk is installed directly.
-- Package-specific info:
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500,
'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.16.0-4-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages apt depends on:
ii adduser 3.120
ii debian-archive-keyring 2021.1.1
ii gpgv 2.2.27-3
ii libapt-pkg6.0 2.4.1
ii libc6 2.33-7
ii libgcc-s1 12-20220302-1
ii libgnutls30 3.7.3-4+b1
ii libseccomp2 2.5.3-2
ii libstdc++6 12-20220302-1
ii libsystemd0 250.3-2
Versions of packages apt recommends:
ii ca-certificates 20211016
Versions of packages apt suggests:
ii apt-doc 2.4.1
ii aptitude 0.8.13-3
ii dpkg-dev 1.21.1
ii gnupg 2.2.27-3
ii powermgmt-base 1.36
-- no debconf information
--
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
--- End Message ---
--- Begin Message ---
On Fri, Mar 11, 2022 at 04:30:25PM +0100, Vincent Lefevre wrote:
> With "apt install ...", apt wants to install a package as a
> dependency, but this package is already provided by an installed
> package, via "Provides:".
>
> Example:
>
> cventin:~> apt install -s elpa-transient
> [...]
> The following additional packages will be installed:
> emacs
elpa-transient Recommends emacs (>= 1:25.1)
emacs-gtk Provides emacs
An unversioned provides like the one from emacs-gtk does not satisfy
a versioned dependency.
So, APT is working as intended here, you will have to talk to the
maintainers of these packages to figure out which options there are
to reach your desired outcome.
I can not recommend a cause of action here as
a) I am a die-hard vim user and
b) have no idea if the Recommends is needed at all and/or if it would
make sense to version the emacs provides. The later would at least
accomplish your request… (see also vim & vim-nox which implement this).
That might be best discussion with the involved team(s) rather than some
bugreports in a few leaf packages.
> but on my machine, emacs-gtk is already installed, and it has
>
> Provides: editor, emacs, emacsen, info-browser, mail-reader, news-reader
>
> Note: emacs is a metapackage for emacs-gtk or variants, so that
> it is completely useless if emacs-gtk is installed directly.
With your logic, If you have vim installed, it is completely useless
to install emacs because both provide 'editor'.
While I think that is correct (see a) above), I don't think we can
implement that in apt, so I have to refuse your suggestion for hopefully
now obvious reasons and close the bugreport as: "Be careful what you wish
for."
Best regards
David Kalnischkies
signature.asc
Description: PGP signature
--- End Message ---