From f0b36f19e14ef12997e887ba81db48ef8aaf3f46 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Thu, 9 Sep 2021 09:34:54 +0200 Subject: [PATCH] eclass: Accept one parameter only It's backported from gentoo, some newer packages in gentoo started to use python_gen_cond_dep with one parameter only, so when we updated them in portage stable, we don't want them to fail to build. --- .../third_party/portage-stable/eclass/python-utils-r1.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/python-utils-r1.eclass b/sdk_container/src/third_party/portage-stable/eclass/python-utils-r1.eclass index 96d7195d56..90df1fec75 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/python-utils-r1.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/python-utils-r1.eclass @@ -176,7 +176,8 @@ _python_set_impls() { # b) '-2' to indicate all Python 2 variants (= !python_is_python3) # c) '-3' to indicate all Python 3 variants (= python_is_python3) _python_impl_matches() { - [[ ${#} -ge 2 ]] || die "${FUNCNAME}: takes at least 2 parameters" + [[ ${#} -ge 1 ]] || die "${FUNCNAME}: takes at least 1 parameter" + [[ ${#} -eq 1 ]] && return 0 local impl=${1} pattern shift