<?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>586</bug_id>
          
          <creation_ts>2010-12-12 22:57:14 +0000</creation_ts>
          <short_desc>poky sdk version can&apos;t be decided simply by build date</short_desc>
          <delta_ts>2010-12-21 06:07:17 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</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.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="liping Ke">liping.ke</reporter>
          <assigned_to name="Jessica">jessica.zhang</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>josh</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</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>11088</commentid>
    <comment_count>0</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2010-12-12 22:57:14 +0000</bug_when>
    <thetext>We found that now poky sdk version are decided by build date. So when we build a tree, if the same set of packages (native cross, etc), if they&apos;re generating @ two days, it will cause problem. Some packages are of one version and others are of another version. 

Thanks&amp; Regards,
criping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11089</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2010-12-12 23:17:04 +0000</bug_when>
    <thetext>The current DISTRO_VERSION is defined as &quot;0.9+snapshot-${DATE}&quot; in meta/conf/distro/poky.conf. This value is also used in SDKPATH to specify the SDK version. The ${DATE} would result the variable SDKPATH value due to the different building time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11090</commentid>
    <comment_count>2</comment_count>
    <who name="Ke Yu">ke.yu</who>
    <bug_when>2010-12-13 00:11:55 +0000</bug_when>
    <thetext>or should we change it to the date of latest poky git commit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11091</commentid>
    <comment_count>3</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2010-12-13 00:27:36 +0000</bug_when>
    <thetext>Hi, Ke

Actually I think SDK version should be relatively stable. Only when we feel that new features added and SDK version should be added (eg, 1.0 released, or 1.0 update released), should we change the SDK version? I am not sure...

criping

(In reply to comment #2)
&gt; or should we change it to the date of latest poky git commit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11114</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2010-12-13 03:58:02 +0000</bug_when>
    <thetext>Using DATE in the distro version is just an easy way to tell you are using a development build.

I felt it made sense to use the distro version as the SDK version also as it make it easier to tell which distro the SDK was built for. 

As the proposed usage model for users is to develop against a stable release you could do wild card matching on the date element for development?

Any way, I&apos;m not especially attached to the SDK version I implemented. Just thought it worth explaining my reasoning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11115</commentid>
    <comment_count>5</comment_count>
    <who name="Kevin Tian">kevin.tian</who>
    <bug_when>2010-12-13 04:05:51 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Using DATE in the distro version is just an easy way to tell you are using a
&gt; development build.
&gt; I felt it made sense to use the distro version as the SDK version also as it
&gt; make it easier to tell which distro the SDK was built for. 
&gt; As the proposed usage model for users is to develop against a stable release
&gt; you could do wild card matching on the date element for development?
&gt; Any way, I&apos;m not especially attached to the SDK version I implemented. Just
&gt; thought it worth explaining my reasoning.

when your reason is reasonable, I still think that we need a separate SDK_VERSION explicitly here. We can stamp it to distro version, or even use a wild card matching as you said or some other version schemes, but we do that under this new variable which makes things clear and more maintainable. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11144</commentid>
    <comment_count>6</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-12-13 14:33:28 +0000</bug_when>
    <thetext>Since the DATE element is only included in the DISTRO_VERSION for development, then I&apos;d suggest that our SDK_VERSION logic to be as:
If DISTRO_VERSION contains snapshot
SDK_VERSION = 0.9+snapshot (stripe off the date part)
Else
SDK_VERSION = DISTRO_VERSION (which means the DISTRO is a stablized and meaningful version, e.g. M3_RC1, etc, or 1.0 relrease, etc.)

SDKPATH = &quot;/opt/${DISTRO}/${SDK_VERSION}&quot;

This way we can easily link the SDK_VERSION to DISTRO_VERSION and avoid the unnecessary version issue during the development cycle...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11160</commentid>
    <comment_count>7</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2010-12-14 14:21:24 +0000</bug_when>
    <thetext>Fixed and sent out pull request for http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=jzhang/sdkversion</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>