fix(sys-libs/glibc): Build only en_US locale by default.

This is only applicable to building the SDK (boards ship with only the
built-in C and POSIX locales). The SDK chroot sets en_US by default so
there is no reason to waste time building other locales for the tarball.
This commit is contained in:
Michael Marineau 2014-03-18 10:44:25 -07:00
parent f58115c31f
commit b79fcf4542
3 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- extra/locale/locale.gen.orig 2014-03-18 10:38:23.993988978 -0700
+++ extra/locale/locale.gen 2014-03-18 10:38:38.140049907 -0700
@@ -15,8 +15,8 @@
# rebuilt for you. After updating this file, you can simply run `locale-gen`
# yourself instead of re-emerging glibc.
-#en_US ISO-8859-1
-#en_US.UTF-8 UTF-8
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP

View File

@ -156,6 +156,9 @@ eblit-src_unpack-pre() {
}
eblit-src_unpack-post() {
cd "${WORKDIR}"
epatch "${FILESDIR}"/locale-default-en_US.patch
if use hardened ; then
cd "${S}"
einfo "Patching to get working PIE binaries on PIE (hardened) platforms"