<?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>7674</bug_id>
          
          <creation_ts>2015-04-29 02:39:19 +0000</creation_ts>
          <short_desc>populate_sdk_ext failed because no matching buildtools-tarball found</short_desc>
          <delta_ts>2015-09-15 11:19: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>OE-Core</product>
          <component>core</component>
          <version>1.8</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.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</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>50590</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-04-29 02:39:19 +0000</bug_when>
    <thetext>The error message is like below.
| install: cannot stat &apos;/buildarea2/chenqi/poky/build-systemd/tmp/deploy/sdk/poky-glibc-x86_64-buildtools-tarball-core2-64-buildtools-nativesdk-standalone-1.8+snapshot-20150429.sh&apos;: No such file or direc\
tory

How to reproduce.
1) bitbake buildtools-tarball
2) After one day, do `bitbake core-image-minimal -c populate_sdk_ext&apos;

The problem is that the output name for buildtools-tarball has ${DATE} in it.
So if populate_sdk_ext task is executed but buildtools-tarball is not rebuilt, the above error appears.

I think in install_tools() function in populate_sdk_ext.bbclass, instead of hardcoding ${DISTRO_VERSION} which contains ${DATE}, we should find the latest buildtools-tarball based on modification time and install it.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54039</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2015-09-15 02:26:21 +0000</bug_when>
    <thetext>Module: openembedded-core.git
Branch: master
Commit: fa708504d71e0b01ee97a172ac17ad16a9e3b897
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=fa708504d71e0b01ee97a172ac17ad16a9e3b897

Author: Qi.Chen@windriver.com &lt;Qi.Chen@windriver.com&gt;
Date:   Mon Sep  7 13:42:21 2015 +0100


Module: openembedded-core.git
Branch: master
Commit: 78ea4fcdea468888c0faef22a95dea7015a91df2
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=78ea4fcdea468888c0faef22a95dea7015a91df2

Author: Paul Eggleton &lt;paul.eggleton@linux.intel.com&gt;
Date:   Mon Sep  7 13:42:20 2015 +0100

classes/populate_sdk_ext: avoid poky-specific buildtools naming

Only poky sets SDK_NAME to include ${IMAGE_BASENAME} (i.e. ${PN}), so we
can&apos;t assume the buildtools filename will include it here. Change it to
look for a file with &quot;buildtools-nativesdk-standalone&quot; in the name
(the buildtools-tarball recipe itself sets TOOLCHAIN_OUTPUTNAME to
include this.)

Signed-off-by: Paul Eggleton &lt;paul.eggleton@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54072</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-09-15 11:19:30 +0000</bug_when>
    <thetext>verified on master d4585fa23d56a58c583ee33db067a23177a936b1

bitbake -c populate_sdk_ext core-image-minimal run successful next day

3280592 -rw-------. 1 valentin valentin       5089 Sep 14 18:34 poky-glibc-x86_64-buildtools-tarball-i586-buildtools-nativesdk-standalone-1.8+snapshot-20150914.host.manifest
3276801 -rwxr-xr-x. 1 valentin valentin   26902738 Sep 14 18:34 poky-glibc-x86_64-buildtools-tarball-i586-buildtools-nativesdk-standalone-1.8+snapshot-20150914.sh
3280580 -rw-------. 1 valentin valentin          0 Sep 14 18:32 poky-glibc-x86_64-buildtools-tarball-i586-buildtools-nativesdk-standalone-1.8+snapshot-20150914.target.manifest
3280666 -rw-------. 1 valentin valentin        136 Sep 15 14:13 poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-1.8+snapshot.host.manifest
3280668 -rwxr-xr-x. 1 valentin valentin 1585805917 Sep 15 14:16 poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-1.8+snapshot.sh
3280407 -rw-------. 1 valentin valentin          0 Sep 15 14:13 poky-glibc-x86_64-core-image-minimal-i586-toolchain-ext-1.8+snapshot.target.manifest</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>