[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Package splitting



Juho =?iso-8859-1?Q?Östman?= <jostman@myrealbox.com> writes:

> The package locales takes about 2 MB in a package and 11 MB
> uncompressed. It contains dozens of different locales but most
> people use only one of them. I think something should be done.

One problem is that there are a lot of duplicate files in there
(that's why it compresses so good). For example, the following files
are all the same:

/usr/share/locale/af_ZA/LC_CTYPE
/usr/share/locale/ca_ES/LC_CTYPE
/usr/share/locale/da_DK/LC_CTYPE
/usr/share/locale/de_AT/LC_CTYPE
/usr/share/locale/de_BE/LC_CTYPE
/usr/share/locale/de_CH/LC_CTYPE
/usr/share/locale/de_DE/LC_CTYPE
/usr/share/locale/de_LU/LC_CTYPE
/usr/share/locale/en_AU/LC_CTYPE
/usr/share/locale/en_CA/LC_CTYPE
/usr/share/locale/en_DK/LC_CTYPE
/usr/share/locale/en_GB/LC_CTYPE
/usr/share/locale/en_US/LC_CTYPE
/usr/share/locale/es_AR/LC_CTYPE
/usr/share/locale/es_ES/LC_CTYPE
/usr/share/locale/et_EE/LC_CTYPE
/usr/share/locale/eu_ES/LC_CTYPE
/usr/share/locale/fi_FI/LC_CTYPE
/usr/share/locale/fo_FO/LC_CTYPE
/usr/share/locale/fr_BE/LC_CTYPE
/usr/share/locale/fr_CA/LC_CTYPE
/usr/share/locale/fr_CH/LC_CTYPE
/usr/share/locale/fr_FR/LC_CTYPE
/usr/share/locale/fr_LU/LC_CTYPE
/usr/share/locale/ga_IE/LC_CTYPE
/usr/share/locale/in_ID/LC_CTYPE
/usr/share/locale/is_IS/LC_CTYPE
/usr/share/locale/it_CH/LC_CTYPE
/usr/share/locale/it_IT/LC_CTYPE
/usr/share/locale/kl_GL/LC_CTYPE
/usr/share/locale/nl_NL/LC_CTYPE
/usr/share/locale/no_NO/LC_CTYPE
/usr/share/locale/pt_BR/LC_CTYPE
/usr/share/locale/pt_PT/LC_CTYPE
/usr/share/locale/sv_FI/LC_CTYPE
/usr/share/locale/sv_SE/LC_CTYPE

If these were links instead, you'd save 3 MB of storage. I guess there
are other duplicate files around.

> I don't know if it's completely too difficult to keep every main
> locale (en_*, de_* etc.) in its own package. I think that would be
> the best solution.

That's also possible. OTOH, you couldn't exploit the redundancy shown
above as easily with lotsa small packages.

-- 
Robbe



Reply to: