diff options
| author | Michał Górny <mgorny@gentoo.org> | 2024-10-20 18:34:04 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2024-11-30 08:16:12 +0100 |
| commit | c735a05a5c51cfb64610ac7848e72d83d00bf319 (patch) | |
| tree | 6a638005991aad6c9bc016300191c86a6053e87c /eclass/python-any-r1.eclass | |
| parent | db66158182dafb2614ddfe5514216f17e166792d (diff) | |
| download | gentoo-c735a05a5c51cfb64610ac7848e72d83d00bf319.tar.gz gentoo-c735a05a5c51cfb64610ac7848e72d83d00bf319.tar.bz2 gentoo-c735a05a5c51cfb64610ac7848e72d83d00bf319.zip | |
python-any-r1.eclass: Fix python_gen_any_dep w/ PYTHON_REQ_USE
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>
Diffstat (limited to 'eclass/python-any-r1.eclass')
| -rw-r--r-- | eclass/python-any-r1.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
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})" } |
