Fix `python_gen_any_dep()` to correctly strip the `:=` operator when it does not occur at the end of `PYTHON_PKG_DEP`, i.e. when `PYTHON_REQ_USE` is used and a USE dependency string is appended.
Signed-off-by: Michał Górny <mgo...@gentoo.org> --- eclass/python-any-r1.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass index 0c01a49f9000..ca2ddf146406 100644 --- a/eclass/python-any-r1.eclass +++ b/eclass/python-any-r1.eclass @@ -259,7 +259,7 @@ python_gen_any_dep() { local i_depstr=${depstr//\$\{PYTHON_USEDEP\}/${PYTHON_USEDEP}} i_depstr=${i_depstr//\$\{PYTHON_SINGLE_USEDEP\}/${PYTHON_SINGLE_USEDEP}} # note: need to strip '=' slot operator for || deps - out="( ${PYTHON_PKG_DEP%:=} ${i_depstr} ) ${out}" + out="( ${PYTHON_PKG_DEP/:=} ${i_depstr} ) ${out}" done echo "|| ( ${out})" } -- 2.47.0