[oe-issues] [Bug 2391] New: glibc fails locale generation due to bad dependency, patch included
bugzilla-daemon at tinman.treke.net
bugzilla-daemon at tinman.treke.net
Tue May 29 03:29:21 UTC 2007
http://bugs.openembedded.org/show_bug.cgi?id=2391
Summary: glibc fails locale generation due to bad dependency,
patch included
Product: Openembedded
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Build
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: shane.oe at hathawaymix.org
QAContact: tinderbox-oe at gmx.net
Created an attachment (id=1537)
--> (http://bugs.openembedded.org/attachment.cgi?id=1537)
glibc-locale-dependency.patch
As I tried to build glibc today, I hit a snag during the locale generation.
First it complained that /usr/share/i18n/charmaps did not exist, so I installed
the locales package on my system, but then 'bitbake glibc' still complained
about syntax errors in the locale definition files. I tried various ways to
fix it until I realized that my Debian system is running glibc 2.4 while the
distribution I'm working on requires glibc 2.3. The locale scripts are
apparently not compatible across glibc versions. I concluded that OpenEmbedded
*must* *not* depend on /usr/share/i18n when building glibc.
I poked around until I found packages/glibc/glibc-package.bbclass, which
contained the following line:
i18npath = os.path.join(treedir, datadir, "i18n")
The Python os.path.join has a little surprise. If a parameter after the first
parameter specifies an absolute path, the new path replaces rather than
augments the earlier path. For example, os.path.join('/home/user', '/tmp')
yields the string '/tmp' rather than '/home/user/tmp'. I wish this behavior
were more obvious, but alas, that is a deeper issue.
I will attach a patch that fixes this issue for me. Although the patch is made
for the org.openembedded.oz354x branch, I believe all branches need this patch.
The patch may also solve other bugs related to glibc building, but I don't
know which.
--
Configure bugmail: http://bugs.openembedded.org/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