diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2025-03-25 12:13:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-25 12:37:57 +0100 |
commit | 55ab189a41a7c6863e1351c9c629ae6b2dc549f7 (patch) | |
tree | 4e199d30e983536f3e798554af98df5b7edfe327 | |
parent | 7f14a57770289f312362a554ee2a332d3a6e8ceb (diff) | |
download | poky-55ab189a41a7c6863e1351c9c629ae6b2dc549f7.tar.gz |
ref-manual/variables.rst: improve the PKGV documentation
It may be confusing for users that source control information is not
present in the BitBake environment. Document it as a warning block.
(From yocto-docs rev: ba0a321e5c623a9c716be7a451fdd60fae5b26b4)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/ref-manual/variables.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 1e6918da5a..c7348076b8 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -6829,6 +6829,23 @@ system and gives an overview of their function and contents. | |||
6829 | The version of the package(s) built by the recipe. By default, | 6829 | The version of the package(s) built by the recipe. By default, |
6830 | :term:`PKGV` is set to :term:`PV`. | 6830 | :term:`PKGV` is set to :term:`PV`. |
6831 | 6831 | ||
6832 | If :term:`PV` contains the ``+`` sign, source control information will be | ||
6833 | included in :term:`PKGV` later in the packaging phase. For more | ||
6834 | information, see the :doc:`/dev-manual/external-scm` section of the Yocto | ||
6835 | Project Development Tasks Manual. | ||
6836 | |||
6837 | .. warning:: | ||
6838 | |||
6839 | Since source control information is included in a late stage by the | ||
6840 | :ref:`ref-classes-package` class, it cannot be seen from the BitBake | ||
6841 | environment with ``bitbake -e`` or ``bitbake-getvar``. Instead, after | ||
6842 | the package is built, the version information can be retrieved with | ||
6843 | ``oe-pkgdata-util package-info <package name>``. See the | ||
6844 | :ref:`dev-manual/debugging:Viewing Package Information with | ||
6845 | \`\`oe-pkgdata-util\`\`` section of the Yocto Project Development Tasks | ||
6846 | Manual for more information on ``oe-pkgdata-util``. | ||
6847 | |||
6848 | |||
6832 | :term:`PN` | 6849 | :term:`PN` |
6833 | This variable can have two separate functions depending on the | 6850 | This variable can have two separate functions depending on the |
6834 | context: a recipe name or a resulting package name. | 6851 | context: a recipe name or a resulting package name. |