Skip to contentSkip to conversation

ref-manual/tasks.rst: Make do_clean description more explicit

PATCH Superseded anis 2 participants 2 messages Aug 10 – Aug 11

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

anis

author
#0 lore raw

PATCH 1/1 ref-manual/tasks.rst: Make do_clean description more explicit

The current do_clean task description is generic and does not specify which files will be removed.

This branch adds details about the files that are removed by explicitly listing the affected subdirectories.

---
 documentation/ref-manual/tasks.rst | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
documentation/ref-manual/tasks.rst +5 -4
index 3517d0b91..28de10d56 100644
@@ -17,7 +17,7 @@ you can run:
    $ bitbake -c listtasks recipename
    do_build                              Default task for a recipe - depends on all other normal tasks required to 'build' a recipe
    do_checkuri                           Validates the SRC_URI value
-   do_clean                              Removes all output files for a target
+   do_clean                              Removes all output files for a target (``${WORKDIR}``, sstate manifests and stamps)
    do_cleanall                           Removes all output files, shared state cache, and downloaded source files for a target
    do_cleansstate                        Removes all output files and shared state cache for a target
    do_compile                            Compiles the source in the compilation directory
@@ -501,9 +501,10 @@ You can run this task using BitBake as follows::
 
    $ bitbake -c clean recipe
 
-Running this task does not remove the
-:ref:`sstate <overview-manual/concepts:shared state cache>` cache files.
-Consequently, if no changes have been made and the recipe is rebuilt
+Running this task does remove the ``${``\ :term:`WORKDIR`\ ``}``, the sstate manifests
+and the stamps.
+However, it does not remove the :ref:`sstate <overview-manual/concepts:shared state cache>`
+cache files. Consequently, if no changes have been made and the recipe is rebuilt
 after cleaning, output files are simply restored from the sstate cache.
 If you want to remove the sstate cache files for the recipe, you need to
 use the :ref:`ref-tasks-cleansstate` task instead
Signature · 1 line
2.50.1 (Apple Git-155)
#1 lore raw

Hi,

Quoted 4 lines · anis via lists.yoctoproject.org

The current do_clean task description is generic and does not specify which files will be removed.

This branch adds details about the files that are removed by

This branch? I guess you mean this patch / this commit?

Quoted 12 lines

explicitly listing the affected subdirectories.

---
 documentation/ref-manual/tasks.rst | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
documentation/ref-manual/tasks.rst +0 -0
index 3517d0b91..28de10d56 100644

documentation/ref-manual/tasks.rst you can run: · line 20

Quoted 5 lines
documentation/ref-manual/tasks.rst +1 -1
@@ -17,7 +17,7 @@ you can run:
    $ bitbake -c listtasks recipename
    do_build                              Default task for a recipe - depends on all other normal tasks required to 'build' a recipe
    do_checkuri                           Validates the SRC_URI value
-   do_clean                              Removes all output files for a target
+   do_clean                              Removes all output files for a target (``${WORKDIR}``, sstate manifests and stamps)

Since this is an excerpt from the listtasks task, this output should reflect what's shown in reality. Maybe you should suggest this change to OE-Core to change the "doc" flag for the task directly?

documentation/ref-manual/tasks.rst You can run this task using BitBake as follows:: · line 504

Quoted 11 lines
documentation/ref-manual/tasks.rst +1 -3
    do_cleanall                           Removes all output files, shared state cache, and downloaded source files for a target
    do_cleansstate                        Removes all output files and shared state cache for a target
    do_compile                            Compiles the source in the compilation directory
@@ -501,9 +501,10 @@ You can run this task using BitBake as follows::
 
    $ bitbake -c clean recipe
 
-Running this task does not remove the
-:ref:`sstate <overview-manual/concepts:shared state cache>` cache files.
-Consequently, if no changes have been made and the recipe is rebuilt
+Running this task does remove the ``${``\ :term:`WORKDIR`\ ``}``, 

"does remove" -> "removes" feels better here

Suggestion:

"the ``${``\ :term:WORKDIR\ ``}``" -> "the working directory of the recipe (represented by its :term:WORKDIR value)"

documentation/ref-manual/tasks.rst You can run this task using BitBake as follows:: · line 505

Quoted 1 line
documentation/ref-manual/tasks.rst +1 -0
+the sstate manifests and the stamps.

:ref:stamps <overview-manual/concepts:Stamp Files and the Rerunning of Tasks>

Tried to find a reference for sstate manifest files but couldn't find any :/

documentation/ref-manual/tasks.rst You can run this task using BitBake as follows:: · line 510

Quoted 5 lines
documentation/ref-manual/tasks.rst +2 -0
+However, it does not remove the :ref:`sstate <overview-manual/concepts:shared state cache>`
+cache files. Consequently, if no changes have been made and the recipe is rebuilt
 after cleaning, output files are simply restored from the sstate cache.
 If you want to remove the sstate cache files for the recipe, you need to
 use the :ref:`ref-tasks-cleansstate` task instead

Thanks!
Antonin