<?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>3635</bug_id>
          
          <creation_ts>2012-12-21 20:40:47 +0000</creation_ts>
          <short_desc>sstate-cache-management script does not remove anything</short_desc>
          <delta_ts>2013-03-08 05:44:38 +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.4</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.4 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>kai.kang</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>Martin.Jansa</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenfeng.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>28427</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-12-21 20:40:47 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.17.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-12.04&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20121221&quot;
TUNE_FEATURES     = &quot;m64&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;(nobranch):90c0eb29f0b41e4ac2d3d17ebad7295c2ebdc02a&quot;


1. Download poky source and prepare the build environment.
2. Follow the wiki steps to setup a sstate cache on local machine,
https://wiki.yoctoproject.org/wiki/Enable_sstate_cache
3. Run &quot;bitbake core-image-minimal&quot; to build a image.
4. Set MACHINE to another architecture. Run &quot;bitbake core-image-minimal&quot; to build a image.
5. Run script ../scripts/sstate-cache-management.sh --cache-dir=sstate-cache --remove-duplicated and check the ouput.

Notice nothing is reported to be removed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28628</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2013-01-08 17:28:03 +0000</bug_when>
    <thetext>This bug is for denzil, if this issue also exists in master, please file a *separate* bug for that, since the issue can be fixed in different branches at different times.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28629</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-01-08 18:13:16 +0000</bug_when>
    <thetext>Actually this issue is for master, as the commit: 90c0eb29f0b41e4ac2d3d17ebad7295c2ebdc02a belongs to master. I actually passed this test in denzil: 3456295898bf157e40ea1f8c335f0b7285d3d8a7 .

As with 3633, I made a mistake and I did not specify the branch when posting.

I am sorry for the confusion on this. Won&apos;t happen again! I will let you change the version and milestone in case I missed something here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28674</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2013-01-09 17:12:35 +0000</bug_when>
    <thetext>Thanks for clarifying - setting version and milestone back to 1.4 and assigning to Robert as per discussion with Saul.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30101</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-02-26 06:12:54 +0000</bug_when>
    <thetext>https://bugzilla.yoctoproject.org/show_bug.cgi?id=2897
See comment#28 for some info.

To rebuild from sstate-cache correctly both archs are needed.
So setting MACHINE to another arch should result in nothing being removed, I guess.

Best Regards,
Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30102</commentid>
    <comment_count>5</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-02-26 07:14:30 +0000</bug_when>
    <thetext>This is not a bug, the implementation of `--remove-duplicated&apos; has been
modified by the following commit:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=0740f82aea92da0195524e37c372f9981e7f5e6d

In above commit, sstate cache files with multiple archs is not considered
duplicate and don&apos;t need to be removed as duplicated any more.

The description of `--remove-duplicated&apos; in usage is not consistent
with implementation and it is should be updated.

But there are other defects in sstate-cache-management.sh:
1, The variable of sstate_suffixes is hardcoed and it misses `packagedata&apos;.
   The better way is to assign sstate_suffixes dynamically.

2, The description of option `-d&apos; is not correct in useage. It is used to
   remove duplicated and debug at the same time.

I will fix them and don&apos;t file another bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30298</commentid>
    <comment_count>6</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2013-03-01 00:45:40 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a18e02b01fdf19b98534fb8a8824069de89d3d42</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30559</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-03-08 05:44:38 +0000</bug_when>
    <thetext>Verified with master branch: 164a4cb2fc64e76836182ad2d412343a7b26b964

The &quot;packagedata&quot; sstate_suffix now can be found in the cache directory:
########
...
...
Figuring out the suffixes in the sstate cache dir ... Done
The following suffixes have been found in the cache dir:
deploy deploy-deb deploy-ipk deploy-rpm package packagedata populate-lic populate-sysroot
...
...
########</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>