• [gentoo-dev] [PATCH 1/3] python-any-r1.eclass: Fix python_gen_any_dep w

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Mon Oct 21 20:00:01 2024
    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 <mgorny@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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)