diff options
author | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2024-02-28 12:25:15 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-03-25 04:11:26 -1000 |
commit | 0b59f7efc60e7a971716e51a77e10c0af0e1ba27 (patch) | |
tree | 2e668a2e57a40350f58d2617ba018634f584029f | |
parent | 59b33ce49732b3dcc0311563c21a02c90322fdab (diff) | |
download | poky-0b59f7efc60e7a971716e51a77e10c0af0e1ba27.tar.gz |
ref-manual: tasks: do_cleansstate: recommend using '-f' instead for a shared sstate
do_cleansstat can produce build errors when using a shared sstate cache.
Add a note to clearly discourage, provide a safe alternative (bitbake -f),
and the rationale.
Suggested-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Link: https://lore.kernel.org/yocto-docs/20240219155513.76738-1-luca.ceresoli@bootlin.com/T/#m5529687ecb0f9ec2dacddcb6ff58e2df73af9cde
(From yocto-docs rev: 3fb8b5ad7edfa186744396deb7111ba3e31a857b)
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | documentation/ref-manual/tasks.rst | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst index a3258fda55..0f1f95b9ff 100644 --- a/documentation/ref-manual/tasks.rst +++ b/documentation/ref-manual/tasks.rst | |||
@@ -527,7 +527,19 @@ scratch is guaranteed. | |||
527 | 527 | ||
528 | .. note:: | 528 | .. note:: |
529 | 529 | ||
530 | The ``do_cleansstate`` task cannot remove sstate from a remote sstate | 530 | Using :ref:`ref-tasks-cleansstate` with a shared :term:`SSTATE_DIR` is |
531 | not recommended because it could trigger an error during the build of a | ||
532 | separate BitBake instance. This is because the builds check sstate "up | ||
533 | front" but download the files later, so it if is deleted in the | ||
534 | meantime, it will cause an error but not a total failure as it will | ||
535 | rebuild it. | ||
536 | |||
537 | The reliable and preferred way to force a new build is to use ``bitbake | ||
538 | -f`` instead. | ||
539 | |||
540 | .. note:: | ||
541 | |||
542 | The :ref:`ref-tasks-cleansstate` task cannot remove sstate from a remote sstate | ||
531 | mirror. If you need to build a target from scratch using remote mirrors, use | 543 | mirror. If you need to build a target from scratch using remote mirrors, use |
532 | the "-f" option as follows:: | 544 | the "-f" option as follows:: |
533 | 545 | ||