<?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>11406</bug_id>
          
          <creation_ts>2017-04-24 22:39:55 +0000</creation_ts>
          <short_desc>Add --dist-clean, --force, or some other flag to &apos;devtool reset&apos; to clean all recipe cruft</short_desc>
          <delta_ts>2025-02-14 16:48:18 +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>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>.</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Kurle">brianx.j.kurle</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72803</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Kurle">brianx.j.kurle</who>
    <bug_when>2017-04-24 22:39:55 +0000</bug_when>
    <thetext>While working with creation of reproducible steps via devtool within an installed eSDK, an additional flag would be desired that would force a cleaning of all the cruft generated (e.g., sources/&lt;recipe&gt;*, attic/&lt;recipe&gt;*, downloads/&lt;recipe&gt;*, tmp/work/*/&lt;recipe&gt;*, and any other places droppings related to the recipe). 

devtool reset &lt;recipe&gt; in this scenerio is usually followed by several other steps to restore a prestine environment (i.e., before the devtool add &lt;recipe&gt; was performed), and this is tedious and error prone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72847</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-04-25 20:53:33 +0000</bug_when>
    <thetext>I&apos;d avoided adding an option like this particularly with regard to the source tree for fear of users getting in the habit of using it every time until that one day when they forget to save their work within the source tree, and then devtool complies and trashes it. Then again, they could just as easily rm -rf it as instructed and end up in the same situation.

However, even if we do go ahead and add it, I would like to try to avoid users needing to use this option as much as possible by fixing any issues caused by cruft hanging around. Other than the annoyance of sources/&lt;recipe&gt; triggering an error when repeating the same devtool add, any warnings you get about files in the attic, and bug 11407, are there any other issues you have hit because of files being left around that this option would clear out?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72848</commentid>
    <comment_count>2</comment_count>
    <who name="Brian Kurle">brianx.j.kurle</who>
    <bug_when>2017-04-25 22:05:17 +0000</bug_when>
    <thetext>I&apos;ve occasionally encountered inexplicable build errors and reconfiguration problems.  Generally it is from getting a recipe or command incorrect (e.g., wrong URL), attempting to reset the recipe in the workspace and redoing it.  The desire is to make the environment pristine for just the recipe desired (or all if -a) without blowing away the entire eSDK (or chasing all the caches to selectively remove), reinstall and rebuild.  If it was only a couple locations to remove, I&apos;d have been fine.  As I started writing a script to clean the caches and various other locations, I thought it be better if it was included in devtool, itself.

Use cases:  Working through steps to refine a demo example workflow for a team.  Similarly, reworking steps (and correcting errors in steps) for documentation on examples relevant to a team project.  (both variants being where I&apos;ve encountered these problems).

The very nicety of the cache can come back to haunt you when you don&apos;t expect it (e.g., wrong URL, but same filename in URL).

I appreciate not wanting users to shoot themselves in the foot, but there are uses for the -f (even with rm, cp, mv, ln, et al.)  The parameter shouldn&apos;t be a normal use case (as -f in most cases isn&apos;t normal), but one for the exceptional cases.  

I would argue that requiring the user to explicitly state they wish to shoot their foot off is acceptable as you can point back to the command issued and state you accepted the terms and consequences thereof.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93587</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-06-23 15:12:19 +0000</bug_when>
    <thetext>We many not want fix this one for the reasons Paul mentioned in comment 1.
We have to be careful with user data!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96929</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:45 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101002</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:46:33 +0000</bug_when>
    <thetext>bulk change to add Saul&apos;s non-WR address.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101050</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2025-02-14 16:48:18 +0000</bug_when>
    <thetext>Bulk change: Remove Saul&apos;s old WR address.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>