[DRE-maint] Bug#1022830: apt ignores versioned provides if non-matching version is installed via another dep

David Kalnischkies david at kalnischkies.de
Thu Oct 27 00:51:16 BST 2022


reassign -1 libruby3.1,ruby-csv
retitle -1 libruby3.1 and ruby-csv are providing different things under the same name

On Thu, Oct 27, 2022 at 12:32:16AM +0900, Marc Dequènes wrote:
> I had a weird FTBFS in #1022340 and it looks like the resolver is just
> skipping the versioned dep because another dep provides the same virtual
> package. Unfortunately it does not resolve the required version and should
> install the non-virtual package providing the right version (they are
> co-installable). More info in the referenced BR.
[…]
> Could you have a look please?

$ apt-cache showpkg ruby-csv
[…]
Reverse Provides:
libruby3.1 3.1.2-3 (= 3.2.2)
libruby3.0 3.0.4-8 (= 3.1.9)
libruby2.7 2.7.4-1+deb11u1 (= 3.1.2)


You are right that libruby3.0 which provides 3.1.9 is not enough to
satisfy the build-dependency of redmine, but libruby3.1 is installed,
too, and that certainly does satisfy ruby-csv (>= 3.2.0). It is
therefore correct for apt to not install the real ruby-csv package
as that dependency is already satisfied.

You might or might not be able to workaround this with Build-Conflicts,
but in the end libruby3.1 and ruby-csv should really agree on what they
are providing at what version or not… hence reassigning to both.


Best regards

David Kalnischkies
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20221027/1b8f203e/attachment-0002.sig>


More information about the Pkg-ruby-extras-maintainers mailing list