| Summary: | createrepo doesn't work after upgrading to 0.9.9 | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Qing He <qing.he> |
| Component: | core | Assignee: | Saul Wold <sgw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | Medium | CC: | dexuan.cui, jiajun.xu, ke.yu, meta.mr.watcher, meta.watcher, qing.he, sgw, shane.wang |
| Version: | unspecified | ||
| Target Milestone: | 1.1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
(In reply to comment #0) > Several issues are present preventing it from proper functioning: > 1. createrepo scripts (/usr/bin/createrepo) is not installed > Seems that some $(PACKAGE) in the patch fix-native install should be > renamed to $(PKGNAME) Yes, I found ${STAGING_BINDIR_NATIVE}/createrepo is missing now... > 2. host python not working to run the script > $SYSROOT/usr/lib/python2.6/site-packages/ now has some libraries, these > can't be found by host python (/usr/bin/python), so error occurs, suggesting to > modify the driver script, i.e., in /usr/bin/createrepo : > -exec /usr/share/createrepo/genpkgmetadata.py "$@" > +exec @PYTHON@ @DATADIR@/createrepo/genpkgmetadata.py "$@" > and change @PYTHON@ to either /usr/bin/python (on target) or > ${STAGING_BINDIR_NATIVE}/python on host > 3. createrepo now has a new dependency of yum > some library functions regarding xml are leveraging yum, a new yum recipe > needs to be added before createrepo can be used. createrepo after 0.9.* moved to using YUM python classes and libraries, since we are not moving in that direction yet, I have reverted to the 0.9.9 Update http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ba9f2fb1f5e6f6c33398b4e331e8a14759a7cbcb |
Several issues are present preventing it from proper functioning: 1. createrepo scripts (/usr/bin/createrepo) is not installed Seems that some $(PACKAGE) in the patch fix-native install should be renamed to $(PKGNAME) 2. host python not working to run the script $SYSROOT/usr/lib/python2.6/site-packages/ now has some libraries, these can't be found by host python (/usr/bin/python), so error occurs, suggesting to modify the driver script, i.e., in /usr/bin/createrepo : -exec /usr/share/createrepo/genpkgmetadata.py "$@" +exec @PYTHON@ @DATADIR@/createrepo/genpkgmetadata.py "$@" and change @PYTHON@ to either /usr/bin/python (on target) or ${STAGING_BINDIR_NATIVE}/python on host 3. createrepo now has a new dependency of yum some library functions regarding xml are leveraging yum, a new yum recipe needs to be added before createrepo can be used.