[PATCH] eclass/kernel-2.eclass: Remove <<< for heredoc in globl scope
Mike Pagano <[email protected]> Wed, 8 Jul 2026 13:50:45 -0400
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <[email protected]> |
This will mitigate the forthcoming portage throwing a sandbox violation Bug: https://bugs.gentoo.org/978939 Signed-off-by: Mike Pagano <[email protected]> --- eclass/kernel-2.eclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 8a675db7a..52feddaeb 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -334,6 +334,7 @@ debug-print-kernel2-variables() { # add genpatches to list of patches to apply if wanted handle_genpatches() { + local tarball want_unipatch_list [[ -z ${K_WANT_GENPATCHES} || -z ${K_GENPATCHES_VER} ]] && return 1 @@ -350,7 +351,7 @@ handle_genpatches() { debug-print "Inside handle_genpatches" local OKV_ARRAY - IFS="." read -r -a OKV_ARRAY <<<"${OKV}" + OLDIFS="$IFS"; IFS='.'; OKV_ARRAY=(${OKV}); IFS="$OLDIFS" # for > 3.0 kernels, handle genpatches tarball name # genpatches for 3.0 and 3.0.1 might be named @@ -411,7 +412,7 @@ detect_version() { KV_MAJOR=$(ver_cut 1 ${OKV}) # handle if OKV is X.Y or X.Y.Z (e.g. 3.0 or 3.0.1) local OKV_ARRAY - IFS="." read -r -a OKV_ARRAY <<<"${OKV}" + OLDIFS="$IFS"; IFS='.'; OKV_ARRAY=(${OKV}); IFS="$OLDIFS" # if KV_MAJOR >= 3, then we have no more KV_MINOR #if [[ ${KV_MAJOR} -lt 3 ]]; then @@ -792,7 +793,7 @@ universal_unpack() { debug-print "Inside universal_unpack" local OKV_ARRAY - IFS="." read -r -a OKV_ARRAY <<<"${OKV}" + OLDIFS="$IFS"; IFS='.'; OKV_ARRAY=(${OKV}); IFS="$OLDIFS" cd "${WORKDIR}" || die if [[ ${#OKV_ARRAY[@]} -ge 3 && ${KV_MAJOR} -ge 3 ]]; then -- 2.54.0