diff options
author | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2024-02-28 12:25:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-06 16:54:54 +0000 |
commit | 81be53672f3456eb6af97a2e805fd5e1f0bd0906 (patch) | |
tree | c1af34fb3febc0e3d6d99f3b1a8c256d46856234 /documentation | |
parent | aca3afe8278e9eceb47e2e7c71efd0ae2c0acac2 (diff) | |
download | poky-81be53672f3456eb6af97a2e805fd5e1f0bd0906.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: 6fb06bb4a917c1515e54fa3e699119f6bbb85767)
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/tasks.rst | 12 |
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:: |