[PATCH 4/9] nginx.eclass: port to esplit.eclass
Sam James <[email protected]> Thu, 9 Jul 2026 22:22:13 +0100
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <2dcb8b5fc3b0018ccc270a66fd84f3849949c437.1783632123.git.sam@gentoo.org> |
Avoid global-scope use of a heredoc which requires the use of a temporary file for any size with < EAPI 9 and with large sizes still with >= EAPI 9. In this case, a followup could be to just use a while/read loop. Closes: https://bugs.gentoo.org/978940 Signed-off-by: Sam James <[email protected]> --- eclass/nginx.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/nginx.eclass b/eclass/nginx.eclass index c77cbcf64eb20..36340a4145828 100644 --- a/eclass/nginx.eclass +++ b/eclass/nginx.eclass @@ -42,7 +42,7 @@ esac # Nonetheless, it is possible to opt out from the QA check by setting the # TMPFILES_OPTIONAL variable. TMPFILES_OPTIONAL=1 -inherit multiprocessing perl-functions systemd toolchain-funcs tmpfiles +inherit esplit multiprocessing perl-functions systemd toolchain-funcs tmpfiles #-----> ebuild-defined variables <----- @@ -376,7 +376,7 @@ _ngx_set_mod_required_use() { if has "${mod}" "${_NGX_MODULES[@]#+}"; then result='' # Feed comma-delimited dependencies into the dep_list array. - IFS=, read -ra dep_list <<< "${_NGX_DEP_TABLE[${mod}]}" + mapfile -d '' dep_list < <(IFS=, esplit "${_NGX_DEP_TABLE[${mod}]}") for dep in "${dep_list[@]}"; do has "${dep}" "${_NGX_MODULES[@]#+}" && result+=" nginx_modules_${dep}" -- 2.55.0