All of lore.kernel.org
 help / color / mirror / Atom feed
* Parse failure for the new RPM recipes
@ 2009-03-21  2:31 Mike (mwester)
  2009-03-21  2:42 ` Khem Raj
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mike (mwester) @ 2009-03-21  2:31 UTC (permalink / raw)
  To: openembedded-devel

Something wrong; looks like a python function is being called during the parse phase - it throws up because TMPDIR is empty -- of course there's no python-native; I haven't built anything yet!

I have no idea what this is doing.  I'll try converting it to a warning so that parsing continues.  If that works, I'll commit that change -- someone can revert it as soon as the real fix comes along (that's the best I can do; I just have no idea what this is trying to do, or why that function is being evaluated at parse time).

Mike (mwester)

-----------------------

NOTE: Out of date cache found, rebuilding...
NOTE: Handling BitBake files: | (4851/6608) [73 %]__builtin__:6: DeprecationWarning: raising a string exception is deprecated
NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
${@python_dir(d)}
/r/slug/slugos/bitbake/lib/bb/data_smart.py:93: DeprecationWarning: raising a string exception is deprecated
  raise
NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
--with-python           --with-python-incdir=${STAGING_INCDIR}/${PYTHON_DIR}            --with-python-libdir=${libdir}/${PYTHON_DIR}            --without-apidocs               --without-selinux               --without-lua           --without-dmalloc               --without-efence ${MUTEX}
ERROR: Error in executing: /r/slug/slugos/openembedded/recipes/rpm/rpm-native_4.4.2.3.bb
ERROR: Exception:No Python in STAGING_INCDIR. Forgot to build python-native ? Message:None
ERROR: Printing the environment of the function
ERROR:  0002:    import bb
ERROR:  0003:    from bb import __version__
ERROR:  0004:    base_after_parse(d)
ERROR:  0005:
ERROR:  0006:    # Remove this for bitbake 1.8.12
ERROR:  0007:    try:
ERROR:  0008:        from distutils.version import LooseVersion
ERROR:  0009:    except ImportError:
ERROR:  0010:        def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1
/r/slug/slugos/bitbake/lib/bb/utils.py:191: DeprecationWarning: raising a string exception is deprecated
  raise
/r/slug/slugos/bitbake/lib/bb/cache.py:415: DeprecationWarning: raising a string exception is deprecated
  raise
/r/slug/slugos/bitbake/lib/bb/cooker.py:766: DeprecationWarning: raising a string exception is deprecated
  raise
Traceback (most recent call last):
  File "/r/slug/slugos/bitbake/bin/bitbake", line 143, in <module>
    main()
  File "/r/slug/slugos/bitbake/bin/bitbake", line 140, in main
    cooker.cook()
  File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 617, in cook
    self.updateCache()
  File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 587, in updateCache
    self.parse_bbfiles(filelist, masked, self.myProgressCallback)
  File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 726, in parse_bbfiles
    fromCache, skip = self.bb_cache.loadData(f, self.configuration.data)
  File "/r/slug/slugos/bitbake/lib/bb/cache.py", line 170, in loadData
    bb_data, skipped = self.load_bbfile(fn, cfgData)
  File "/r/slug/slugos/bitbake/lib/bb/cache.py", line 407, in load_bbfile
    bb_data = parse.handle(bbfile, bb_data) # read .bb data
  File "/r/slug/slugos/bitbake/lib/bb/parse/__init__.py", line 75, in handle
    return h['handle'](fn, data, include)
  File "/r/slug/slugos/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 161, in handle
    build.exec_func("__anonfunc", d)
  File "/r/slug/slugos/bitbake/lib/bb/build.py", line 113, in exec_func
    exec_func_python(func, d)
  File "/r/slug/slugos/bitbake/lib/bb/build.py", line 136, in exec_func_python
    utils.better_exec(comp, g, tmp, bbfile)
  File "/r/slug/slugos/bitbake/lib/bb/utils.py", line 171, in better_exec
    exec code in context
  File "__anonfunc", line 76, in <module>
  File "__anonfunc", line 74, in __anonfunc
  File "<bb>", line 5, in gettext_after_parse
  File "/r/slug/slugos/bitbake/lib/bb/data.py", line 97, in getVar
    return d.getVar(var,exp)
  File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 167, in getVar
    return self.expand(value,var)
  File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 84, in expand
    s = __expand_var_regexp__.sub(var_sub, s)
  File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 61, in var_sub
    var = self.getVar(key, 1)
  File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 167, in getVar
    return self.expand(value,var)
  File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 85, in expand
    s = __expand_python_regexp__.sub(python_sub, s)
  File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 71, in python_sub
    s = eval(code)
  File "<string>", line 1, in <module>
  File "<bb>", line 6, in python_dir
No Python in STAGING_INCDIR. Forgot to build python-native ?



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

* Re: Parse failure for the new RPM recipes
  2009-03-21  2:31 Parse failure for the new RPM recipes Mike (mwester)
@ 2009-03-21  2:42 ` Khem Raj
  2009-03-21  3:09   ` Mike (mwester)
  2009-03-21  3:00 ` Khem Raj
  2009-03-21  3:16 ` Khem Raj
  2 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2009-03-21  2:42 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 5418 bytes --]

On Friday 20 March 2009 19:31:08 Mike (mwester) wrote:
> Something wrong; looks like a python function is being called during the parse phase - it throws up because TMPDIR is empty -- of course there's no python-native; I haven't built anything yet!
> 
> I have no idea what this is doing.  I'll try converting it to a warning so that parsing continues.  If that works, I'll commit that change -- someone can revert it as soon as the real fix comes along (that's the best I can do; I just have no idea what this is trying to do, or why that function is being evaluated at parse time).
> 
> Mike (mwester)
> 
> -----------------------
> 
> NOTE: Out of date cache found, rebuilding...
> NOTE: Handling BitBake files: | (4851/6608) [73 %]__builtin__:6: DeprecationWarning: raising a string exception is deprecated
> NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
> ${@python_dir(d)}
> /r/slug/slugos/bitbake/lib/bb/data_smart.py:93: DeprecationWarning: raising a string exception is deprecated
>   raise
> NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
> --with-python           --with-python-incdir=${STAGING_INCDIR}/${PYTHON_DIR}            --with-python-libdir=${libdir}/${PYTHON_DIR}            --without-apidocs               --without-selinux               --without-lua           --without-dmalloc               --without-efence ${MUTEX}
> ERROR: Error in executing: /r/slug/slugos/openembedded/recipes/rpm/rpm-native_4.4.2.3.bb
> ERROR: Exception:No Python in STAGING_INCDIR. Forgot to build python-native ? Message:None
> ERROR: Printing the environment of the function
> ERROR:  0002:    import bb
> ERROR:  0003:    from bb import __version__
> ERROR:  0004:    base_after_parse(d)
> ERROR:  0005:
> ERROR:  0006:    # Remove this for bitbake 1.8.12
> ERROR:  0007:    try:
> ERROR:  0008:        from distutils.version import LooseVersion
> ERROR:  0009:    except ImportError:
> ERROR:  0010:        def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1
> /r/slug/slugos/bitbake/lib/bb/utils.py:191: DeprecationWarning: raising a string exception is deprecated
>   raise
> /r/slug/slugos/bitbake/lib/bb/cache.py:415: DeprecationWarning: raising a string exception is deprecated
>   raise
> /r/slug/slugos/bitbake/lib/bb/cooker.py:766: DeprecationWarning: raising a string exception is deprecated
>   raise
> Traceback (most recent call last):
>   File "/r/slug/slugos/bitbake/bin/bitbake", line 143, in <module>
>     main()
>   File "/r/slug/slugos/bitbake/bin/bitbake", line 140, in main
>     cooker.cook()
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 617, in cook
>     self.updateCache()
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 587, in updateCache
>     self.parse_bbfiles(filelist, masked, self.myProgressCallback)
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 726, in parse_bbfiles
>     fromCache, skip = self.bb_cache.loadData(f, self.configuration.data)
>   File "/r/slug/slugos/bitbake/lib/bb/cache.py", line 170, in loadData
>     bb_data, skipped = self.load_bbfile(fn, cfgData)
>   File "/r/slug/slugos/bitbake/lib/bb/cache.py", line 407, in load_bbfile
>     bb_data = parse.handle(bbfile, bb_data) # read .bb data
>   File "/r/slug/slugos/bitbake/lib/bb/parse/__init__.py", line 75, in handle
>     return h['handle'](fn, data, include)
>   File "/r/slug/slugos/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 161, in handle
>     build.exec_func("__anonfunc", d)
>   File "/r/slug/slugos/bitbake/lib/bb/build.py", line 113, in exec_func
>     exec_func_python(func, d)
>   File "/r/slug/slugos/bitbake/lib/bb/build.py", line 136, in exec_func_python
>     utils.better_exec(comp, g, tmp, bbfile)
>   File "/r/slug/slugos/bitbake/lib/bb/utils.py", line 171, in better_exec
>     exec code in context
>   File "__anonfunc", line 76, in <module>
>   File "__anonfunc", line 74, in __anonfunc
>   File "<bb>", line 5, in gettext_after_parse
>   File "/r/slug/slugos/bitbake/lib/bb/data.py", line 97, in getVar
>     return d.getVar(var,exp)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 167, in getVar
>     return self.expand(value,var)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 84, in expand
>     s = __expand_var_regexp__.sub(var_sub, s)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 61, in var_sub
>     var = self.getVar(key, 1)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 167, in getVar
>     return self.expand(value,var)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 85, in expand
>     s = __expand_python_regexp__.sub(python_sub, s)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 71, in python_sub
>     s = eval(code)
>   File "<string>", line 1, in <module>
>   File "<bb>", line 6, in python_dir
> No Python in STAGING_INCDIR. Forgot to build python-native ?
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 

Are you also using uclibc as system C library. For me it happens when I chose uclibc
if I chose glibc or eglibc parse completes.
-- 
Khem Raj

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 204 bytes --]

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

* Re: Parse failure for the new RPM recipes
  2009-03-21  2:31 Parse failure for the new RPM recipes Mike (mwester)
  2009-03-21  2:42 ` Khem Raj
