<?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>9894</bug_id>
          
          <creation_ts>2016-07-07 15:33:37 +0000</creation_ts>
          <short_desc>Investigate porting smartpm, createrepo to python3</short_desc>
          <delta_ts>2017-03-09 09:29:12 +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>devtools / tool chain</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          <dependson>9675</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy MacLeod">randy.macleod</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>fan.xin</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63734</commentid>
    <comment_count>0</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2016-07-07 15:33:37 +0000</bug_when>
    <thetext>The consensus on the weekly YP bug review call is that oe-core should drop smartpm and use dnf in the 2.3 release. 

For the 2.2 release, we&apos;ll keep smartpm as the system package manager so it would be good to attempt to port it to python3 rather than leave it as one of the few key packages in the system that still require python2. I expect that this work is worth doing since we would have to support smartpm for another year or more.

As mentioned in:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9675

we should fork the project and see if the python3 port can be done by early M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63910</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2016-07-13 02:21:03 +0000</bug_when>
    <thetext>Hi Randy,

It seems that python 2 to 3 converting work in OE is mainly about bitbake and metadata.
This bug seems to try to achieve a goal that is making python default to python3 on target instead of python2.
Is this goal in the plan of Yocto 2.2?
If it&apos;s a goal for Yocto 2.3 and we are going to use dnf in 2.3, it seems we don&apos;t have to fix this bug?
Do I misunderstand something?

Regards,
Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64594</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2016-07-28 15:28:12 +0000</bug_when>
    <thetext>I&apos;ve discussed the defect with Mark Hatle and Qi Chen. Qi is going to do an initial investigation and report here by ~ Aug 3rd.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64778</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2016-08-02 08:17:26 +0000</bug_when>
    <thetext>After talking to Saul, I&apos;ve focused on getting createrepo not dependant on python2. However, after some investigation, I found it&apos;s more complicated that I thought.

The problem is that:
&quot;createrepo-native&quot; -&gt; &quot;libxml2-native&quot; [style=solid]
&quot;createrepo-native&quot; -&gt; &quot;rpm-native&quot; [style=solid]
&quot;libxml2-native&quot; -&gt; &quot;python-native&quot; [style=solid]
&quot;rpm-native&quot; -&gt; &quot;python-native&quot; [style=solid]

So createrepo depends on rpm, and rpm requires python2 version as stated in its configure script like below.

--with-python only supports values &quot;2.x&quot;, &quot;2.3&quot;, &quot;2.4&quot;, &quot;2.5&quot;, &quot;2.6&quot; or &quot;2.7&quot;

Best Regards,
Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65756</commentid>
    <comment_count>4</comment_count>
    <who name="Fan Xin">fan.xin</who>
    <bug_when>2016-09-02 02:31:57 +0000</bug_when>
    <thetext>The conclusion about this bug is keep using smartpm until Yocto 2.2, and change to dnf from Yocto 2.3 .

My understanding is correct ?

I find that rpm5 is used in Yocto and dnf is using rpm4.
And rpm5 is not compatible with rpm4.

rpm5(www.rpm5.org)
rpm4(www.rpm.org)

Even though using dnf in Yocto 2.3, it is still a problem to solve the rpm compatible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65759</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2016-09-02 03:35:37 +0000</bug_when>
    <thetext>&gt; The conclusion about this bug is keep using smartpm until Yocto 2.2,
&gt; and change to dnf from Yocto 2.3 .

The content for YP 2.3 has not yet been decided.  But generally I believe this will be true.

YP 2.2 will definitely be smart, it&apos;s too late to change now.

We are going to strongly consider DNF for YP 2.3, but as you mentioned there are some API level compatibility issues that will have to be investigated and resolved.

So it is not yet committed for YP 2.3, but highly likely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67604</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-10-26 16:32:18 +0000</bug_when>
    <thetext>This bug may be obsoleted by 9675, I&apos;ve set a dependency to highlight there is overlap.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68314</commentid>
    <comment_count>7</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2016-11-15 06:39:08 +0000</bug_when>
    <thetext>This bug seems obsolete. I&apos;ll check with Mark and the owner of 9675 to determine whether to close it or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71160</commentid>
    <comment_count>8</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2017-03-09 09:29:12 +0000</bug_when>
    <thetext>As we&apos;ve determined to switch to dnf. Close this bug as &apos;WONTFIX&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>