* [gentoo-catalyst] stage4 glibc ebuild stomps my locale.gen
@ 2008-09-04 2:31 Peter Stuge
2008-09-04 2:37 ` Andrew Gaffney
0 siblings, 1 reply; 4+ messages in thread
From: Peter Stuge @ 2008-09-04 2:31 UTC (permalink / raw
To: gentoo-catalyst
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-catalyst] stage4 glibc ebuild stomps my locale.gen
2008-09-04 2:31 [gentoo-catalyst] stage4 glibc ebuild stomps my locale.gen Peter Stuge
@ 2008-09-04 2:37 ` Andrew Gaffney
2008-09-04 2:51 ` Peter Stuge
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Gaffney @ 2008-09-04 2:37 UTC (permalink / raw
To: gentoo-catalyst
Peter Stuge wrote:
> 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.
Yes, we've noticed. However, releng doesn't build stage4 tarballs, so we didn't
care.
> I tried to add /etc/locale.gen to stage3-x86-2008.0.tar.bz2 but no.
And how did you add a locale.gen to the stage3? You can't do it with catalyst,
since stage <=3 doesn't support an overlay, so I can only assume you unpacked
it, added the file, and repacked it, which we obviously don't support :)
--
Andrew Gaffney http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer Catalyst/Installer + x86 release coordinator
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-catalyst] stage4 glibc ebuild stomps my locale.gen
2008-09-04 2:37 ` Andrew Gaffney
@ 2008-09-04 2:51 ` Peter Stuge
2008-09-04 18:13 ` Chris Gianelloni
0 siblings, 1 reply; 4+ messages in thread
From: Peter Stuge @ 2008-09-04 2:51 UTC (permalink / raw
To: gentoo-catalyst
Andrew Gaffney wrote:
> >I think someone else should also have noticed this too.
>
> Yes, we've noticed. However, releng doesn't build stage4 tarballs,
> so we didn't care.
I care. Is b.g.o the right way to go?
> I can only assume you unpacked it, added the file, and repacked it,
Correct.
> which we obviously don't support :)
Sure. It was a somewhat desperate attempt. A workaround might be to
put a hacked glibc ebuild in my overlay, but I would like to avoid
that upkeep in the long run.
//Peter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-catalyst] stage4 glibc ebuild stomps my locale.gen
2008-09-04 2:51 ` Peter Stuge
@ 2008-09-04 18:13 ` Chris Gianelloni
0 siblings, 0 replies; 4+ messages in thread
From: Chris Gianelloni @ 2008-09-04 18:13 UTC (permalink / raw
To: gentoo-catalyst
[-- Attachment #1: Type: text/plain, Size: 761 bytes --]
On Thu, 2008-09-04 at 04:51 +0200, Peter Stuge wrote:
> Andrew Gaffney wrote:
> > >I think someone else should also have noticed this too.
> >
> > Yes, we've noticed. However, releng doesn't build stage4 tarballs,
> > so we didn't care.
>
> I care. Is b.g.o the right way to go?
Yes.
> > which we obviously don't support :)
>
> Sure. It was a somewhat desperate attempt. A workaround might be to
> put a hacked glibc ebuild in my overlay, but I would like to avoid
> that upkeep in the long run.
Well, it needs to be fixed in the glibc ebuild, rather than catalyst.
File a bug against glibc and feel free to add catalyst@gentoo.org to the
CC list, so we can watch/track the bug, also.
--
Chris Gianelloni
Developer
wolf31o2.org
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-04 18:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-04 2:31 [gentoo-catalyst] stage4 glibc ebuild stomps my locale.gen Peter Stuge
2008-09-04 2:37 ` Andrew Gaffney
2008-09-04 2:51 ` Peter Stuge
2008-09-04 18:13 ` Chris Gianelloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox