summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-16 12:15:18 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-16 14:26:24 -0400
commitce18a6065c124e7509d90b804fe9bc0f570d355b (patch)
tree384de6e13e794577a2b2d1d4f403f39cbbf3b1d1 /sys-libs/glibc
parentdev-libs/elfutils: version bump to 0.164 (diff)
downloadgentoo-ce18a6065c124e7509d90b804fe9bc0f570d355b.tar.gz
gentoo-ce18a6065c124e7509d90b804fe9bc0f570d355b.tar.bz2
gentoo-ce18a6065c124e7509d90b804fe9bc0f570d355b.zip
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.
Diffstat (limited to 'sys-libs/glibc')
-rw-r--r--sys-libs/glibc/files/eblits/pkg_preinst.eblit3
1 files changed, 3 insertions, 0 deletions
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