commit:     d8bea82f2fc1a51972d930b62daa75fade970d5e
Author:     Zurab Kvachadze <zurabid2016 <AT> gmail <DOT> com>
AuthorDate: Sun Feb  8 19:01:54 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 20 19:09:33 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8bea82f

nginx{,-module}.eclass: Return 0 in econf_ngx() if $1 == --help

Previously, contrary to what was written, the function exited with the
exit code of ./configure (which is 1 if --help is passed). This commit
makes the function return 0 explicitly.

Signed-off-by: Zurab Kvachadze <zurabid2016 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/nginx-module.eclass | 2 +-
 eclass/nginx.eclass        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/nginx-module.eclass b/eclass/nginx-module.eclass
index 49ccf04cacc8..0ab4a64dccb6 100644
--- a/eclass/nginx-module.eclass
+++ b/eclass/nginx-module.eclass
@@ -115,7 +115,7 @@ econf_ngx() {
                #
                # Executing this without edo gets rid of the "Failed to run" 
message.
                ./configure "$@"
-               return
+               return 0
        fi
        edo ./configure "$@"
 }

diff --git a/eclass/nginx.eclass b/eclass/nginx.eclass
index ec3320d3f573..d52d9df7b085 100644
--- a/eclass/nginx.eclass
+++ b/eclass/nginx.eclass
@@ -273,7 +273,7 @@ econf_ngx() {
                #
                # Executing this without edo gets rid of the "Failed to run" 
message.
                ./configure "$@"
-               return
+               return 0
        fi
        edo ./configure "$@"
 }

Reply via email to