<?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>2786</bug_id>
          
          <creation_ts>2012-07-18 09:35:17 +0000</creation_ts>
          <short_desc>[LTP]/opt/ltp/Version file doesn&apos;t show the correct version of ltp</short_desc>
          <delta_ts>2013-05-27 10:57:52 +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>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Cristian Iorga">cristian.iorga</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>liang.li2</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>yi.zhao</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>23204</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-07-18 09:35:17 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23205</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-07-18 09:42:27 +0000</bug_when>
    <thetext>Tree/branch: poky/master
Commit：eb0cb7e8234f5d2e5623406e9660be91cf52f65e

Image location: http://autobuilder.pokylinux.org/pub/nightly/20120712-1/machines

The /opt/ltpVersion file shows a wrong version of ltp:
$ cat /opt/ltp/Version
1.3_M1.final-480-g89008d4

The correct version should be:
20120401</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23457</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-07-24 19:52:56 +0000</bug_when>
    <thetext>The problem here is that we seem to be picking up the results of git describe from the poky git repo, not from LTP since we download the tarball.  It might be better to just disable that git describe and always use the VERSION file since we download the tarball.

git describe seems to work differently depending on git version, which is why we see this sometime, and not across all machines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23471</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2012-07-25 06:29:03 +0000</bug_when>
    <thetext>In that case, a patch to the makefile can be added that will modify it to look for version only.
At this point, it is not clear if that patch can be upstreamed. Please advise.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33309</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-05-27 10:57:52 +0000</bug_when>
    <thetext>Tested on Ubuntu 12.10 x86-64 build system.

Target: core-image-sato-sdk qemux86-64.

the content of /opt/ltp/Version is correct:

sh-4.2# cat /opt/ltp/Version
20130109
sh-4.2# 

ltp makefile took the right decision regarding content of Version file.

ltp is built from a tarball, and git describe command is ran in the right built directory, while git returns the right error code.

root@sentry:/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/ltp/20130109-r
0/ltp-20130109# git --version
git version 1.7.10.4
root@sentry:/mnt/Yo/yoctoproject/build/tmp/work/x86_64-poky-linux/ltp/20130109-r
0/ltp-20130109# which git
/usr/bin/git</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>