summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@bootlin.com>2024-02-28 12:25:15 +0100
committerSteve Sakoman <steve@sakoman.com>2024-03-16 08:33:21 -1000
commit2040697f1c55c1e60018d439af76a3fc980f815d (patch)
treeff997b939f51e29ade0cc89d57b06febcc64395e
parent05fc0002721ed1bed8031d90ba27e0669412f1c0 (diff)
downloadpoky-2040697f1c55c1e60018d439af76a3fc980f815d.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: fe023e48a5014e838fb74b77cdf8b0d546db0d21) 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.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/documentation/ref-manual/tasks.rst b/documentation/ref-manual/tasks.rst
index 16b48ca0bc..c28cd7a94a 100644
--- a/documentation/ref-manual/tasks.rst
+++ b/documentation/ref-manual/tasks.rst
@@ -516,6 +516,18 @@ scratch is guaranteed.
516 516
517.. note:: 517.. note::
518 518
519 Using :ref:`ref-tasks-cleansstate` with a shared :term:`SSTATE_DIR` is
520 not recommended because it could trigger an error during the build of a
521 separate BitBake instance. This is because the builds check sstate "up
522 front" but download the files later, so it if is deleted in the
523 meantime, it will cause an error but not a total failure as it will
524 rebuild it.
525
526 The reliable and preferred way to force a new build is to use ``bitbake
527 -f`` instead.
528
529.. note::
530
519 The :ref:`ref-tasks-cleansstate` task cannot remove sstate from a remote sstate 531 The :ref:`ref-tasks-cleansstate` task cannot remove sstate from a remote sstate
520 mirror. If you need to build a target from scratch using remote mirrors, use 532 mirror. If you need to build a target from scratch using remote mirrors, use
521 the "-f" option as follows:: 533 the "-f" option as follows::