1 |
Hello, am new on this list but have been using catalyst a few years |
2 |
to build x86 stage4 systems. Lovely tool. |
3 |
|
4 |
glibc ebuilds insist on generating all locales. I find this quite |
5 |
annoying because I do not want them and it takes a lot of time. I |
6 |
find no relevant bug on b.g.o and want to check with you that I'm not |
7 |
just doing something silly. I think someone else should also have |
8 |
noticed this too. |
9 |
|
10 |
I tried to add /etc/locale.gen to stage3-x86-2008.0.tar.bz2 but no. |
11 |
|
12 |
--8<-- glibc-2.6.1.ebuild |
13 |
pkg_preinst() { |
14 |
.. |
15 |
# Shouldnt need to keep this updated |
16 |
[[ -e ${ROOT}/etc/locale.gen ]] && rm -f "${D}"/etc/locale.gen |
17 |
.. |
18 |
} |
19 |
|
20 |
pkg_postinst() { |
21 |
.. |
22 |
if ! is_crosscompile && [[ ${ROOT} == "/" ]] ; then |
23 |
.. |
24 |
# if the host locales.gen contains no entries, we'll |
25 |
# install everything |
26 |
local locale_list="${ROOT}etc/locale.gen" |
27 |
if [[ -z $(locale-gen --list --config "${locale_list}") ]] ; then |
28 |
ewarn "Generating all locales; edit /etc/locale.gen to save time/space" |
29 |
.. |
30 |
} |
31 |
-->8-- |
32 |
|
33 |
|
34 |
It seems I can not win. Should I file a bug against the glibc ebuild |
35 |
or am I just doing something wrong? The 2.8 ebuild still looks like |
36 |
the above. |
37 |
|
38 |
|
39 |
--8<-- running catalyst -f stage4.spec |
40 |
>>> Emerging (36 of 66) sys-libs/glibc-2.6.1 to / |
41 |
* >>> SetUID: [chmod go-r] /usr/lib/misc/glibc/pt_chown ... [ ok ] |
42 |
sed: can't read /etc/locale.gen: No such file or directory |
43 |
* Generating all locales; edit /etc/locale.gen to save time/space |
44 |
* Generating locale-archive: forcing # of jobs to 1 |
45 |
* Generating 381 locales (this might take a while) with 1 jobs |
46 |
-->8-- |
47 |
|
48 |
|
49 |
//Peter |