<?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>3116</bug_id>
          
          <creation_ts>2012-09-14 02:59:50 +0000</creation_ts>
          <short_desc>sstate-cache-management.sh prints some error message when running</short_desc>
          <delta_ts>2012-11-14 09:48:42 +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>devtools / tool chain</component>
          <version>1.3</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.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Martin Jansa">Martin.Jansa</assigned_to>
          <cc>liang.li2</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</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>25234</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-09-14 02:59:50 +0000</bug_when>
    <thetext>Branch: poky/1.3_M4
Gitinfo: dd3edc9fbb674682947e8218202fdbeef8635dd5

When running sstate-cache-management.sh in a build directory. I got the following error message:
###########
builder@pek-yocto-build2:/buildarea1/yzhao1/poky/build-qemuppc$  ../scripts/sstate-cache-management.sh --cache-dir=./sstate-cache -d
Figuring out the archs in the layers ... find: `/buildarea1/yzhao1/meta*&apos;: No such file or directory
find: `/buildarea1/yzhao1/meta*&apos;: No such file or directory
Done
Figuring out the archs in the sstate cache dir ... Done
The following archs have been found in the cache dir:
ppc603e qemuppc x86_64

Figuring out the sstate-xxx_deploy-rpm.tgz ... (6 files will be removed)
Figuring out the sstate-xxx_deploy-ipk.tgz ... (0 files will be removed)
Figuring out the sstate-xxx_deploy-deb.tgz ... (0 files will be removed)
Figuring out the sstate-xxx_deploy.tgz ... (0 files will be removed)
Figuring out the sstate-xxx_package.tgz ... (6 files will be removed)
Figuring out the sstate-xxx_populate-lic.tgz ... (2 files will be removed)
Figuring out the sstate-xxx_populate-sysroot.tgz ... (6 files will be removed)
20 files will be removed! Do you want to continue (y/n)? 
############

meta* directories should be in /buildarea1/yzhao1/poky/ , but somehow the script searches the upper directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25832</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-09-27 07:35:40 +0000</bug_when>
    <thetext>Patch sent to ML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25952</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-09-29 02:23:13 +0000</bug_when>
    <thetext>Hi Martin,

I saw your patch had been merged. Would you please add the cgit link and mark the status as RESOLVED ?  Then we will verify it. Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25955</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-09-29 07:21:47 +0000</bug_when>
    <thetext>http://git.openembedded.org/openembedded-core/commit/?id=b02d334e0e6a19a1bf3550add68f5770a835c772</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26390</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-10-09 06:19:02 +0000</bug_when>
    <thetext>The patch didn&apos;t fix the issue. It still happened. 

gitinfo: danny/86c9aa8081f107420cd3763d0566d779daddc2b1

##########
$ ../scripts/sstate-cache-management.sh --cache-dir=./sstate-cache -d
Figuring out the archs in the layers ... find: `/buildarea1/yzhao1/meta*&apos;: No such file or directory
Done
Figuring out the archs in the sstate cache dir ... Done
The following archs have been found in the cache dir:
mips32 qemumips x86_64
...
...
###########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26399</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-10-09 07:38:12 +0000</bug_when>
    <thetext>There is second fine above that, try:

diff --git a/scripts/sstate-cache-management.sh b/scripts/sstate-cache-management.sh
index 4c06fe8..551d2f2 100755
--- a/scripts/sstate-cache-management.sh
+++ b/scripts/sstate-cache-management.sh
@@ -172,7 +172,7 @@ remove_duplicated () {
   echo -n &quot;Figuring out the archs in the layers ... &quot;
   oe_core_dir=$(dirname $(dirname $(readlink -e $0)))
   topdir=$(dirname $oe_core_dir)
-  tunedirs=&quot;`find $topdir/meta* ${oe_core_dir}/meta* $layers -path &apos;*/meta*/conf/machine/include&apos;`&quot;
+  tunedirs=&quot;`find $topdir/meta* ${oe_core_dir}/meta* $layers -path &apos;*/meta*/conf/machine/include&apos; 2&gt;/dev/null`&quot;
   [ -n &quot;$tunedirs&quot; ] || echo_error &quot;Can&apos;t find the tune directory&quot;
   all_machines=&quot;`find $topdir/meta* ${oe_core_dir}/meta* $layers -path &apos;*/meta*/conf/machine/*&apos; -name &apos;*.conf&apos; 2&gt;/dev/null | sed -e &apos;s/.*\///&apos; -e &apos;s/.conf$//
   all_archs=`grep -r -h &quot;^AVAILTUNES .*=&quot; $tunedirs | sed -e &apos;s/.*=//&apos; -e &apos;s/\&quot;//g&apos;`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26403</commentid>
    <comment_count>6</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-10-09 09:26:20 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; There is second fine above that, try:
&gt; 
&gt; diff --git a/scripts/sstate-cache-management.sh
&gt; b/scripts/sstate-cache-management.sh
&gt; index 4c06fe8..551d2f2 100755
&gt; --- a/scripts/sstate-cache-management.sh
&gt; +++ b/scripts/sstate-cache-management.sh
&gt; @@ -172,7 +172,7 @@ remove_duplicated () {
&gt;    echo -n &quot;Figuring out the archs in the layers ... &quot;
&gt;    oe_core_dir=$(dirname $(dirname $(readlink -e $0)))
&gt;    topdir=$(dirname $oe_core_dir)
&gt; -  tunedirs=&quot;`find $topdir/meta* ${oe_core_dir}/meta* $layers -path
&gt; &apos;*/meta*/conf/machine/include&apos;`&quot;
&gt; +  tunedirs=&quot;`find $topdir/meta* ${oe_core_dir}/meta* $layers -path
&gt; &apos;*/meta*/conf/machine/include&apos; 2&gt;/dev/null`&quot;
&gt;    [ -n &quot;$tunedirs&quot; ] || echo_error &quot;Can&apos;t find the tune directory&quot;
&gt;    all_machines=&quot;`find $topdir/meta* ${oe_core_dir}/meta* $layers -path
&gt; &apos;*/meta*/conf/machine/*&apos; -name &apos;*.conf&apos; 2&gt;/dev/null | sed -e &apos;s/.*\///&apos; -e
&gt; &apos;s/.conf$//
&gt;    all_archs=`grep -r -h &quot;^AVAILTUNES .*=&quot; $tunedirs | sed -e &apos;s/.*=//&apos; -e
&gt; &apos;s/\&quot;//g&apos;`

This patch could work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26499</commentid>
    <comment_count>7</comment_count>
    <who name="Song Liu">song.liu</who>
    <bug_when>2012-10-10 23:15:52 +0000</bug_when>
    <thetext>Hi Martin,

The patch has been merged. Would you please mark this as resolved?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26506</commentid>
    <comment_count>8</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2012-10-11 07:04:16 +0000</bug_when>
    <thetext>http://git.openembedded.org/openembedded-core/commit/?id=bde88116d9d7e86ca7ecac4cf990689f972b0b1c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27428</commentid>
    <comment_count>9</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-11-14 09:48:42 +0000</bug_when>
    <thetext>Verified with 1.3 danny branch.
gitinfo: 27af23e65f63b41962a7cfddba9e9372d5212396</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>