[oe-issues] [Bug 2163] New: glib-2.0 python variable expansion does not work
bugzilla-daemon at tinman.treke.net
bugzilla-daemon at tinman.treke.net
Sun Apr 29 17:09:42 UTC 2007
http://bugs.openembedded.org/show_bug.cgi?id=2163
Summary: glib-2.0 python variable expansion does not work
Product: Openembedded
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Build
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: likewise at gmx.net
QAContact: tinderbox-oe at gmx.net
When I disable native language support and then try to build glib-2.0, this
message should be shown, where PN should be expanded, but is not.
packages/glib-2.0/glib-2.0.inc:
python () {
import bb
if bb.data.getVar("USE_NLS", d, 1) == "no":
raise bb.parse.SkipPackage("${PN} requires native language support.")
}
i.e. my bitbake fails with:
leon at witty:~/sandbox/efika/openembedded$ bitbake -b
~/sandbox/openembedded/org.openembedded.dev/packages/glib-2.0/glib-2.0_2.12.11.bb
Traceback (most recent call last):
File
"/home/leon/sandbox/efika/openembedded/../../openembedded/bitbake/bin/bitbake",
line 117, in <module>
main()
File
"/home/leon/sandbox/efika/openembedded/../../openembedded/bitbake/bin/bitbake",
line 113, in main
cooker.cook()
File
"/home/leon/sandbox/e520/openembedded/../../openembedded/bitbake/lib/bb/cooker.py",
line 492, in cook
return self.buildFile(self.configuration.buildfile)
File
"/home/leon/sandbox/e520/openembedded/../../openembedded/bitbake/lib/bb/cooker.py",
line 399, in buildFile
bbfile_data = bb.parse.handle(bf, self.configuration.data)
File
"/home/leon/sandbox/efika/openembedded/../../openembedded/bitbake/lib/bb/parse/__init__.py",
line 71, in handle
return h['handle'](fn, data, include)
File
"/home/leon/sandbox/efika/openembedded/../../openembedded/bitbake/lib/bb/parse/parse_py/BBHandler.py",
line 159, in handle
build.exec_func("__anonfunc", d)
File
"/home/leon/sandbox/efika/openembedded/../../openembedded/bitbake/lib/bb/build.py",
line 98, in exec_func
exec_func_python(func, d)
File
"/home/leon/sandbox/efika/openembedded/../../openembedded/bitbake/lib/bb/build.py",
line 117, in exec_func_python
utils.better_exec(comp,g,tmp, bb.data.getVar('FILE',d,1))
File
"/home/leon/sandbox/efika/openembedded/../../openembedded/bitbake/lib/bb/utils.py",
line 144, in better_exec
exec code in context
File "__anonfunc", line 34, in <module>
File "__anonfunc", line 32, in __anonfunc
bb.parse.SkipPackage: ${PN} requires native language support.
${PN} is not expanded.
The REAL bug: If I do not bitbake with -b, I never see the SkipPackage
messages.
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Openembedded-issues
mailing list