Bug 1012

Summary: createrepo doesn't work after upgrading to 0.9.9
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Qing He <qing.he>
Component: coreAssignee: 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: ---

Description Qing He 2011-04-28 01:08:56 UTC
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.
Comment 1 Dexuan Cui 2011-05-11 04:57:38 UTC
(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.
Comment 2 Saul Wold 2011-05-31 09:33:48 UTC
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