[PATCH 01/10] nginx-module.eclass: src_configure(): remove redundant check in ngx_mod_link_module
Zurab Kvachadze <[email protected]> Sat, 18 Jul 2026 19:36:58 +0300
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <[email protected]> |
for loop does not fire at all if the array is empty. Signed-off-by: Zurab Kvachadze <[email protected]> --- eclass/nginx-module.eclass | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/eclass/nginx-module.eclass b/eclass/nginx-module.eclass index f58d4471e90f..3e6214bc30f3 100644 --- a/eclass/nginx-module.eclass +++ b/eclass/nginx-module.eclass @@ -706,12 +706,10 @@ nginx-module_src_configure() { # Add the required linking flags required for the modules specified in the # NGINX_MOD_LINK_MODULES array. - if [[ ${#NGINX_MOD_LINK_MODULES[@]} -gt 0 ]]; then - local mod - for mod in "${NGINX_MOD_LINK_MODULES[@]}"; do - ngx_mod_link_module "${mod}" - done - fi + local mod + for mod in "${NGINX_MOD_LINK_MODULES[@]}"; do + ngx_mod_link_module "${mod}" + done eval "local -a EXTRA_ECONF=( ${EXTRA_ECONF} )" -- 2.54.0