Merge pull request #445 from marineam/locale

fix(sys-libs/glibc): Build only en_US locale by default.
This commit is contained in:
Michael Marineau 2014-03-18 11:30:55 -07:00
commit c96c4fa514
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"