summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2023-09-12 10:32:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-09-19 15:57:35 +0100
commit0c33a64edda790b35ff8288c288648214ab09f9f (patch)
treea1484302cd29069afe7ef65153aa841c1e63f309 /documentation/dev-manual
parent6e7bf979f264c6faa4fd3c598c1c7195569648f2 (diff)
downloadpoky-0c33a64edda790b35ff8288c288648214ab09f9f.tar.gz
dev-manual: new-recipe.rst fix inconsistency with contributor guide
This document was suggesting a way to version pre-releases which doesn't match the latest recommendations from the contributor guide. (From yocto-docs rev: b51c21e59bd624153f6f9b8bf3cf33329bd25e56) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r--documentation/dev-manual/new-recipe.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/documentation/dev-manual/new-recipe.rst b/documentation/dev-manual/new-recipe.rst
index cb9533ff5d..457f9632ce 100644
--- a/documentation/dev-manual/new-recipe.rst
+++ b/documentation/dev-manual/new-recipe.rst
@@ -1036,13 +1036,14 @@ build system and package managers, so the resulting packages will not
1036correctly trigger an upgrade. 1036correctly trigger an upgrade.
1037 1037
1038In order to ensure the versions compare properly, the recommended 1038In order to ensure the versions compare properly, the recommended
1039convention is to set :term:`PV` within the 1039convention is to use a tilde (``~``) character as follows::
1040recipe to "previous_version+current_version". You can use an additional
1041variable so that you can use the current version elsewhere. Here is an
1042example::
1043 1040
1044 REALPV = "0.8.16-rc1" 1041 PV = 0.8.16~rc1
1045 PV = "0.8.15+${REALPV}" 1042
1043This way ``0.8.16~rc1`` sorts before ``0.8.16``. See the
1044":ref:`contributor-guide/recipe-style-guide:version policy`" section in the
1045Yocto Project and OpenEmbedded Contributor Guide for more details about
1046versioning code corresponding to a pre-release or to a specific Git commit.
1046 1047
1047Post-Installation Scripts 1048Post-Installation Scripts
1048========================= 1049=========================