From ce18a6065c124e7509d90b804fe9bc0f570d355b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 16 Oct 2015 12:15:18 -0400 Subject: [PATCH] sys-libs/glibc: ignore locale settings in preinst test When upgrading to a new version, the localedata format might have changed, which means the test programs may crash inside of glibc when trying to parse it. Since this test is not for verifying localedata (which we'll be rebuilding anyways), clear the active locale settings. --- sys-libs/glibc/files/eblits/pkg_preinst.eblit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys-libs/glibc/files/eblits/pkg_preinst.eblit b/sys-libs/glibc/files/eblits/pkg_preinst.eblit index 9160aaf8b78d..cb8f461b0d12 100644 --- a/sys-libs/glibc/files/eblits/pkg_preinst.eblit +++ b/sys-libs/glibc/files/eblits/pkg_preinst.eblit @@ -29,6 +29,9 @@ glibc_sanity_check() { *"statically linked"*) continue;; *"ASCII text"*) continue;; esac + # We need to clear the locale settings as the upgrade might want + # incompatible locale data. This test is not for verifying that. + LC_ALL=C \ ./ld-*.so --library-path . ${x} > /dev/null \ || die "simple run test (${x}) failed" done -- 2.26.2