From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Frequent locales problems for new users Date: Thu, 26 Mar 2020 13:06:43 +0100 Message-ID: <87y2rn9v70.fsf@gnu.org> References: <20200317202843.GA18844@jasmine.lan> <87eetp8zx1.fsf@gnu.org> <20200318183622.GA25087@jasmine.lan> <87pnd51zz2.fsf@gnu.org> <20200321194332.GA21034@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:40346) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHRHa-0003yU-8n for guix-devel@gnu.org; Thu, 26 Mar 2020 08:06:47 -0400 In-Reply-To: <20200321194332.GA21034@jasmine.lan> (Leo Famulari's message of "Sat, 21 Mar 2020 15:43:32 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Leo Famulari Cc: guix-devel@gnu.org Hi, Leo Famulari skribis: > On Sat, Mar 21, 2020 at 04:37:05PM +0100, Ludovic Court=C3=A8s wrote: >> Thoughts? How do other distros deal with this? Are we missing some >> trick to compress locale data? > > I noticed that downloading glibc-locales, it's 10.8 MiB. On disk, the > store item is ~220 MiB. I'm not sure how guix size calculates 917 MiB. Oh, this is due to hard links: nars don=E2=80=99t support hard links, so the same thing is repeated several times. --8<---------------cut here---------------start------------->8--- $ guix archive --export glibc-locales |wc -c 961328272 $ du -hsl $(guix build glibc-locales) 939M /gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29 $ du -hs $(guix build glibc-locales) 220M /gnu/store/03nvilh2x4z07dxv7h13gh986vvgpnsf-glibc-locales-2.29 --8<---------------cut here---------------end--------------->8--- (It does mean that we should replace hard links with symlinks, like we do for =E2=80=98git=E2=80=99.) Doing that with the full set of UTF-8 locales I mentioned in my previous message, I see: --8<---------------cut here---------------start------------->8--- $ du -hsl /gnu/store/p0knl9ggxk91x87ww702g2x78jxy1vgf-glibc-utf8-locales-2.= 29 870M /gnu/store/p0knl9ggxk91x87ww702g2x78jxy1vgf-glibc-utf8-locales-2.29 $ du -hs /gnu/store/p0knl9ggxk91x87ww702g2x78jxy1vgf-glibc-utf8-locales-2.29 193M /gnu/store/p0knl9ggxk91x87ww702g2x78jxy1vgf-glibc-utf8-locales-2.29 --8<---------------cut here---------------end--------------->8--- To compare to: --8<---------------cut here---------------start------------->8--- $ du -hs $(guix build glibc-utf8-locales) 6.1M /gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29 $ du -hsl $(guix build glibc-utf8-locales) 15M /gnu/store/n79cf8bvy3k96gjk1rf18d36w40lkwlr-glibc-utf8-locales-2.29 --8<---------------cut here---------------end--------------->8--- Thanks, Ludo=E2=80=99.