Re: [docs] [PATCH v2] dev-manual: describe two ways to assign "PV" for external SCM
Paul Barker <[email protected]>
| Newsgroups | org.yoctoproject.lists.docs |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2026-06-22 at 05:08 -0400, Robert P. J. Day wrote: > In addition to hard-coding a PV value in the context of an external > SCM, show also the alternative of simply appending the string "+git" > to the value already calculated for PV from the recipe file name. > > 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 e7ab8a4c6..adab4370f 100644 > --- a/documentation/dev-manual/external-scm.rst > +++ b/documentation/dev-manual/external-scm.rst > @@ -13,9 +13,17 @@ 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:: > +You can do this in one of two ways: > > - PV = "1.2.3+git" > +- Manually assign a version number and the string "+git" > + in the recipe:: > + > + PV = "1.2.3+git" > + > +- A more elegant way is to simply append the "+git" string to the > + value of :term:`PV` already extracted from the recipe file name:: > + > + PV .= "+git" > > :term:`Bitbake` later includes the source control information in :term:`PKGV` > during the packaging phase. Hi Robert, What's the benefit to offering users two ways to accomplish the same thing? IMHO this makes the docs less easy to follow, rather than more. Thanks, -- Paul Barker
signature.asc
(application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE----- iIcEABYKAC8WIQSzjPXf5Y1BDWhU2iCrY1Tsnbr0bgUCajmUAhEccGF1bEBwYmFy a2VyLmRldgAKCRCrY1Tsnbr0bkPSAQCoVb5gHzut3BDAgVGVmJu8vPnNvPxyim5e AiMsEN4lqgEAkwqfvYdvqk0eKmbkCltfpQ5w+GFduglORdYg4Kf3aAk= =IwnT -----END PGP SIGNATURE-----