<?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>1949</bug_id>
          
          <creation_ts>2012-02-01 12:42:28 +0000</creation_ts>
          <short_desc>Need information on the various &quot;clean&quot; tasks and when to use them</short_desc>
          <delta_ts>2014-09-05 08:25:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Quick Start</product>
          <component>quick-start</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>5 Sept 2014: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Rifenbark">srifenbark</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18448</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-02-01 12:42:28 +0000</bug_when>
    <thetext>The documentation needs to provide some guidance on using the various clean tasks with bitbake.  At this point I don&apos;t know where to place this information.  

Here is some fundamental information from Richard.

--------- PURDIE EMAIL ---------------

There are several &quot;clean&quot; tasks:

&quot;clean&quot; - This removes the output from the unpack task onwards
(unpack/patch/configure/compile/install/package)&quot;

&quot;cleansstate&quot; - This removes everything clean would but also includes
any sstate data. This means that when the task reruns, there would no
longer be any sstate to use and a build from scratch of the recipe is
guaranteed.

&quot;cleanall&quot; - This is &quot;cleansstate&quot; plus removing all data related to the
downloads. This effectively causes the fetch task to run from scratch.

In general, most users would use &quot;clean&quot;. &quot;cleansstate&quot; is a belt and
braces to ensure any existing sstate package isn&apos;t reused. Its unlikely
most users would need &quot;cleanall&quot; but the option exists if they did want
to remove all downloaded sources as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20847</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-04-24 22:47:35 +0000</bug_when>
    <thetext>Accepted:  Needs to be categorized under &quot;Development Manual&quot; when that category is set up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36923</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-09-19 00:43:40 +0000</bug_when>
    <thetext>Pushing out past 1.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38398</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-10-31 19:30:32 +0000</bug_when>
    <thetext>I need to be sure this information gets into the re-written BitBake manual.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43971</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-06-16 09:11:46 +0000</bug_when>
    <thetext>Hi, 

I have updated the following sections to provide a bit more information on these clean tasks.

  http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#ref-tasks-clean

  http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#ref-tasks-cleanall

  http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#ref-tasks-cleansstate

In addition to this, I made sure the manual set references these sections appropriately when discussing use of these tasks from the BB command line.

I am marking as IN PROGRESS REVIEW.  Please look this over and let me know if it is good.

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44012</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-06-17 10:31:11 +0000</bug_when>
    <thetext>Need to add do_populate_sysroot and do_deploy to the list of clean tasks although its still not a complete list (nor is it possible to give one).

Add a caveat to do_cleansstate that highlights that it cannot remove sstate from a remote sstate mirror. If a try from scratch build is required with remote sstate mirrors, the -f option should be used.

Maybe also highlight that do_cleanall removes files from DL_DIR?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44026</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-06-17 14:01:13 +0000</bug_when>
    <thetext>Hi, 

Thanks for the feedback.  Please review these tasks:

 http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#ref-tasks-populate_sysroot

 http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#deploy

 http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#cleansstate

 http://www.yoctoproject.org/docs/1.7/ref-manual/ref-manual.html#cleanall

Let me know of further changes. 

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44794</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-07-29 06:43:40 +0000</bug_when>
    <thetext>Hi, 

I still need a review of these sections. 

thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45411</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-09-05 08:25:58 +0000</bug_when>
    <thetext>No feedback on this in five weeks.  I am marking it RESOLVED and setting the Doc flag to &quot;Done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>