Skip to contentSkip to conversation

uclibc compilation w/ locale not supported?

Buildroot rafael2k 2 participants 4 messages May 20, 2007 – May 21, 2007

lore
Share & tools
lore

rafael2k

author
#0 lore raw

hi all,
I made a .config for my uclibc 0.9.29, but when i run 'make' inside buildroot, it changes my config to:

-UCLIBC_HAS_LOCALE=y
-# UCLIBC_PREGENERATED_LOCALE_DATA is not set
-# UCLIBC_HAS_XLOCALE is not set
+# UCLIBC_HAS_LOCALE is not set

thx,
rafael diniz

Signature · 13 lines
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Eng. da Computa??o @  Unicamp
R?dio Muda, radiolivre.org, TV Piolho, tvlivre.org, www.midiaindependente.org
Chave PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2FF86098
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070520/5a2b5787/attachment.pgp 
author
#1 lore raw

w/ this patch i got locale:

uClibc/uclibc.mk 2007-05-20 18:27:35.000000000 -0300 renamed from uClibc/uclibc.mk.orig 2007-05-20 18:17:26.000000000 -0300 +0 -1
diff -u toolchain/uClibc/uclibc.mk.orig toolchain/uClibc/uclibc.mk
@@ -189,7 +189,7 @@
        echo "# PTHREADS_DEBUG_SUPPORT is not set" >> $(UCLIBC_DIR)/.config
 endif
 ifeq ($(BR2_ENABLE_LOCALE),y)
-       

$(SED) 's,^.*UCLIBC_HAS_LOCALE.*,UCLIBC_HAS_LOCALE=y\nUCLIBC_PREGENERATED_LOCALE_DATA=y\nUCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y\nUCLIBC_HAS_XLOCALE=y\nUCLIBC_HAS_GLIBC_DIGIT_GROUPING=n\n,g' $(UCLIBC_DIR)/.config
+ $(SED) 's,^.*UCLIBC_HAS_LOCALE.*,UCLIBC_HAS_LOCALE=y,g'
$(UCLIBC_DIR)/.config
else

        $(SED) 's,^.*UCLIBC_HAS_LOCALE.*,UCLIBC_HAS_LOCALE=n,g' 

$(UCLIBC_DIR)/.config
endif

are these options really needed for locale?

thx,
rafael diniz

Em Domingo 20 Maio 2007 17:08, rafael2k escreveu:

Quoted 12 lines

hi all,
I made a .config for my uclibc 0.9.29, but when i run 'make' inside buildroot, it changes my config to:

(quoted diff) +1 -3
-UCLIBC_HAS_LOCALE=y
-# UCLIBC_PREGENERATED_LOCALE_DATA is not set
-# UCLIBC_HAS_XLOCALE is not set
+# UCLIBC_HAS_LOCALE is not set

thx,
rafael diniz

Signature · 13 lines
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Eng. da Computa??o @  Unicamp
R?dio Muda, radiolivre.org, TV Piolho, tvlivre.org, www.midiaindependente.org
Chave PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2FF86098
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070520/9773a3da/attachment.pgp 
#2 lore raw
Quoted 1 line · On Sun, May 20, 2007 at 07:27:27PM -0300, rafael2k wrote:

w/ this patch i got locale:

You did set BR2_ENABLE_LOCALE, didn't you?

author
#3 lore raw

:

Quoted 3 lines
Quoted 1 line

w/ this patch i got locale:

You did set BR2_ENABLE_LOCALE, didn't you?

yes.
I discovered the problem.
without my patch to uclibc.mk[1], look at my uclibc .config and the uclibc .config generated by buildroot:

-# UCLIBC_HAS_XLOCALE is not set
+UCLIBC_HAS_XLOCALE=y

this code cannot be correct, as I compiled the system without XLOCALE (w/ my patch):
at uclibc.mk line 191:

ifeq ($(BR2_ENABLE_LOCALE),y)

$(SED) 's,^.*UCLIBC_HAS_LOCALE.*,UCLIBC_HAS_LOCALE=y\nUCLIBC_PREGENERATE D_LOCALE_DATA=y\nUCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA=y\nUCLIBC_HAS_XLOCALE= y\nUCLIBC_HAS_GLIBC_DIGIT_GROUPING=n\n,g' $(UCLIBC_DIR)/.config else

        $(SED) 's,^.*UCLIBC_HAS_LOCALE.*,UCLIBC_HAS_LOCALE=n,g' 

$(UCLIBC_DIR)/.c
onfig
endif

[1] - http://gnuden.sarava.org/Patch-uclibcmk/Diff

thanks for greeeat tool!

<= starting one more time a full port of slack w/ uclibc

Signature · 13 lines
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Eng. da Computa??o @  Unicamp
R?dio Muda, radiolivre.org, TV Piolho, tvlivre.org, www.midiaindependente.org
Chave PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2FF86098
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070521/32314487/attachment.pgp