From 4f4688ebfaada63f1e5f6a108038c98ed140b082 Mon Sep 17 00:00:00 2001 From: Mike Pagano Date: Mon, 18 Oct 2021 15:14:48 -0400 Subject: 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 --- eclass/linux-info.eclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eclass') 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 -- cgit v1.2.3-65-gdbad