conftest.sh in 440.* expects to find "$file: No such file or directory"
in compile test output for kernel headers, but with LC_ALL set, its
translations will not trigger that, resulting in false positives for
certain headers where the test intended to rule out false negatives.
Fix this by setting the default locale in conftest.sh.
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Fixes: https://bugs.gentoo.org/698238
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
--- /dev/null
+--- a/kernel/conftest.sh
++++ b/kernel/conftest.sh
+@@ -6,6 +6,10 @@
+ SCRIPTDIR=`dirname $0`
+ cd $SCRIPTDIR
+
++# translate_and_compile_header_files() expects the default locale
++# https://bugs.gentoo.org/698238
++export LC_ALL=C
++
+ CC="$1"
+ ARCH=$2
+ ISYSTEM=`$CC -print-file-name=include 2> /dev/null`
"
QA_PREBUILT="opt/* usr/lib*"
S=${WORKDIR}/
+PATCHES=(
+ "${FILESDIR}"/${PN}-440.26-locale.patch
+)
nvidia_drivers_versions_check() {
if use amd64 && has_multilib_profile && \