<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1012</bug_id>
          
          <creation_ts>2011-04-28 01:08:56 +0000</creation_ts>
          <short_desc>createrepo doesn&apos;t work after upgrading to 0.9.9</short_desc>
          <delta_ts>2011-05-31 09:33:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Qing He">qing.he</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>ke.yu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>qing.he</cc>
    
    <cc>sgw</cc>
    
    <cc>shane.wang</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13461</commentid>
    <comment_count>0</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2011-04-28 01:08:56 +0000</bug_when>
    <thetext>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&apos;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 &quot;$@&quot;
     +exec @PYTHON@ @DATADIR@/createrepo/genpkgmetadata.py &quot;$@&quot;
   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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13671</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-05-11 04:57:38 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Several issues are present preventing it from proper functioning:
&gt;  1. createrepo scripts (/usr/bin/createrepo) is not installed
&gt;     Seems that some $(PACKAGE) in the patch fix-native install should be
&gt; renamed to $(PKGNAME)
Yes, I found ${STAGING_BINDIR_NATIVE}/createrepo is missing now...

&gt;  2. host python not working to run the script
&gt;     $SYSROOT/usr/lib/python2.6/site-packages/ now has some libraries, these
&gt; can&apos;t be found by host python (/usr/bin/python), so error occurs, suggesting to
&gt; modify the driver script, i.e., in /usr/bin/createrepo :
&gt;      -exec /usr/share/createrepo/genpkgmetadata.py &quot;$@&quot;
&gt;      +exec @PYTHON@ @DATADIR@/createrepo/genpkgmetadata.py &quot;$@&quot;
&gt;    and change @PYTHON@ to either /usr/bin/python (on target) or
&gt; ${STAGING_BINDIR_NATIVE}/python on host
&gt;  3. createrepo now has a new dependency of yum
&gt;    some library functions regarding xml are leveraging yum, a new yum recipe
&gt; needs to be added before createrepo can be used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14090</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-05-31 09:33:48 +0000</bug_when>
    <thetext>
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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>