sys-libs/glibc: ignore locale settings in preinst test
authorMike Frysinger <vapier@gentoo.org>
Fri, 16 Oct 2015 16:15:18 +0000 (12:15 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 16 Oct 2015 18:26:24 +0000 (14:26 -0400)
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

index 9160aaf8b78d7c2fd79a51b0e155d8f33f3ea1de..cb8f461b0d12c37bc194f0e0bdeb99a1a291db58 100644 (file)
@@ -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