Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Generation of locales
@ 2019-01-04 10:38 WK
  2019-06-23 18:37 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: WK @ 2019-01-04 10:38 UTC (permalink / raw)
  To: buildroot

Hello,

I noticed that compiling buildroot a few times without "make clean" the 
size of locale-archive file in $(TARGET_DIR)/usr/lib/locale is increasing.

The strange thing is that it occures about three times and then it stops 
increasing.


My solution for this issue is following:

--- Makefile	2019-01-04 10:03:37.136971246 +0100
+++ Makefile	2019-01-04 10:39:15.298119675 +0100
@@ -647,6 +647,7 @@ PACKAGES += host-localedef

  define GENERATE_GLIBC_LOCALES
  	$(Q)mkdir -p $(TARGET_DIR)/usr/lib/locale/
+	$(Q)rm -f $(TARGET_DIR)/usr/lib/locale/locale-archive
  	$(Q)for locale in $(GLIBC_GENERATE_LOCALES) ; do \
  		inputfile=`echo $${locale} | cut -f1 -d'.'` ; \
  		charmap=`echo $${locale} | cut -f2 -d'.' -s` ; \



Is that patch proper as a fix for this problem? Or maybe there is better 
solution?


Kind Regards,
Witold Kowolik

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

end of thread, other threads:[~2019-06-23 18:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-04 10:38 [Buildroot] Generation of locales WK
2019-06-23 18:37 ` Thomas Petazzoni

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