diff options
author | Quentin Schulz <foss@0leil.net> | 2020-10-18 19:57:11 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-04 10:55:01 +0000 |
commit | cbad23de16eef6f5c2082b950fcee56299cb6024 (patch) | |
tree | d3b43e70536266a6d296f0c2ddd554f06668079b /documentation/dev-manual | |
parent | cb040a46506dbfec7512625e6610623aa7080df6 (diff) | |
download | poky-cbad23de16eef6f5c2082b950fcee56299cb6024.tar.gz |
docs: dev-manual-common-tasks: remove paragraph about race when missing DEPENDS
Missing DEPENDS were an issue before rocko (2.4) because of a shared global
sysroot. Since then, every recipe has its own sysroot, it is not possible
to build successfully a recipe without all DEPENDS. Therefore, races in
tasks possibly triggered by missing DEPENDS are a thing of the past.
This paragraph is misleading and can be safely removed.
(From yocto-docs rev: 8547d2623b32d33758b326e735509dc0a13625fc)
Signed-off-by: Quentin Schulz <foss@0leil.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 9aec42794846a4bca37b49a9f920fa2887974ddf)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.rst | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.rst b/documentation/dev-manual/dev-manual-common-tasks.rst index 43fe972ef4..b200e3eef3 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.rst +++ b/documentation/dev-manual/dev-manual-common-tasks.rst | |||
@@ -1611,25 +1611,16 @@ Within a recipe, you specify build-time dependencies using the | |||
1611 | :term:`DEPENDS` variable. Although | 1611 | :term:`DEPENDS` variable. Although |
1612 | nuances exist, items specified in ``DEPENDS`` should be names of other | 1612 | nuances exist, items specified in ``DEPENDS`` should be names of other |
1613 | recipes. It is important that you specify all build-time dependencies | 1613 | recipes. It is important that you specify all build-time dependencies |
1614 | explicitly. If you do not, due to the parallel nature of BitBake's | 1614 | explicitly. |
1615 | execution, you can end up with a race condition where the dependency is | ||
1616 | present for one task of a recipe (e.g. | ||
1617 | :ref:`ref-tasks-configure`) and | ||
1618 | then gone when the next task runs (e.g. | ||
1619 | :ref:`ref-tasks-compile`). | ||
1620 | 1615 | ||
1621 | Another consideration is that configure scripts might automatically | 1616 | Another consideration is that configure scripts might automatically |
1622 | check for optional dependencies and enable corresponding functionality | 1617 | check for optional dependencies and enable corresponding functionality |
1623 | if those dependencies are found. This behavior means that to ensure | 1618 | if those dependencies are found. If you wish to make a recipe that is |
1624 | deterministic results and thus avoid more race conditions, you need to | 1619 | more generally useful (e.g. publish the recipe in a layer for others to |
1625 | either explicitly specify these dependencies as well, or tell the | 1620 | use), instead of hard-disabling the functionality, you can use the |
1626 | configure script explicitly to disable the functionality. If you wish to | 1621 | :term:`PACKAGECONFIG` variable to allow functionality and the |
1627 | make a recipe that is more generally useful (e.g. publish the recipe in | 1622 | corresponding dependencies to be enabled and disabled easily by other |
1628 | a layer for others to use), instead of hard-disabling the functionality, | 1623 | users of the recipe. |
1629 | you can use the | ||
1630 | :term:`PACKAGECONFIG` variable | ||
1631 | to allow functionality and the corresponding dependencies to be enabled | ||
1632 | and disabled easily by other users of the recipe. | ||
1633 | 1624 | ||
1634 | Similar to build-time dependencies, you specify runtime dependencies | 1625 | Similar to build-time dependencies, you specify runtime dependencies |
1635 | through a variable - | 1626 | through a variable - |