switch locale-gen to ARCHIVE=yes

Bug #591676 reported by Colin Watson
6
This bug affects 1 person
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/locale-gen
<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-from-archive seems to take negligible time
<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

Martin Pitt (pitti)
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
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package langpack-locales - 2.11+git20100304-5

---------------
langpack-locales (2.11+git20100304-5) maverick; urgency=low

  * Switch to using a locale archive (LP: #591676):
    - debian/local/locale-gen: Set ARCHIVE=yes by default.
    - debian/locales.postinst: Clean up the non-archived locales on upgrades
      to this version right before regenerating them.
    - debian/local/remove-language-pack: Add case for removing locales from an
      archive.
 -- Martin Pitt <email address hidden> Mon, 14 Jun 2010 13:33:49 +0200

Changed in langpack-locales (Ubuntu Maverick):
status: In Progress → Fix Released
silvan (silvan-calarco)
Changed in langpack-locales (Ubuntu Maverick):
status: Fix Released → Fix Committed
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.