commit: ce18a6065c124e7509d90b804fe9bc0f570d355b
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 16 16:15:18 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Oct 16 18:26:24 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce18a606
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 9160aaf..cb8f461 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