All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] toolchain: purge locales by default
Date: Wed,  3 Aug 2016 00:19:38 +0200	[thread overview]
Message-ID: <1470176380-11851-1-git-send-email-thomas.petazzoni@free-electrons.com> (raw)

Our current default is to keep all locales installed in
/usr/share/locale/. However, in practice, those locales take up a
significant amount of space, and most users do not need
locales. Therefore, it makes more sense to default to purging locales,
in order to keep only a few useful ones rather than keeping them all.

It helps in providing a small filesystem size by default, and still
allows advanced users who really need locales to tune their
configuration.

As an example, a very basic system with just util-linux enabled (not
even Busybox) weights 11 MB, including 6.4 MB of locales. With this new
default, the generated system is only 4.2 MB.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 toolchain/toolchain-common.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/toolchain/toolchain-common.in b/toolchain/toolchain-common.in
index ff667c0..dae34ab 100644
--- a/toolchain/toolchain-common.in
+++ b/toolchain/toolchain-common.in
@@ -44,6 +44,7 @@ config BR2_TOOLCHAIN_SUPPORTS_PIE
 
 config BR2_ENABLE_LOCALE_PURGE
 	bool "Purge unwanted locales"
+	default y
 	help
 	  Explicitly specify what locales to install on target. If N
 	  then all locales supported by packages are installed.
-- 
2.7.4

             reply	other threads:[~2016-08-02 22:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-02 22:19 Thomas Petazzoni [this message]
2016-08-02 22:19 ` [Buildroot] [PATCH 2/3] toolchain: reduce the list of locales to keep by default Thomas Petazzoni
2016-08-03 19:18   ` Peter Korsgaard
2016-08-02 22:19 ` [Buildroot] [PATCH 3/3] system: move locale purging options to the "System configuration" menu Thomas Petazzoni
2016-08-03 19:18   ` Peter Korsgaard
2016-08-03 19:18 ` [Buildroot] [PATCH 1/3] toolchain: purge locales by default Peter Korsgaard

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470176380-11851-1-git-send-email-thomas.petazzoni@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.