Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 14 Sep 2021 23:48:45
Message-Id: 1631663285.316e457b8f1f02304d28c75e6498c6664e000f68.floppym@gentoo
1 commit: 316e457b8f1f02304d28c75e6498c6664e000f68
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 13 16:24:31 2021 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 14 23:48:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=316e457b
7
8 linux-info.eclass: getfilevar: pass dot-config=0 to make
9
10 This disables the kernel config check for versions prior to 5.4.
11
12 Closes: https://bugs.gentoo.org/811726
13 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
14
15 eclass/linux-info.eclass | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18 diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
19 index 97f7b5c06a9..9eae5ad589b 100644
20 --- a/eclass/linux-info.eclass
21 +++ b/eclass/linux-info.eclass
22 @@ -205,9 +205,10 @@ getfilevar() {
23
24 # We use nonfatal because we want the caller to take care of things #373151
25 # Pass need-config= to make to avoid config check in kernel Makefile.
26 + # Pass dot-config=0 to avoid the config check in kernels prior to 5.4.
27 [[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; }
28 echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \
29 - nonfatal emake -C "${basedname}" M="${T}" need-config= ${BUILD_FIXES} -s -f - 2>/dev/null
30 + nonfatal emake -C "${basedname}" M="${T}" dot-config=0 need-config= ${BUILD_FIXES} -s -f - 2>/dev/null
31
32 ARCH=${myARCH}
33 fi