Re: [docs] [PATCH] dev-manual: add second way to assign "PV" for external SCM

"Antonin Godard" <[email protected]>
Newsgroups org.yoctoproject.lists.docs
Message-ID <[email protected]>
Hi,

On Fri Jun 12, 2026 at 9:58 AM CEST, Robert P. J. Day wrote:
>
> In addition to hard-coding a PV value in the context of an external
> SCM, show also just appending the string "+git" to the value already
> calculated for PV.
>
> Signed-off-by: Robert P. J. Day <[email protected]>
>
> ---
>
> diff --git a/documentation/dev-manual/external-scm.rst b/documentation/dev-manual/external-scm.rst
> index 3ca9079b3..4492de9cd 100644
> --- a/documentation/dev-manual/external-scm.rst
> +++ b/documentation/dev-manual/external-scm.rst
> @@ -13,9 +13,12 @@ Subversion (SVN) and Git.
>
>  To enable this behavior, the :term:`PV` of
>  the recipe needs to include a ``+`` sign in its assignment.
> -Here is an example::
> +Here are a couple examples of how this can be done --- the first
> +hard-coding the value for ``PV``, the second simply appending
> +the string "+git" to the value already assigned to that variable::

s/already assigned/already extracted from the recipe file name/ ?

This is why you'd append, I don't see any other instances.

>
>     PV = "1.2.3+git"
> +   PV .= "+git"
>
>  :term:`Bitbake` later includes the source control information in :term:`PKGV`
>  during the packaging phase.


Antonin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.