summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual
diff options
context:
space:
mode:
authorAntonin Godard <antonin.godard@bootlin.com>2025-03-25 12:13:04 +0100
committerSteve Sakoman <steve@sakoman.com>2025-04-28 08:18:53 -0700
commit911317c777024d937992d9cefef9b0c19f325dc9 (patch)
treee6970bf5b46d6e68d9aeb4d38a3f06030bc21c13 /documentation/ref-manual
parent084ebc49806a2593e0d2c04ee3a943e543994a56 (diff)
downloadpoky-911317c777024d937992d9cefef9b0c19f325dc9.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: 990b3708d7131ccfb4e435e8a53e987195de3e06) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/ref-manual')
-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 0f35b136b2..66e0bdee0d 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -6771,6 +6771,23 @@ system and gives an overview of their function and contents.
6771 The version of the package(s) built by the recipe. By default, 6771 The version of the package(s) built by the recipe. By default,
6772 :term:`PKGV` is set to :term:`PV`. 6772 :term:`PKGV` is set to :term:`PV`.
6773 6773
6774 If :term:`PV` contains the ``+`` sign, source control information will be
6775 included in :term:`PKGV` later in the packaging phase. For more
6776 information, see the :doc:`/dev-manual/external-scm` section of the Yocto
6777 Project Development Tasks Manual.
6778
6779 .. warning::
6780
6781 Since source control information is included in a late stage by the
6782 :ref:`ref-classes-package` class, it cannot be seen from the BitBake
6783 environment with ``bitbake -e`` or ``bitbake-getvar``. Instead, after
6784 the package is built, the version information can be retrieved with
6785 ``oe-pkgdata-util package-info <package name>``. See the
6786 :ref:`dev-manual/debugging:Viewing Package Information with
6787 \`\`oe-pkgdata-util\`\`` section of the Yocto Project Development Tasks
6788 Manual for more information on ``oe-pkgdata-util``.
6789
6790
6774 :term:`PN` 6791 :term:`PN`
6775 This variable can have two separate functions depending on the 6792 This variable can have two separate functions depending on the
6776 context: a recipe name or a resulting package name. 6793 context: a recipe name or a resulting package name.