| Summary: | bitbake package-index fails for rpm | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Meta-yocto | Reporter: | Paul Eggleton <bluelightning> |
| Component: | meta-yocto | Assignee: | Andrei Gherzan <andrei> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jessica.zhang, poky.bs.watcher, poky.watcher, richard.purdie, scott.a.garman, sgw |
| Version: | unspecified | ||
| Target Milestone: | 1.2 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | (1.2) 2012-04-11: Patch Review | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Paul Eggleton
2012-03-16 13:39:51 UTC
I can no longer reproduce this after cleaning out TMPDIR, and it works fine on two other host machines. I'm aware I had some brokenness in there due to some other bugs, so I'm going to mark this one as WORKSFORME. Whilst I never saw the libxml issue, I consistently see: | + rpm-createsolvedb.py rpm /media/build1/poky/build6/tmp/deploy/rpm/x86_64-nativesdk /media/build1/poky/build6/tERROR: Function failed: do_package_index (see /media/build1/poky/build6/tmp/work/i586-poky-linux/package-index-1.0-r0/temp/log.do_package_index.25555 for further information) | mp/deploy/rpm/all | total: 1 0.000000 MB 1.339680 secs | fingerprint: 321 0.010880 MB 0.014860 secs | install: 107 0.000000 MB 0.131623 secs | dbadd: 107 0.000000 MB 0.129404 secs | dbget: 4085 0.011956 MB 0.003506 secs | dbput: 107 0.974936 MB 0.115491 secs | readhdr: 1071 1.937440 MB 1.093024 secs | hdrload: 550 3.034148 MB 0.002142 secs | hdrget: 19375 0.000000 MB 0.016254 secs | + createrepo /media/build1/poky/build6/tmp/deploy/rpm | Traceback (most recent call last): | File "/media/build1/poky/build6/tmp/sysroots/x86_64-linux/usr/share/createrepo/genpkgmetadata.py", line 26, in <module> | import rpm | ImportError: No module named rpm NOTE: package package-index-1.0-r0: task do_package_index: Failed ERROR: Task 8 (/media/build1/poky/meta/recipes-core/meta/package-index.bb, do_package_index) failed with exit code '1' NOTE: Tasks Summary: Attempted 215 tasks of which 206 didn't need to be rerun and 1 failed :( The bug is that the native python used to run genpkgmetadata.py is picking up host's python modules. More about this. RPM is built without python. And this modules is needed by the above py file. So: 1. rpm-native should be built with python support. 2. native python should only look into STAGING_DIR_NATIVE directory for modules. @g Fixed. Please check and test here: http://lists.linuxtogo.org/pipermail/openembedded-core/2012-April/020892.html @g Closed by mistake. Waiting for merge.... Fixes merged into master ending with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=04b16f1038f7cae445d741e86c2cc19c70f991c1 |