]> git.wh0rd.org - patches.git/blame - glibc-locale-gen-src-install.patch
more random patches. who knows.
[patches.git] / glibc-locale-gen-src-install.patch
CommitLineData
5e993f12 1--- glibc-2.5.ebuild 27 Jan 2007 02:21:17 -0000 1.22
2+++ glibc-2.5.ebuild 29 Jan 2007 07:31:55 -0000
3@@ -468,6 +468,13 @@ toolchain-glibc_src_install() {
4 # creation of the "factory" symlink in pkg_postinst().
5 rm -f "${D}"/etc/localtime
6
7+ # Generate all locales if this is a native build as locale generation
8+ if [[ ${CBUILD} == ${CHOST} ]] ; then
9+ local x jobs
10+ for x in ${MAKEOPTS} ; do [[ ${x} == -j* ]] && jobs=${x#-j} ; done
11+ "${D}"/usr/sbin/locale-gen -j ${jobs:-1} --all --destdir "${D}"
12+ fi
13+
14 # simple test to make sure our new glibc isnt completely broken.
15 # for now, skip the multilib scenario. also make sure we don't
16 # test with statically built binaries since they will fail.
17@@ -544,7 +551,7 @@ toolchain-glibc_pkg_postinst() {
18 fi
19 local x jobs
20 for x in ${MAKEOPTS} ; do [[ ${x} == -j* ]] && jobs=${x#-j} ; done
21- locale-gen -j ${jobs:-1} --config "${locale_list}"
22+ locale-gen -j ${jobs:-1} --update --config "${locale_list}"
23 fi
24
25 echo