switch locale-gen to ARCHIVE=yes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
langpack-locales (Ubuntu) |
Fix Released
|
Low
|
Martin Pitt | ||
Maverick |
Fix Released
|
Low
|
Martin Pitt |
Bug Description
<pitti> cjwatson: I think we can; it'll increase the time to build/remove locales, but that's rather insignificant
<pitti> cjwatson: I actually did some boot charts with locale-archive, but I didn't get any measurable difference
<cjwatson> locale build time is a bit of a concern on low-memory systems because localedef is so memory-hungry
<pitti> shoudl just be a matter of setting ARCHIVE=yes in /usr/sbin/
<cjwatson> what sort of increase are we talking about? just running 'localedef --add-to-archive /usr/lib/locale/*' doesn't seem to take too long here
<pitti> and cleaning up the unarchived ones in postinst
<cjwatson> I was wondering if there were compatibility implications; I seem to recall the odd bug when the broken-out dirs were missing
<pitti> cjwatson: ah, good; removing a locale used to require rebuilding all other ones, but as I said that should not be a common use case
<pitti> cjwatson: I have that running in a VM for some days, but I didn't test it extensively; just standard desktop bits
<pitti> cjwatson: so perhaps we should switch it early in maverick for testing?
<cjwatson> --delete-
<pitti> cool
<pitti> seems that didn't exist back then (in belocs age)
<cjwatson> I suspect it doesn't make a huge boot difference because everything is LANG=C
<cjwatson> it's only once you reach a session that it starts making any difference at all
<pitti> the desktop bits do use the locale, though
<pitti> right
<pitti> and I didn't notice any difference there
<cjwatson> should we have *only* locale-archive, or the broken-out dirs as well?
<pitti> but still, it's fewer syscalls
<pitti> cjwatson: they do take a nontrivial amount of space, so I'd vote for either-or, not both
<pitti> Debian has used locale-archive only forever, I think
<pitti> (and Fedora, too)
<cjwatson> ok, if you're comfortable with either-or then I am too
Related branches
Changed in langpack-locales (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Martin Pitt (pitti) |
milestone: | none → maverick-alpha-2 |
Changed in langpack-locales (Ubuntu Maverick): | |
importance: | Undecided → Low |
Changed in langpack-locales (Ubuntu Maverick): | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
This bug was fixed in the package langpack-locales - 2.11+git20100304-5
--------------- 04-5) maverick; urgency=low
langpack-locales (2.11+git201003
* Switch to using a locale archive (LP: #591676): local/locale- gen: Set ARCHIVE=yes by default. locales. postinst: Clean up the non-archived locales on upgrades local/remove- language- pack: Add case for removing locales from an
- debian/
- debian/
to this version right before regenerating them.
- debian/
archive.
-- Martin Pitt <email address hidden> Mon, 14 Jun 2010 13:33:49 +0200