@ 2009-03-21  3:00 ` Khem Raj
  2009-03-21  3:16 ` Khem Raj
  2 siblings, 0 replies; 7+ messages in thread
From: Khem Raj @ 2009-03-21  3:00 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 5875 bytes --]

On Friday 20 March 2009 19:31:08 Mike (mwester) wrote:
> Something wrong; looks like a python function is being called during the parse phase - it throws up because TMPDIR is empty -- of course there's no python-native; I haven't built anything yet!
> 
> I have no idea what this is doing.  I'll try converting it to a warning so that parsing continues.  If that works, I'll commit that change -- someone can revert it as soon as the real fix comes along (that's the best I can do; I just have no idea what this is trying to do, or why that function is being evaluated at parse time).

I know this patch is bogus but it lets the parse to go through and if you are not building rpm then you can use it.

diff --git a/recipes/rpm/rpm_4.4.2.3.bb b/recipes/rpm/rpm_4.4.2.3.bb
index db88282..e88036f 100644
--- a/recipes/rpm/rpm_4.4.2.3.bb
+++ b/recipes/rpm/rpm_4.4.2.3.bb
@@ -13,7 +13,7 @@ SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \
           file://missingok.patch;patch=1;pnum=0 \
           file://extcond.patch;patch=1;pnum=0"

-inherit autotools gettext distutils-base
+inherit autotools gettext

 S = "${WORKDIR}/rpm-${PV}"


> 
> Mike (mwester)
> 
> -----------------------
> 
> NOTE: Out of date cache found, rebuilding...
> NOTE: Handling BitBake files: | (4851/6608) [73 %]__builtin__:6: DeprecationWarning: raising a string exception is deprecated
> NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
> ${@python_dir(d)}
> /r/slug/slugos/bitbake/lib/bb/data_smart.py:93: DeprecationWarning: raising a string exception is deprecated
>   raise
> NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
> --with-python           --with-python-incdir=${STAGING_INCDIR}/${PYTHON_DIR}            --with-python-libdir=${libdir}/${PYTHON_DIR}            --without-apidocs               --without-selinux               --without-lua           --without-dmalloc               --without-efence ${MUTEX}
> ERROR: Error in executing: /r/slug/slugos/openembedded/recipes/rpm/rpm-native_4.4.2.3.bb
> ERROR: Exception:No Python in STAGING_INCDIR. Forgot to build python-native ? Message:None
> ERROR: Printing the environment of the function
> ERROR:  0002:    import bb
> ERROR:  0003:    from bb import __version__
> ERROR:  0004:    base_after_parse(d)
> ERROR:  0005:
> ERROR:  0006:    # Remove this for bitbake 1.8.12
> ERROR:  0007:    try:
> ERROR:  0008:        from distutils.version import LooseVersion
> ERROR:  0009:    except ImportError:
> ERROR:  0010:        def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1
> /r/slug/slugos/bitbake/lib/bb/utils.py:191: DeprecationWarning: raising a string exception is deprecated
>   raise
> /r/slug/slugos/bitbake/lib/bb/cache.py:415: DeprecationWarning: raising a string exception is deprecated
>   raise
> /r/slug/slugos/bitbake/lib/bb/cooker.py:766: DeprecationWarning: raising a string exception is deprecated
>   raise
> Traceback (most recent call last):
>   File "/r/slug/slugos/bitbake/bin/bitbake", line 143, in <module>
>     main()
>   File "/r/slug/slugos/bitbake/bin/bitbake", line 140, in main
>     cooker.cook()
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 617, in cook
>     self.updateCache()
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 587, in updateCache
>     self.parse_bbfiles(filelist, masked, self.myProgressCallback)
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 726, in parse_bbfiles
>     fromCache, skip = self.bb_cache.loadData(f, self.configuration.data)
>   File "/r/slug/slugos/bitbake/lib/bb/cache.py", line 170, in loadData
>     bb_data, skipped = self.load_bbfile(fn, cfgData)
>   File "/r/slug/slugos/bitbake/lib/bb/cache.py", line 407, in load_bbfile
>     bb_data = parse.handle(bbfile, bb_data) # read .bb data
>   File "/r/slug/slugos/bitbake/lib/bb/parse/__init__.py", line 75, in handle
>     return h['handle'](fn, data, include)
>   File "/r/slug/slugos/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 161, in handle
>     build.exec_func("__anonfunc", d)
>   File "/r/slug/slugos/bitbake/lib/bb/build.py", line 113, in exec_func
>     exec_func_python(func, d)
>   File "/r/slug/slugos/bitbake/lib/bb/build.py", line 136, in exec_func_python
>     utils.better_exec(comp, g, tmp, bbfile)
>   File "/r/slug/slugos/bitbake/lib/bb/utils.py", line 171, in better_exec
>     exec code in context
>   File "__anonfunc", line 76, in <module>
>   File "__anonfunc", line 74, in __anonfunc
>   File "<bb>", line 5, in gettext_after_parse
>   File "/r/slug/slugos/bitbake/lib/bb/data.py", line 97, in getVar
>     return d.getVar(var,exp)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 167, in getVar
>     return self.expand(value,var)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 84, in expand
>     s = __expand_var_regexp__.sub(var_sub, s)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 61, in var_sub
>     var = self.getVar(key, 1)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 167, in getVar
>     return self.expand(value,var)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 85, in expand
>     s = __expand_python_regexp__.sub(python_sub, s)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 71, in python_sub
>     s = eval(code)
>   File "<string>", line 1, in <module>
>   File "<bb>", line 6, in python_dir
> No Python in STAGING_INCDIR. Forgot to build python-native ?
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 

-- 
Khem Raj

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 204 bytes --]

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

