commit:     37fd6919ed868aeb9f45fa0d908769fc250ae90f
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  5 14:36:57 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Mar  5 14:36:57 2020 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=37fd6919

genkernel: don't filter MAKEOPTS environment variable

Since commit 2c91f07c4a459efb6a8fbc11ec2525cc3020b96f we are filtering
any already set environment variable named like a genkernel option to
avoid clashing with default values.

However, MAKEOPTS is a special variable and it's common in Gentoo
that tools will honor this environment variable.

This commit will change genkernel to no longer filter an already
set MAKEOPTS environment variable.

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 genkernel | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/genkernel b/genkernel
index a2c358d..68ce1a9 100755
--- a/genkernel
+++ b/genkernel
@@ -42,6 +42,11 @@ then
 
        for GK_SETTING in "${GK_SETTINGS[@]}"
        do
+               if [[ "${GK_SETTING}" == "MAKEOPTS" ]]
+               then
+                       continue
+               fi
+
                for var_to_unset in ${GK_SETTING} CMD_${GK_SETTING}
                do
                        if [ -n "${!var_to_unset}" ]

Reply via email to