<?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>7605</bug_id>
          
          <creation_ts>2015-04-14 09:47:31 +0000</creation_ts>
          <short_desc>git fetcher/checkpkg: the upstream version get from checkpkg seems not right.</short_desc>
          <delta_ts>2015-07-24 15:22:33 +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>BitBake</product>
          <component>bitbake</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>normal</bug_severity>
          <target_milestone>1.9 M2</target_milestone>
          
          <blocked>7927</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jackie Huang">jackie.huang</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>jose.a.lamego</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>50289</commentid>
    <comment_count>0</comment_count>
    <who name="Jackie Huang">jackie.huang</who>
    <bug_when>2015-04-14 09:47:31 +0000</bug_when>
    <thetext>The upstream version get from checkpkg for package using git looks like:

&lt;latest_versionstring&gt;+gitAUTOINC+&lt;latest_revision_master&gt;

which seems not right, because 

&lt;latest_versionstring&gt; is the release tag, but the follwoing hash valure points ot the master.

Take babeltrace as axample, it&apos;s confusing if we see:
http://recipes.yoctoproject.org/

The upstream version listed is: 1.2.4+gitAUTOINC+3730724040

but if we compile it, we get:
tmp/work/core2-64-poky-linux/babeltrace/1.2.4+gitAUTOINC+90395824ef-r0/

Checked the git repo of babeltrace, the commit for tag v1.2.4 is:
$ git log -1 --oneline v1.2.4
9039582 Version 1.2.4


I think it should be changed to:

&lt;latest_versionstring&gt;+gitAUTOINC+&lt;sha1_for_latest_versionstring&gt;

Maybe we should add a method like the _get_tag_sha1(self, new_tag) in http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/tree/gitrecipe.py

for the bitbake git fetcher.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52043</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2015-06-30 12:04:50 +0000</bug_when>
    <thetext>Count me in, it would be great to have a clear picture of &quot;current version tag and respective revision&quot; vs. &quot;latest version tag and respective revision&quot;. In the future it could be even used for semi-automatic recipe version updates.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52374</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-07-15 00:36:04 +0000</bug_when>
    <thetext>At,

http://lists.openembedded.org/pipermail/bitbake-devel/2015-July/006034.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52588</commentid>
    <comment_count>3</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-07-24 15:22:33 +0000</bug_when>
    <thetext>Merged at,

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/bitbake/lib/bb?id=bd5167d154ac04dbecbda3a157ae8ef6304e0b4e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>