* Re: Parse failure for the new RPM recipes
  2009-03-21  2:42 ` Khem Raj
@ 2009-03-21  3:09   ` Mike (mwester)
  0 siblings, 0 replies; 7+ messages in thread
From: Mike (mwester) @ 2009-03-21  3:09 UTC (permalink / raw)
  To: openembedded-devel

Khem Raj wrote:
> On Friday 20 March 2009 19:31:08 Mike (mwester) wrote:
>> Something wrong; looks like a python function is being called during the parse phase - it throws up because TMPDIR is empty -- of course there's no python-native; I haven't built anything yet!
...
> 
> Are you also using uclibc as system C library. For me it happens when I chose uclibc
> if I chose glibc or eglibc parse completes.

SlugOS uses glibc.  The host is Fedora 10 (Python 2.5.2).  SlugOS is not
an Angstrom distro, in case that makes a difference...

BTW, I "fixed" this by adding BBMASK = "/rpm*" to my local.conf -- I
couldn't figure out what was going on or find a non-destructive way to
patch this in any way.  :(


Mike (mwester)



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

* Re: Parse failure for the new RPM recipes
  2009-03-21  2:31 Parse failure for the new RPM recipes Mike (mwester)
  2009-03-21  2:42 ` Khem Raj
  2009-03-21  3:00 ` Khem Raj
@ 2009-03-21  3:16 ` Khem Raj
  2009-03-21  3:27   ` Mike (mwester)
  2009-03-21 11:03   ` Michael 'Mickey' Lauer
  2 siblings, 2 replies; 7+ messages in thread
From: Khem Raj @ 2009-03-21  3:16 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-devel


[-- Attachment #1.1: Type: text/plain, Size: 5331 bytes --]

On Friday 20 March 2009 19:31:08 Mike (mwester) wrote:
> Something wrong; looks like a python function is being called during the parse phase - it throws up because TMPDIR is empty -- of course there's no python-native; I haven't built anything yet!
> 
> I have no idea what this is doing.  I'll try converting it to a warning so that parsing continues.  If that works, I'll commit that change -- someone can revert it as soon as the real fix comes along (that's the best I can do; I just have no idea what this is trying to do, or why that function is being evaluated at parse time).
> 
> Mike (mwester)
> 
> -----------------------
> 
> NOTE: Out of date cache found, rebuilding...
> NOTE: Handling BitBake files: | (4851/6608) [73 %]__builtin__:6: DeprecationWarning: raising a string exception is deprecated
> NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
> ${@python_dir(d)}
> /r/slug/slugos/bitbake/lib/bb/data_smart.py:93: DeprecationWarning: raising a string exception is deprecated
>   raise
> NOTE: No Python in STAGING_INCDIR. Forgot to build python-native ?:None while evaluating:
> --with-python           --with-python-incdir=${STAGING_INCDIR}/${PYTHON_DIR}            --with-python-libdir=${libdir}/${PYTHON_DIR}            --without-apidocs               --without-selinux               --without-lua           --without-dmalloc               --without-efence ${MUTEX}
> ERROR: Error in executing: /r/slug/slugos/openembedded/recipes/rpm/rpm-native_4.4.2.3.bb
> ERROR: Exception:No Python in STAGING_INCDIR. Forgot to build python-native ? Message:None
> ERROR: Printing the environment of the function
> ERROR:  0002:    import bb
> ERROR:  0003:    from bb import __version__
> ERROR:  0004:    base_after_parse(d)
> ERROR:  0005:
> ERROR:  0006:    # Remove this for bitbake 1.8.12
> ERROR:  0007:    try:
> ERROR:  0008:        from distutils.version import LooseVersion
> ERROR:  0009:    except ImportError:
> ERROR:  0010:        def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1
> /r/slug/slugos/bitbake/lib/bb/utils.py:191: DeprecationWarning: raising a string exception is deprecated
>   raise
> /r/slug/slugos/bitbake/lib/bb/cache.py:415: DeprecationWarning: raising a string exception is deprecated
>   raise
> /r/slug/slugos/bitbake/lib/bb/cooker.py:766: DeprecationWarning: raising a string exception is deprecated
>   raise
> Traceback (most recent call last):
>   File "/r/slug/slugos/bitbake/bin/bitbake", line 143, in <module>
>     main()
>   File "/r/slug/slugos/bitbake/bin/bitbake", line 140, in main
>     cooker.cook()
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 617, in cook
>     self.updateCache()
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 587, in updateCache
>     self.parse_bbfiles(filelist, masked, self.myProgressCallback)
>   File "/r/slug/slugos/bitbake/lib/bb/cooker.py", line 726, in parse_bbfiles
>     fromCache, skip = self.bb_cache.loadData(f, self.configuration.data)
>   File "/r/slug/slugos/bitbake/lib/bb/cache.py", line 170, in loadData
>     bb_data, skipped = self.load_bbfile(fn, cfgData)
>   File "/r/slug/slugos/bitbake/lib/bb/cache.py", line 407, in load_bbfile
>     bb_data = parse.handle(bbfile, bb_data) # read .bb data
>   File "/r/slug/slugos/bitbake/lib/bb/parse/__init__.py", line 75, in handle
>     return h['handle'](fn, data, include)
>   File "/r/slug/slugos/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 161, in handle
>     build.exec_func("__anonfunc", d)
>   File "/r/slug/slugos/bitbake/lib/bb/build.py", line 113, in exec_func
>     exec_func_python(func, d)
>   File "/r/slug/slugos/bitbake/lib/bb/build.py", line 136, in exec_func_python
>     utils.better_exec(comp, g, tmp, bbfile)
>   File "/r/slug/slugos/bitbake/lib/bb/utils.py", line 171, in better_exec
>     exec code in context
>   File "__anonfunc", line 76, in <module>
>   File "__anonfunc", line 74, in __anonfunc
>   File "<bb>", line 5, in gettext_after_parse
>   File "/r/slug/slugos/bitbake/lib/bb/data.py", line 97, in getVar
>     return d.getVar(var,exp)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 167, in getVar
>     return self.expand(value,var)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 84, in expand
>     s = __expand_var_regexp__.sub(var_sub, s)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 61, in var_sub
>     var = self.getVar(key, 1)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 167, in getVar
>     return self.expand(value,var)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 85, in expand
>     s = __expand_python_regexp__.sub(python_sub, s)
>   File "/r/slug/slugos/bitbake/lib/bb/data_smart.py", line 71, in python_sub
>     s = eval(code)
>   File "<string>", line 1, in <module>
>   File "<bb>", line 6, in python_dir
> No Python in STAGING_INCDIR. Forgot to build python-native ?
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 

Attached is a better fix. Is it OK ?


-- 
Khem Raj


[-- Attachment #1.2: diff --]
[-- Type: text/x-patch, Size: 1052 bytes --]

diff --git a/recipes/rpm/rpm_4.4.2.3.bb b/recipes/rpm/rpm_4.4.2.3.bb
index db88282..7f9b666 100644
--- a/recipes/rpm/rpm_4.4.2.3.bb
+++ b/recipes/rpm/rpm_4.4.2.3.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "The RPM Package Manager."
 HOMEPAGE = "http://rpm.org/"
 LICENSE = "LGPL GPL"
 DEPENDS = "zlib beecrypt file popt python sed-native"
-PR = "r13"
+PR = "r14"
 
 SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \
            file://external-tools.patch;patch=1 \
@@ -21,7 +21,8 @@ ARM_INSTRUCTION_SET = "arm"
 
 acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java"
 
-EXTRA_OECONF = "--with-python \
+do_configure_prepend (){
+	EXTRA_OECONF = "--with-python \
 		--with-python-incdir=${STAGING_INCDIR}/${PYTHON_DIR} \
 		--with-python-libdir=${libdir}/${PYTHON_DIR} \
 		--without-apidocs \
@@ -29,6 +30,7 @@ EXTRA_OECONF = "--with-python \
 		--without-lua \
 		--without-dmalloc \
 		--without-efence"
+}
 
 PACKAGES += "python-rpm"
 FILES_python-rpm = "${libdir}/python*/site-packages/rpm/_*"

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 204 bytes --]

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

* Re: Parse failure for the new RPM recipes
  2009-03-21  3:16 ` Khem Raj
@ 2009-03-21  3:27   ` Mike (mwester)
  2009-03-21 11:03   ` Michael 'Mickey' Lauer
  1 sibling, 0 replies; 7+ messages in thread
From: Mike (mwester) @ 2009-03-21  3:27 UTC (permalink / raw)
  To: Khem Raj, openembedded-devel

Khem Raj wrote:
> 
> Attached is a better fix. Is it OK ?
> 

+1 from me -- parses correctly now, and while I don't build rpm, and
therefore can't test it, that logic looks to be equivalent.

Mike (mwester)



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

* Re: Parse failure for the new RPM recipes
  2009-03-21  3:16 ` Khem Raj
  2009-03-21  3:27   ` Mike (mwester)
@ 2009-03-21 11:03   ` Michael 'Mickey' Lauer
  1 sibling, 0 replies; 7+ messages in thread
From: Michael 'Mickey' Lauer @ 2009-03-21 11:03 UTC (permalink / raw)
  To: openembedded-devel

> Attached is a better fix. Is it OK ?

Yes, this is correct. The problem is a chicken-and-egg-one. We need python 
built to know what version of python we support (since there's no other way to 
peek in the metadata, which I'd love to have).

Your patch is as good as it can get given the situation.

:M:





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

end of thread, other threads:[~2009-03-21 11:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-21  2:31 Parse failure for the new RPM recipes Mike (mwester)
2009-03-21  2:42 ` Khem Raj
2009-03-21  3:09   ` Mike (mwester)
2009-03-21  3:00 ` Khem Raj
2009-03-21  3:16 ` Khem Raj
2009-03-21  3:27   ` Mike (mwester)
2009-03-21 11:03   ` Michael 'Mickey' Lauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.