<?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>1511</bug_id>
          
          <creation_ts>2011-09-22 05:13:03 +0000</creation_ts>
          <short_desc>Support versioned scm snapshots for mirroring</short_desc>
          <delta_ts>2015-08-18 23:20:30 +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>enhancement</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Koen Kooi">koen</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>cbrake</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>kergoth</cc>
    
    <cc>lpapp</cc>
    
    <cc>Martin.Jansa</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>16395</commentid>
    <comment_count>0</comment_count>
    <who name="Koen Kooi">koen</who>
    <bug_when>2011-09-22 05:13:03 +0000</bug_when>
    <thetext>OE classic could generate both versioned and unversioned scm snapshots, OE core (or rather bitbake/fetch2) can only do unversioned and versioned per SRC_URI.

Versioned tarballs serves 2 purposes:

1) an easy way to check GPL compliance, an &apos;ls | grep&apos; is enough
2) deterministic mirroring

A quick hack to have a global switch for it can be found at:

http://patches.openembedded.org/patch/11971/

From a mirror consumption perspective a workflow could be:

1) see if rev exists
2) try pulling
3) try versioned tarball
4) extract tarball into tmpdir, fetch objects into DL_DIR/git2 repo

That would stop things from being blown away. It does allow the  
versioned snapshots to differ, but they will always have the rev they  
were versioned with.

The order for mirror searches could be:

1. Specific Revision X tarball
2. generic mirror tarball
3. git clone

For more info see the thread at http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/7888</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36053</commentid>
    <comment_count>1</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-08-29 16:58:20 +0000</bug_when>
    <thetext>Any progress on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41824</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-03-27 10:56:20 +0000</bug_when>
    <thetext>The git fetcher now supports a &quot;rebaseable&quot; flag for git repos in SRC_URI. If that is set, a tarball is generated per git revision. I believe this issue is therefore now resolved and has been for a while, not sure why the bug status never got fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>