[OE-core] Get PRAUTO and use PKGV/PKGR is causing problems

Koen Kooi koen at dominion.thruhere.net
Fri May 27 19:51:03 UTC 2011


I'm seeing the same on my fedora box, but not on my debian box. Otavio reported similar issues, see the patchset email thread.

Op 27 mei 2011, om 21:40 heeft Khem Raj het volgende geschreven:

> Hi
> 
> I have started getting this error.
> 
> ERROR: Error executing a python function in
> /home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb:
> ImportError: No module named xmlrpc
> 
> ERROR: The stack trace of python calls that resulted in this
> exception/failure was:
> ERROR:   File "package_get_auto_pr", line 11, in <module>
> ERROR:
> ERROR:   File "package_get_auto_pr", line 4, in package_get_auto_pr
> ERROR:
> ERROR:   File "prserv.bbclass", line 8, in prserv_get_pr_auto
> ERROR:
> ERROR:   File "prserv.bbclass", line 2, in prserv_make_conn
> ERROR:
> ERROR:   File "/home/kraj/work/slugos/bitbake/lib/prserv/serv.py",
> line 6, in <module>
> ERROR:     import bb.server.xmlrpc
> ERROR:
> ERROR: The code that was being executed was:
> ERROR:      0007:                       return
> ERROR:      0008:               d.setVar('PRAUTO',str(auto_pr))
> ERROR:      0009:
> ERROR:      0010:
> ERROR:  *** 0011:package_get_auto_pr(d)
> ERROR:      0012:
> ERROR: (file: 'package_get_auto_pr', lineno: 11, function: <module>)
> ERROR:      0001:
> ERROR:      0002:def package_get_auto_pr(d):
> ERROR:      0003:       if d.getVar('USE_PR_SERV', True):
> ERROR:  *** 0004:               auto_pr=prserv_get_pr_auto(d)
> ERROR:      0005:               if auto_pr is None:
> ERROR:      0006:                       bb.fatal("Can NOT get auto PR
> revision from remote PR service")
> ERROR:      0007:                       return
> ERROR:      0008:               d.setVar('PRAUTO',str(auto_pr))
> ERROR: (file: 'package_get_auto_pr', lineno: 4, function: package_get_auto_pr)
> ERROR: Function 'package_get_auto_pr' failed
> ERROR: Logfile of failure stored in:
> /home/kraj/work/angstrom/build/tmp-angstrom_2010_x-uclibc/work/efikamx-angstrom-linux-uclibceabi/uclibc-0.9.31+0.9.32rc3-r2.2/temp/log.do_package.3715
> Log data follows:
> | ERROR: Error executing a python function in
> /home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb:
> | ImportError: No module named xmlrpc
> |
> | ERROR: The stack trace of python calls that resulted in this
> exception/failure was:
> | ERROR:   File "package_get_auto_pr", line 11, in <module>
> | ERROR:
> | ERROR:   File "package_get_auto_pr", line 4, in package_get_auto_pr
> | ERROR:
> | ERROR:   File "prserv.bbclass", line 8, in prserv_get_pr_auto
> | ERROR:
> | ERROR:   File "prserv.bbclass", line 2, in prserv_make_conn
> | ERROR:
> | ERROR:   File "/home/kraj/work/slugos/bitbake/lib/prserv/serv.py",
> line 6, in <module>
> | ERROR:     import bb.server.xmlrpc
> | ERROR:
> | ERROR: The code that was being executed was:
> | ERROR:      0007:                     return
> | ERROR:      0008:             d.setVar('PRAUTO',str(auto_pr))
> | ERROR:      0009:
> | ERROR:      0010:
> | ERROR:  *** 0011:package_get_auto_pr(d)
> | ERROR:      0012:
> | ERROR: (file: 'package_get_auto_pr', lineno: 11, function: <module>)
> | ERROR:      0001:
> | ERROR:      0002:def package_get_auto_pr(d):
> | ERROR:      0003:     if d.getVar('USE_PR_SERV', True):
> | ERROR:  *** 0004:             auto_pr=prserv_get_pr_auto(d)
> | ERROR:      0005:             if auto_pr is None:
> | ERROR:      0006:                     bb.fatal("Can NOT get auto PR
> revision from remote PR service")
> | ERROR:      0007:                     return
> | ERROR:      0008:             d.setVar('PRAUTO',str(auto_pr))
> | ERROR: (file: 'package_get_auto_pr', lineno: 4, function: package_get_auto_pr)
> | ERROR: Function 'package_get_auto_pr' failed
> NOTE: package uclibc-0.9.31+0.9.32rc3-r2.2: task do_package: Failed
> ERROR: Task 9 (/home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb,
> do_package) failed with exit code '1'
> ERROR: '/home/kraj/work/angstrom/sources/openembedded-core/meta/recipes-core/uclibc/uclibc_git.bb'
> failed
> 
> 
> After bisecting this seems to be the point of cause. What am I missing.
> I am using angstrom. Is there something needed in config ?
> 
> b1f6120c04731d3d66f322ce550b0d223c118dab is the first bad commit
> commit b1f6120c04731d3d66f322ce550b0d223c118dab
> Author: Lianhao Lu <lianhao.lu at intel.com>
> Date:   Wed May 18 21:15:01 2011 +0800
> 
>    classes/package(prserv).bbclass: Get PRAUTO and use PKGV/PKGR.
> 
>    1. Added package_get_auto_pr to PACKAGEFUNCS to get the auto
>    incremented value(PRAUTO) from remote PR service.
> 
>    2. use PKGV/PKGR for pkgdata which will be used by package_write_xxx.
> 
>    3. Added supporting functions in prserv.bbclass.
> 
>    Signed-off-by: Lianhao Lu <lianhao.lu at intel.com>
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core





More information about the Openembedded-core mailing list