<?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>5824</bug_id>
          
          <creation_ts>2014-02-14 09:24:15 +0000</creation_ts>
          <short_desc>source tarball is not recreated</short_desc>
          <delta_ts>2014-09-16 12:25:36 +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>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Dudau">adrian.dudau</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>andrax.g.necula</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          <qa_contact name="Andra Necula">andrax.g.necula</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40367</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Dudau">adrian.dudau</who>
    <bug_when>2014-02-14 09:24:15 +0000</bug_when>
    <thetext>When the BB_GENERATE_MIRROR_TARBALLS is enabled, bitbake creates the source tarball only once at the first pass and it never updates it.

This is a problem when the package version changes, as bitbake doesn&apos;t recreate the tarball from the new git repo so we end up with the old version in the tarball.


Steps to reproduce:

Fetch a package with the BB_GENERATE_MIRROR_TARBALLS enabled in local.conf:
bitbake -c fetch lttng-modules

Edit the lttng-modules recipe by specifying a different git commit in SRCREV.

bitbake -c clean lttng-modules
bitbake -c fetch lttng-modules

The tarball will not be updated and contain the old version of the package.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40397</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-02-17 17:15:52 +0000</bug_when>
    <thetext>The mirror tarball is a copy of the git metadata, not the source at any particular version. It is recreated as and when any new update from upstream is pulled in (such as new revisions).

Can you be more specific about the case where the tarball isn&apos;t being updated and you believe that it should be?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40582</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Dudau">adrian.dudau</who>
    <bug_when>2014-02-21 10:53:15 +0000</bug_when>
    <thetext>The issue is reproducible on the master branch of poky following the next steps:

1 Create a new build fodler
2 mkdir downloads inside the build folder
3 cd downloads
4 wget http://downloads.yoctoproject.org/mirror/sources/git2_git.lttng.org.lttng-modules.git.tar.gz
This is an older version of lttng-modules released with Dora; the lttng-modules version has been updated in the recipe in the meantime.
5 Add the BB_GENERATE_MIRROR_TARBALLS = &quot;1&quot; flag to local.conf
6 bitbake -c fetch lttng-modules
7 ll downloads 
The date on the file git2_git.lttng.org.lttng-modules.git.tar.gz wasn&apos;t updated, it&apos;s still 27 Aug.
8. To confirm the tarball is outdated, remove everything BUT the tarball from the downloads folder, add the flag BB_NO_NETWORK = &quot;1&quot; in the local.conf and then run again bitbake -c fetch lttng-modules. An error will occurr.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40632</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-02-24 13:01:46 +0000</bug_when>
    <thetext>Thanks for the test case, that helps immensely. I tracked down the issue to a typo:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a1faa7df2a0972fa631d3aee98c59f6b0e8eb43c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40636</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Dudau">adrian.dudau</who>
    <bug_when>2014-02-24 14:26:54 +0000</bug_when>
    <thetext>Fix confirmed. Can be closed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45631</commentid>
    <comment_count>5</comment_count>
    <who name="Andra Necula">andrax.g.necula</who>
    <bug_when>2014-09-16 12:25:36 +0000</bug_when>
    <thetext>Hi,
I followed the steps given by Adrian Dudau and the bug didn&apos;t reproduced. 
I used Ubuntu 14.04
poky a44006262cf3b810ec78b4cccd8076102a7a0f3e
I&apos;ll put this bug on verified.
Cheers! Andra N.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>