summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2025-03-25 12:13:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-21 21:15:29 +0100
commit5ab6686526c691ac29ae96f91a57e3ee989f6542 (patch)
treefb1b28bfcbd47c618d856ffc8ef0b8e158efc852
parent37bb053f34c4db1cb326d2aec61688d979b68060 (diff)
downloadpoky-5ab6686526c691ac29ae96f91a57e3ee989f6542.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: 39967b9cc87cf216c4658598806fd7a68db5053a) 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.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 266470bd5f..d17f81036b 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7051,6 +7051,23 @@ system and gives an overview of their function and contents.
7051 The version of the package(s) built by the recipe. By default, 7051 The version of the package(s) built by the recipe. By default,
7052 :term:`PKGV` is set to :term:`PV`. 7052 :term:`PKGV` is set to :term:`PV`.
7053 7053
7054 If :term:`PV` contains the ``+`` sign, source control information will be
7055 included in :term:`PKGV` later in the packaging phase. For more
7056 information, see the :doc:`/dev-manual/external-scm` section of the Yocto
7057 Project Development Tasks Manual.
7058
7059 .. warning::
7060
7061 Since source control information is included in a late stage by the
7062 :ref:`ref-classes-package` class, it cannot be seen from the BitBake
7063 environment with ``bitbake -e`` or ``bitbake-getvar``. Instead, after
7064 the package is built, the version information can be retrieved with
7065 ``oe-pkgdata-util package-info <package name>``. See the
7066 :ref:`dev-manual/debugging:Viewing Package Information with
7067 \`\`oe-pkgdata-util\`\`` section of the Yocto Project Development Tasks
7068 Manual for more information on ``oe-pkgdata-util``.
7069
7070
7054 :term:`PN` 7071 :term:`PN`
7055 This variable can have two separate functions depending on the 7072 This variable can have two separate functions depending on the
7056 context: a recipe name or a resulting package name. 7073 context: a recipe name or a resulting package name.