Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922927 - dev-python/Levenshtein-0.23.0 pull in conflicting versions of dev-cpp/rapidfuzz-cpp
Summary: dev-python/Levenshtein-0.23.0 pull in conflicting versions of dev-cpp/rapidfu...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-25 21:02 UTC by Flavio Cappelli
Modified: 2024-01-26 13:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Flavio Cappelli 2024-01-25 21:02:36 UTC
emerge -pv dev-python/Levenshtein

These are the packages that would be merged, in order:

[ebuild  N     ] dev-cpp/rapidfuzz-cpp-2.2.3::gentoo  USE="-test" 293 KiB
[ebuild  N     ] dev-cpp/taskflow-3.6.0::gentoo  USE="-examples -test" 64.781 KiB
[ebuild  N     ] dev-cpp/rapidfuzz-cpp-3.0.0::gentoo  USE="-test" 295 KiB
[ebuild  N     ] dev-python/distro-1.9.0::gentoo  USE="-test" PYTHON_TARGETS="python3_11 (-pypy3) -python3_10 (-python3_12)" 60 KiB
[ebuild  N     ] dev-python/rapidfuzz-capi-1.0.5::gentoo  PYTHON_TARGETS="python3_11 (-pypy3) -python3_10 (-python3_12)" 6 KiB
[ebuild  N     ] dev-python/scikit-build-0.17.6::gentoo  USE="-doc -test" PYTHON_TARGETS="python3_11 (-pypy3) -python3_10 (-python3_12)" 266 KiB
[ebuild  N     ] dev-python/rapidfuzz-3.6.1::gentoo  USE="-debug -test" PYTHON_TARGETS="python3_11 (-pypy3) -python3_10 (-python3_12)" 1.523 KiB
[ebuild  N     ] dev-python/Levenshtein-0.23.0::gentoo  USE="-debug -test" PYTHON_TARGETS="python3_11 -python3_10 (-python3_12)" 37 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-cpp/rapidfuzz-cpp:0

  (dev-cpp/rapidfuzz-cpp-2.2.3:0/0::gentoo, ebuild scheduled for merge) USE="-test" ABI_X86="(64)" pulled in by
    <dev-cpp/rapidfuzz-cpp-3 required by (dev-python/Levenshtein-0.23.0:0/0::gentoo, ebuild scheduled for merge) USE="-debug -test" ABI_X86="(64)" PYTHON_TARGETS="python3_11 -python3_10 (-python3_12)"

  (dev-cpp/rapidfuzz-cpp-3.0.0:0/0::gentoo, ebuild scheduled for merge) USE="-test" ABI_X86="(64)" pulled in by
    >=dev-cpp/rapidfuzz-cpp-3.0.0 required by (dev-python/rapidfuzz-3.6.1:0/0::gentoo, ebuild scheduled for merge) USE="-debug -test" ABI_X86="(64)" PYTHON_TARGETS="python3_11 (-pypy3) -python3_10 (-python3_12)"


This seems to happen because (since portage commit "dda3129") dev-python/Levenshtein-0.23.0 needs dev-cpp/rapidfuzz-cpp < 3.0.0 and dev-python/rapidfuzz >= 3.1.0:

DEPEND="
	<dev-cpp/rapidfuzz-cpp-3
	>=dev-cpp/rapidfuzz-cpp-2.0.0
"
RDEPEND="
	<dev-python/rapidfuzz-4.0.0[${PYTHON_USEDEP}]
	>=dev-python/rapidfuzz-3.1.0[${PYTHON_USEDEP}]
"

but dev-python/rapidfuzz-3.6.1 (only version in portage) pull in dev-cpp/rapidfuzz-cpp >= 3.0.0:

DEPEND="
	>=dev-cpp/taskflow-3.0.0
	>=dev-cpp/rapidfuzz-cpp-3.0.0
	dev-python/numpy[${PYTHON_USEDEP}]
"


I ran into this issue upgrading kde-apps/lokalize (which has as dependency dev-python/translate-toolkit, which in turn has as dependency dev-python/Levenshtein).


Reproducible: Always

Steps to Reproduce:
emerge -pv dev-python/Levenshtein

Actual Results:  
Emerge of dev-python/Levenshtein fails because two conflicting versions of dev-cpp/rapidfuzz-cpp are pulled in.


Expected Results:  
Success of emerge.
Comment 1 Benjamin Schulz 2024-01-26 05:15:12 UTC
i also have run into this bug.
After an emerge