<?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>2233</bug_id>
          
          <creation_ts>2012-04-02 22:59:18 +0000</creation_ts>
          <short_desc>invalid error message &quot;Package version for package ... went backwards&quot;</short_desc>
          <delta_ts>2012-04-14 11:16:21 +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>Other YP Layers</product>
          <component>layers</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>(1.2)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andreas Oberritter">obi</reporter>
          <assigned_to name="Lianhao Lu">lianhao.lu</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>meta.layer.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</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>19804</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Oberritter">obi</who>
    <bug_when>2012-04-02 22:59:18 +0000</bug_when>
    <thetext>When appending strings to PR, errors like these appear, causing bitbake to return a non-zero exit code:

ERROR: Package version for package mtd-utils-dbg went backwards which would break package feeds from (0:1.4.9-r1 to 0:1.4.9-r1-dream1)
ERROR: Package version for package mtd-utils-staticdev went backwards which would break package feeds from (0:1.4.9-r1 to 0:1.4.9-r1-dream1)
ERROR: Package version for package mtd-utils went backwards which would break package feeds from (0:1.4.9-r1 to 0:1.4.9-r1-dream1)
ERROR: Package version for package mtd-utils-doc went backwards which would break package feeds from (0:1.4.9-r1 to 0:1.4.9-r1-dream1)
ERROR: Package version for package mtd-utils-dev went backwards which would break package feeds from (0:1.4.9-r1 to 0:1.4.9-r1-dream1)
ERROR: Package version for package mtd-utils-locale went backwards which would break package feeds from (0:1.4.9-r1 to 0:1.4.9-r1-dream1)

However, the feed isn&apos;t broken. Running opkg upgrade works as expected:

Upgrading mtd-utils on root from 1.4.9-r1 to 1.4.9-r1-dream1...

This also happens with &quot;r1&quot; vs. &quot;r1.1&quot;, for example.

On Feb 24, I reported this to the OE-Core mailing list.
http://comments.gmane.org/gmane.comp.handhelds.openembedded.core/15986

Regards,
Andreas</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20043</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2012-04-09 03:35:06 +0000</bug_when>
    <thetext>Some initial investigation result at 
http://lists.linuxtogo.org/pipermail/bitbake-devel/2012-April/002641.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20126</commentid>
    <comment_count>2</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2012-04-10 14:18:20 +0000</bug_when>
    <thetext>This bug should be fixed in the following steps:

1. update opkg-compare-versions to match the latest opkg.
2. modify the bitbake bb.utils.vercmp() to match opkg.
3. check bitbake bb.utils.vercmp_string() if it&apos;s consistent with opkg.
4. check if the above steps results different build result, especially the rpm build and other openembedded build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20226</commentid>
    <comment_count>3</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2012-04-12 09:38:22 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; This bug should be fixed in the following steps:
&gt; 
&gt; 1. update opkg-compare-versions to match the latest opkg.
The patch for opkg-utils upgrade is at http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=llu/opkg-utils&amp;id=bffb0b638d931fb399fdc1d9d455c661a6c141ce, pending for review &amp; merge.

We also need a update to opkg-utils&apos; recipe in metadata after the upstream check in the above patch.

&gt; 2. modify the bitbake bb.utils.vercmp() to match opkg.
The patch is sent out for review/merge at
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=llu/vercmp_bitbake&amp;id=00fda8f184223f4e189786da33d2c7d6b9c617fe.

&gt; 3. check bitbake bb.utils.vercmp_string() if it&apos;s consistent with opkg.
&gt; 4. check if the above steps results different build result, especially the rpm
&gt; build and other openembedded build.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20364</commentid>
    <comment_count>4</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2012-04-14 11:16:21 +0000</bug_when>
    <thetext>This bug is fixed by the following commits:

opkg-utils:
http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/commit/?id=16665959c330b5958c0f0f4624a9ca7f823f98de

bitbake:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=811f7d8ebfe9d55b0244d8284a04b0ef6902adbb

meta data:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f09a5e176f74985363b65e473ff833801613d25e (contributed by RP)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>