[Bug 727229] New: unused locales in glibc-locale (too much disk space)
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c0 Summary: unused locales in glibc-locale (too much disk space) Classification: openSUSE Product: openSUSE 12.1 Version: RC 1 Platform: i586 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: pavel.gretchishkin@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Fresh installation from KDE live CD (only english, no additional languages), after installation added one additional language (ru):
du -hs /usr/lib/locale 459M /usr/lib/locale
it's about 0.5 Gb when all necessary locales about 5 Mb:
du -hs /usr/lib/locale/en_US* 288K /usr/lib/locale/en_US 292K /usr/lib/locale/en_US.iso885915 1.5M /usr/lib/locale/en_US.utf8
du -hs /usr/lib/locale/ru_RU* 288K /usr/lib/locale/ru_RU 288K /usr/lib/locale/ru_RU.koi8r 1.5M /usr/lib/locale/ru_RU.utf8
I checked glibc.spec and there is no %lang flags at all. I think locale support should be modular. Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c1 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |aj@suse.com |ovo.novell.com | Severity|Normal |Enhancement --- Comment #1 from Andreas Jaeger <aj@suse.com> 2011-10-30 06:30:29 UTC --- Let's discuss this for 12.2, for 12.1 I'm not going to make such a change. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c2 --- Comment #2 from Andreas Jaeger <aj@suse.com> 2011-11-14 08:50:18 UTC --- Btw glibc uses the %lang flags: %{find_lang} libc %files locale -f libc.lang -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c3 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |coolo@suse.com, | |kukuk@suse.com InfoProvider| |kukuk@suse.com --- Comment #3 from Andreas Jaeger <aj@suse.com> 2011-11-14 15:04:04 UTC --- Coolo, Thorsten, we can split up a gconv package and also process the locale packages as part of the build-lang packages so that only lang packages for a certain region will get installed. But currently this works only for a few major languages, so I'm not sure whether we really should do it. What do you suggest? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c4 Thorsten Kukuk <kukuk@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|kukuk@suse.com | --- Comment #4 from Thorsten Kukuk <kukuk@suse.com> 2011-11-14 15:21:41 UTC --- (In reply to comment #3)
Coolo, Thorsten,
we can split up a gconv package and also process the locale packages as part of the build-lang packages so that only lang packages for a certain region will get installed.
But currently this works only for a few major languages, so I'm not sure whether we really should do it.
What do you suggest?
Such requests are coming up very regular. Everytime we analyzed it, we rejected the idea of a split: you will waste more space than currently, because people always ignore hardlinks when they count diskspace. So my suggestion is the same as the last times: I wouldn't change anything. The only problem seems to be if people work with filesystems which don't know hardlinks, but that's a special other problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c5 --- Comment #5 from Andreas Jaeger <aj@suse.com> 2011-11-14 15:48:13 UTC --- You're right, there are indeed lots of hardlinks, e.g.: aj@byrd:/usr/lib/locale/zu_ZA> l total 300 drwxr-xr-x 3 root root 4096 Nov 3 13:09 ./ drwxr-xr-x 468 root root 16384 Oct 29 06:22 ../ -rw-r--r-- 1 root root 163 Oct 29 06:21 LC_ADDRESS -rw-r--r-- 61 root root 19459 Oct 29 06:13 LC_COLLATE -rw-r--r-- 73 root root 221644 Oct 29 06:13 LC_CTYPE -rw-r--r-- 1 root root 435 Oct 29 06:21 LC_IDENTIFICATION -rw-r--r-- 81 root root 28 Oct 29 06:13 LC_MEASUREMENT drwxr-xr-x 2 root root 4096 Nov 3 13:09 LC_MESSAGES/ -rw-r--r-- 5 root root 291 Oct 29 06:13 LC_MONETARY -rw-r--r-- 1 root root 93 Oct 29 06:21 LC_NAME -rw-r--r-- 22 root root 59 Oct 29 06:13 LC_NUMERIC -rw-r--r-- 68 root root 39 Oct 29 06:13 LC_PAPER -rw-r--r-- 5 root root 63 Oct 29 06:13 LC_TELEPHONE -rw-r--r-- 1 root root 2599 Oct 29 06:21 LC_TIME So, on my system: du -hs /usr/lib/locale/ 114M /usr/lib/locale/ The question is why the original reporter has 500 MB instead of my 114 MB? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c6 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #6 from Andreas Jaeger <aj@suse.com> 2011-11-15 08:12:45 UTC --- Just did a LiveCD KDE install - and have there 114 MB as well with lots of hard links. Let's not make these changes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c7 --- Comment #7 from Stephan Kulow <coolo@suse.com> 2011-11-16 10:32:41 CET --- 114MB for locales does not worry you? for firefox we split translations and translations-common. If I remove all locales we do not support by means of having it in filesystem's /usr/share/locale, I end up with 64MB. The rest would be in some glibc-locale-extra package and I don't care if it's takes another 80MB, because the locales in there we do not support. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c8 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX | --- Comment #8 from Andreas Jaeger <aj@suse.com> 2011-11-16 12:42:46 UTC --- Interestign idea, let's try this... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=727229 https://bugzilla.novell.com/show_bug.cgi?id=727229#c9 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX --- Comment #9 from Andreas Jaeger <aj@suse.com> 2011-11-18 12:53:40 UTC --- The locale data is used to support countries and languages spoken in those - and is also needed to support the gconv interface which allows conversation between character sets. Removing some locales might break some programs in very subtile ways since they expect the standard locales. We created in the past some extra locales via a patch, I checked this patch now and remove most of the entries since those are now duplicates but this only results in a minor saving. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com