how to reduce the size of /usr/share/i18n data?

Tijl Coosemans tijl at coosemans.org
Thu Nov 3 11:57:38 UTC 2016


On Thu, 3 Nov 2016 15:48:09 +0800 Julian Elischer <julian at freebsd.org> wrote:
> On 1/11/2016 7:11 PM, Julian Elischer wrote:
>> 01.11.2016 17:53, Julian Elischer пишет:  
>>> there are a number of packages that want to link with or use that 
>>> data, and you can't always disable it, but it's very very big 
>>> (38MB?), especially in the context of an appliance that doesn't 
>>> really need it at all.
>>>
>>>
>>> If anyone has a procedure to follow to put that onto a diet, maybe 
>>> just as a stub then I'm all ears.  
>
> So I am to take it that no-one has any idea how this stuff works and 
> how to stub it out?

/usr/share/i18n is only used by iconv(3).  If you don't need that
function just add WITHOUT_ICONV to src.conf.  If you do need it then you
can remove all the subdirectories of character sets you never convert
to/from.  The easiest is probably to modify the SUBDIR variable in
src/share/i18n/csmapper/Makefile and src/share/i18n/esdb/Makefile.


More information about the freebsd-current mailing list