diff options
author | Mike Pagano <mpagano@gentoo.org> | 2021-10-18 15:14:48 -0400 |
---|---|---|
committer | Mike Pagano <mpagano@gentoo.org> | 2021-10-18 15:14:48 -0400 |
commit | 4f4688ebfaada63f1e5f6a108038c98ed140b082 (patch) | |
tree | e084ad23adedb276bd1c5975acd3d22810d181cd /eclass | |
parent | sys-apps/systemd: replace CHECKPOINT_RESTORE with KCMP (diff) | |
download | gentoo-4f4688ebfaada63f1e5f6a108038c98ed140b082.tar.gz gentoo-4f4688ebfaada63f1e5f6a108038c98ed140b082.tar.bz2 gentoo-4f4688ebfaada63f1e5f6a108038c98ed140b082.zip |
linux-info.eclass: add --no-print-directory to emake
Thanks to Jocelyn Mayer for the report and the patch.
When MAKEOPTS contains '-w' or '--print-directory',
getfilevar echoed value contains make: Entering directory
'xxx' and make: Leaving directory 'xxx' which result in
a wrong multiline version string thus making kernel
versions comparisons always fail.
Closes: https://bugs.gentoo.org/816888
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/linux-info.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index 9eae5ad589bb..568f7a1a2832 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -208,7 +208,7 @@ getfilevar() { # Pass dot-config=0 to avoid the config check in kernels prior to 5.4. [[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; } echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \ - nonfatal emake -C "${basedname}" M="${T}" dot-config=0 need-config= ${BUILD_FIXES} -s -f - 2>/dev/null + nonfatal emake -C "${basedname}" --no-print-directory M="${T}" dot-config=0 need-config= ${BUILD_FIXES} -s -f - 2>/dev/null ARCH=${myARCH} fi |