Bug 7605 - git fetcher/checkpkg: the upstream version get from checkpkg seems not right.
Summary: git fetcher/checkpkg: the upstream version get from checkpkg seems not right.
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.9 M2
Assignee: Aníbal Limón
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 7927
  Show dependency tree
 
Reported: 2015-04-14 09:47 UTC by Jackie Huang
Modified: 2015-07-24 15:22 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jackie Huang 2015-04-14 09:47:31 UTC
The upstream version get from checkpkg for package using git looks like:

<latest_versionstring>+gitAUTOINC+<latest_revision_master>

which seems not right, because 

<latest_versionstring> is the release tag, but the follwoing hash valure points ot the master.

Take babeltrace as axample, it'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:

<latest_versionstring>+gitAUTOINC+<sha1_for_latest_versionstring>

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.
Comment 1 Alexander Kanavin 2015-06-30 12:04:50 UTC
Count me in, it would be great to have a clear picture of "current version tag and respective revision" vs. "latest version tag and respective revision". In the future it could be even used for semi-automatic recipe version updates.