From owner-freebsd-hackers@freebsd.org Thu Nov 3 11:57:38 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC4B0C2B51F; Thu, 3 Nov 2016 11:57:38 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay109.isp.belgacom.be (mailrelay109.isp.belgacom.be [195.238.20.136]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8595A1894; Thu, 3 Nov 2016 11:57:35 +0000 (UTC) (envelope-from tijl@coosemans.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2B9BQBCJRtY/1QiyVBdGwEBAQMBAQEJA?= =?us-ascii?q?QEBgzABAQEBAR+BVKQ2lk+GIgKCI0QQAQIBAQEBAQEBYiiEYgEBBCMzIxAJAhg?= =?us-ascii?q?CAgUhAgIPKh4GE4hakB6dP40DAQEBAQYBAQEBI4EJiguER4MEglwFmiCQMnKPI?= =?us-ascii?q?40dhAQ1IGuFID00h3oBAQE?= Received: from 84.34-201-80.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([80.201.34.84]) by relay.skynet.be with ESMTP; 03 Nov 2016 12:56:22 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id uA3BuKTo060387; Thu, 3 Nov 2016 12:56:21 +0100 (CET) (envelope-from tijl@coosemans.org) Date: Thu, 3 Nov 2016 12:56:18 +0100 From: Tijl Coosemans To: Julian Elischer Cc: freebsd-current , freebsd Subject: Re: how to reduce the size of /usr/share/i18n data? Message-ID: <20161103125618.204ee7d3@kalimero.tijl.coosemans.org> In-Reply-To: References: <58187573.7020402@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2016 11:57:39 -0000 On Thu, 3 Nov 2016 15:48:09 +0800 Julian Elischer wrot= e: > On 1/11/2016 7:11 PM, Julian Elischer wrote: >> 01.11.2016 17:53, Julian Elischer =D0=BF=D0=B8=D1=88=D0=B5=D1=82: =20 >>> there are a number of packages that want to link with or use that=20 >>> data, and you can't always disable it, but it's very very big=20 >>> (38MB?), especially in the context of an appliance that doesn't=20 >>> really need it at all. >>> >>> >>> If anyone has a procedure to follow to put that onto a diet, maybe=20 >>> just as a stub then I'm all ears. =20 > > So I am to take it that no-one has any idea how this stuff works and=20 > 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.