1 |
commit: 37fd6919ed868aeb9f45fa0d908769fc250ae90f |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 5 14:36:57 2020 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 5 14:36:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=37fd6919 |
7 |
|
8 |
genkernel: don't filter MAKEOPTS environment variable |
9 |
|
10 |
Since commit 2c91f07c4a459efb6a8fbc11ec2525cc3020b96f we are filtering |
11 |
any already set environment variable named like a genkernel option to |
12 |
avoid clashing with default values. |
13 |
|
14 |
However, MAKEOPTS is a special variable and it's common in Gentoo |
15 |
that tools will honor this environment variable. |
16 |
|
17 |
This commit will change genkernel to no longer filter an already |
18 |
set MAKEOPTS environment variable. |
19 |
|
20 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
21 |
|
22 |
genkernel | 5 +++++ |
23 |
1 file changed, 5 insertions(+) |
24 |
|
25 |
diff --git a/genkernel b/genkernel |
26 |
index a2c358d..68ce1a9 100755 |
27 |
--- a/genkernel |
28 |
+++ b/genkernel |
29 |
@@ -42,6 +42,11 @@ then |
30 |
|
31 |
for GK_SETTING in "${GK_SETTINGS[@]}" |
32 |
do |
33 |
+ if [[ "${GK_SETTING}" == "MAKEOPTS" ]] |
34 |
+ then |
35 |
+ continue |
36 |
+ fi |
37 |
+ |
38 |
for var_to_unset in ${GK_SETTING} CMD_${GK_SETTING} |
39 |
do |
40 |
if [ -n "${!var_to_unset}" ] |