From: "Ludovic Courtès" <ludo@gnu.org>
To: Leo Famulari <leo@famulari.name>
Cc: guix-devel@gnu.org
Subject: Re: Frequent locales problems for new users
Date: Thu, 26 Mar 2020 13:06:43 +0100 [thread overview]
Message-ID: <87y2rn9v70.fsf@gnu.org> (raw)
In-Reply-To: <20200321194332.GA21034@jasmine.lan> (Leo Famulari's message of "Sat, 21 Mar 2020 15:43:32 -0400")
Hi,
Leo Famulari <leo@famulari.name> skribis:
> On Sat, Mar 21, 2020 at 04:37:05PM +0100, Ludovic Courtès 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’t 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 ‘git’.)
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’.
next prev parent reply other threads:[~2020-03-26 12:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-17 20:28 Frequent locales problems for new users Leo Famulari
2020-03-18 7:47 ` Efraim Flashner
2020-03-18 8:12 ` Thorsten Wilms
2020-03-18 16:22 ` Tobias Geerinckx-Rice
2020-03-18 15:07 ` Ludovic Courtès
2020-03-18 18:36 ` Leo Famulari
2020-03-21 15:37 ` Ludovic Courtès
2020-03-21 18:02 ` Gábor Boskovits
2020-03-21 19:43 ` Leo Famulari
2020-03-21 20:14 ` Leo Famulari
2020-03-26 12:06 ` Ludovic Courtès [this message]
2020-07-01 18:02 ` Vagrant Cascadian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y2rn9v70.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=leo@famulari.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).