Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Makefile: do not purge locale-archive from target
@ 2014-06-18  9:23 Sven Neumann
  2014-06-22 20:27 ` Thomas Petazzoni
  2014-07-15 20:56 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Sven Neumann @ 2014-06-18  9:23 UTC (permalink / raw)
  To: buildroot

The rules to purge unwanted locales from the target also removed
the locale-archive file from /usr/lib/locale which contains the
locale definitions explicitly generated for the target.

Signed-off-by: Sven Neumann <neumann@teufel.de>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 14fca2b..d7590ef 100644
--- a/Makefile
+++ b/Makefile
@@ -516,7 +516,7 @@ LOCALE_NOPURGE = $(call qstrip,$(BR2_ENABLE_LOCALE_WHITELIST))
 
 define TARGET_PURGE_LOCALES
 	rm -f $(LOCALE_WHITELIST)
-	for i in $(LOCALE_NOPURGE); do echo $$i >> $(LOCALE_WHITELIST); done
+	for i in $(LOCALE_NOPURGE) locale-archive; do echo $$i >> $(LOCALE_WHITELIST); done
 
 	for dir in $(wildcard $(addprefix $(TARGET_DIR),/usr/share/locale /usr/share/X11/locale /usr/man /usr/share/man /usr/lib/locale)); \
 	do \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] Makefile: do not purge locale-archive from target
  2014-06-18  9:23 [Buildroot] [PATCH] Makefile: do not purge locale-archive from target Sven Neumann
@ 2014-06-22 20:27 ` Thomas Petazzoni
  2014-06-24 12:01   ` Sven Neumann
  2014-07-15 20:56 ` Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-06-22 20:27 UTC (permalink / raw)
  To: buildroot

Dear Sven Neumann,

On Wed, 18 Jun 2014 11:23:30 +0200, Sven Neumann wrote:
> The rules to purge unwanted locales from the target also removed
> the locale-archive file from /usr/lib/locale which contains the
> locale definitions explicitly generated for the target.
> 
> Signed-off-by: Sven Neumann <neumann@teufel.de>
> ---
>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index 14fca2b..d7590ef 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -516,7 +516,7 @@ LOCALE_NOPURGE = $(call qstrip,$(BR2_ENABLE_LOCALE_WHITELIST))
>  
>  define TARGET_PURGE_LOCALES
>  	rm -f $(LOCALE_WHITELIST)
> -	for i in $(LOCALE_NOPURGE); do echo $$i >> $(LOCALE_WHITELIST); done
> +	for i in $(LOCALE_NOPURGE) locale-archive; do echo $$i >> $(LOCALE_WHITELIST); done

Hum, right, but isn't 'locale-archive' an archive of many locales?
Shouldn't we get rid of the locales we don't want from this archive?

Which toolchain have you used to get a locale-archive file?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] Makefile: do not purge locale-archive from target
  2014-06-22 20:27 ` Thomas Petazzoni
@ 2014-06-24 12:01   ` Sven Neumann
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Neumann @ 2014-06-24 12:01 UTC (permalink / raw)
  To: buildroot

Hi,

On So, 2014-06-22 at 22:27 +0200, Thomas Petazzoni wrote:

> On Wed, 18 Jun 2014 11:23:30 +0200, Sven Neumann wrote:
> > The rules to purge unwanted locales from the target also removed
> > the locale-archive file from /usr/lib/locale which contains the
> > locale definitions explicitly generated for the target.
> > 
> > Signed-off-by: Sven Neumann <neumann@teufel.de>
> > ---
> >  Makefile | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/Makefile b/Makefile
> > index 14fca2b..d7590ef 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -516,7 +516,7 @@ LOCALE_NOPURGE = $(call qstrip,$(BR2_ENABLE_LOCALE_WHITELIST))
> >  
> >  define TARGET_PURGE_LOCALES
> >  	rm -f $(LOCALE_WHITELIST)
> > -	for i in $(LOCALE_NOPURGE); do echo $$i >> $(LOCALE_WHITELIST); done
> > +	for i in $(LOCALE_NOPURGE) locale-archive; do echo $$i >> $(LOCALE_WHITELIST); done
> 
> Hum, right, but isn't 'locale-archive' an archive of many locales?
> Shouldn't we get rid of the locales we don't want from this archive?

Well, as far as I can see only the locales selected by
BR2_GENERATE_LOCALE should have been generated into the archive. So I
don't think it makes sense to purge locales from this archive. It would
be possible to do this though using "locale-def --delete-from-archiv".

> Which toolchain have you used to get a locale-archive file?

glibc 2.18


Greetings,
Sven

-- 
Sven Neumann
Senior System Architect

Lautsprecher Teufel GmbH
Gewerbehof B?lowbogen, Aufgang D1
B?lowstr. 66
10783 Berlin
Germany

Direkt   +49 (0) 30 / 300 930-153
Telefon  +49 (0) 30 / 300 930-0

neumann at teufel.de

Registernummer HRB 20271 beim Amtsgericht Berlin-Charlottenburg
Gesch?ftsf?hrer: J?rgen Schneider, Edgar van Velzen
Umsatzsteuer-ID: DE136745959

www.teufel.de - www.teufelaudio.com - www.raumfeld.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] Makefile: do not purge locale-archive from target
  2014-06-18  9:23 [Buildroot] [PATCH] Makefile: do not purge locale-archive from target Sven Neumann
  2014-06-22 20:27 ` Thomas Petazzoni
@ 2014-07-15 20:56 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-07-15 20:56 UTC (permalink / raw)
  To: buildroot

Dear Sven Neumann,

On Wed, 18 Jun 2014 11:23:30 +0200, Sven Neumann wrote:
> The rules to purge unwanted locales from the target also removed
> the locale-archive file from /usr/lib/locale which contains the
> locale definitions explicitly generated for the target.
> 
> Signed-off-by: Sven Neumann <neumann@teufel.de>
> ---
>  Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-07-15 20:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-18  9:23 [Buildroot] [PATCH] Makefile: do not purge locale-archive from target Sven Neumann
2014-06-22 20:27 ` Thomas Petazzoni
2014-06-24 12:01   ` Sven Neumann
2014-07-15 20:56 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox