[Libreoffice] [PATCH] set RPATH correctly in the internal ICU
Norbert Thiebaud
nthiebaud at gmail.com
Fri Jan 7 10:22:07 PST 2011
On Thu, Jan 6, 2011 at 3:47 AM, Michael Meeks <michael.meeks at novell.com> wrote:
>
> On Wed, 2011-01-05 at 20:13 +0000, Caolán McNamara wrote:
>> On Wed, 2011-01-05 at 20:22 +0100, Petr Mladek wrote:
>> > our build service found broken RPATH in libicudata.so.42.1
>>
>> That libicudata is the biggest nuisance, causes all sorts of problems on
>> different platforms. Rather an odd use of an elf file as data storage
>> IIRC and manually created by icu rather than by the normal compiler
>> +linker chain.
>
> It is also huge; the biggest single files we have in our install (on
> Windows at least):
>
> zip size/kb size/kb compression name
> 5632 13914 40% icudt40.dll
>
> Which makes me wonder: do we really need everything that is in that
> beast ? pmap seems to suggest we use 84K out of the 13Mb on Linux:
Michael: icudata contains, among other things all the supported
utf16<->other-codepage convertion.
If your locale is utf8 or iso8859-1/15 (which is most likely in your case)
then sure you just need one or two of these conversion table... if any
at all (some convertion like utf8<->utf16 are algorithmic)
libicudata also contains stuff about collation and locales...
There are ways to use your own, or to use a directory of individual
ressources files ( http://userguide.icu-project.org/icudata ) . but
then you'd have to ship the resource file in text form instead (which
might compress better)
either way libicudata is big, but there is not that much redundancy in
it. it just covert and insanely large number of code page (
http://source.icu-project.org/repos/icu/icu/trunk/source/data/mappings/convrtrs.txt
) and locales. if you start stripping stuff out, you will reduce the
functionality for people using more 'exotic' locale (which where they
live may not be exotic at all :-) )
Norbert
(Note: The above is based on memory of work I did 6-7 years ago on
icu... things may have changed since version 2.4 :-) )
>
> b48de000 13588K 84K 84K 0K 0K
> r--p /data/opt/OOInstall/basis3.3/program/libicudata.so.40.1
>
> Which makes it rather a good target for dropping from the pagein-common
> map I suspect; just commit that fix; but it'd be great to shrink our
> install and download size by having a dig at exactly what is and is not
> used in libicudata; perhaps an easy hack to add ?
>
> HTH,
>
> Michael.
>
> --
> michael.meeks at novell.com <><, Pseudo Engineer, itinerant idiot
>
>
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libreoffice
>
More information about the LibreOffice
mailing list