[Bug 4592] New: USE_NLS variable has no effect for uClibc configuration when building on Fedora 6/7 host
bugzilla-daemon at amethyst.openembedded.net
bugzilla-daemon at amethyst.openembedded.net
Wed Oct 1 17:28:23 UTC 2008
http://bugs.openembedded.net/show_bug.cgi?id=4592
Summary: USE_NLS variable has no effect for uClibc
configuration when building on Fedora 6/7 host
Classification: Unclassified
Product: Openembedded
Version: Angstrom 2008.x
Platform: All
OS/Version: Linux
Status: UNCONFIRMED
Keywords: uclibc
Severity: normal
Priority: P3
Component: org.openembedded.dev
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: jin at mediatomb.cc
I am building for ARM/uclibc, Angstrom 2007.12/2008.1, so this affects both,
.dev and .stable, I would think that it may be a problem with perl on the
host system.
uclibc.inc has this line:
configmangle = 's,^KERNEL_SOURCE=.*,KERNEL_SOURCE="${KERNEL_SOURCE}",g; \
s,^KERNEL_HEADERS=.*,KERNEL_HEADERS="${KERNEL_HEADERS}",g; \
s,^RUNTIME_PREFIX=.*,RUNTIME_PREFIX="/",g; \
s,^DEVEL_PREFIX=.*,DEVEL_PREFIX="/${prefix}",g; \
s,^SHARED_LIB_LOADER_PATH=.*,SHARED_LIB_LOADER_PATH="/lib",; \
s,^SHARED_LIB_LOADER_PREFIX=.*,SHARED_LIB_LOADER_PREFIX="/lib",; \
s,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g; \
${@["s,.*UCLIBC_HAS_LOCALE.*,# UCLIBC_HAS_LOCALE is not set,;",
""][bb.data.getVar("USE_NLS", d, 1) == "yes"]}'
at a later point it gets processed with perl:
perl -i -p -e '${configmangle}' ${S}/.config
In my case (Fedora 6 and Fedora 7 hosts) it has no effect, meaning that even if
I set USE_NLS=yes - the UCLIBC_HAS_LOCALE setting is never set to "y" in
.config of uClibc.
I did try various things, the only solution that worked for me was to do it
with sed:
if test "x${@'%s' % bb.data.getVar('USE_NLS', d, 1)}" = "xyes"; then
sed -i -e s:'.*UCLIBC_HAS_LOCALE.*':'UCLIBC_HAS_LOCALE=y':g ${S}/.config
fi
I am sure there are better ways to do it, this is how it worked for me. I'll
attach the patch that I use to the PR.
Perl version on Fedora 7:
This is perl, v5.8.8 built for x86_64-linux-thread-multi
version on Fedora 6:
Perl This is perl, v5.8.8 built for i386-linux-thread-multi
--
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-issues
mailing list