Hello, am new on this list but have been using catalyst a few years
to build x86 stage4 systems. Lovely tool.
glibc ebuilds insist on generating all locales. I find this quite
annoying because I do not want them and it takes a lot of time. I
find no relevant bug on b.g.o and want to check with you that I'm not
just doing something silly. I think someone else should also have
noticed this too.
I tried to add /etc/locale.gen to stage3-x86-2008.0.tar.bz2 but no.
--8<-- glibc-2.6.1.ebuild
pkg_preinst() {
..
# Shouldnt need to keep this updated
[[ -e ${ROOT}/etc/locale.gen ]] && rm -f "${D}"/etc/locale.gen
..
}
pkg_postinst() {
..
if ! is_crosscompile && [[ ${ROOT} == "/" ]] ; then
..
# if the host locales.gen contains no entries, we'll
# install everything
local locale_list="${ROOT}etc/locale.gen"
if [[ -z $(locale-gen --list --config "${locale_list}") ]] ;
then
ewarn "Generating all locales; edit /etc/locale.gen to
save time/space"
..
}
-->8--
It seems I can not win. Should I file a bug against the glibc ebuild
or am I just doing something wrong? The 2.8 ebuild still looks like
the above.
--8<-- running catalyst -f stage4.spec
>>> Emerging (36 of 66) sys-libs/glibc-2.6.1 to /
* >>> SetUID: [chmod go-r] /usr/lib/misc/glibc/pt_chown ... [ ok ]
sed: can't read /etc/locale.gen: No such file or directory
* Generating all locales; edit /etc/locale.gen to save time/space
* Generating locale-archive: forcing # of jobs to 1
* Generating 381 locales (this might take a while) with 1 jobs
-->8--
//Peter