summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Opdenacker <michael.opdenacker@bootlin.com>2023-09-12 10:32:22 +0200
committerSteve Sakoman <steve@sakoman.com>2023-09-29 04:33:44 -1000
commit452511f6742cf136a33482b1bc447530a00df1a0 (patch)
tree6674595ec4fb2cc54d07f0db02a3d6fb74c061a2
parent473d725a5f004e09a21761684c6bd36b944c5540 (diff)
downloadpoky-452511f6742cf136a33482b1bc447530a00df1a0.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: bb74a9f83b84fa0d2836ed09175cac3c671b1042) Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 ab3e193aaf..39ee9683b0 100644
--- a/documentation/dev-manual/new-recipe.rst
+++ b/documentation/dev-manual/new-recipe.rst
@@ -1082,13 +1082,14 @@ build system and package managers, so the resulting packages will not
1082correctly trigger an upgrade. 1082correctly trigger an upgrade.
1083 1083
1084In order to ensure the versions compare properly, the recommended 1084In order to ensure the versions compare properly, the recommended
1085convention is to set :term:`PV` within the 1085convention is to use a tilde (``~``) character as follows::
1086recipe to "previous_version+current_version". You can use an additional
1087variable so that you can use the current version elsewhere. Here is an
1088example::
1089 1086
1090 REALPV = "0.8.16-rc1" 1087 PV = 0.8.16~rc1
1091 PV = "0.8.15+${REALPV}" 1088
1089This way ``0.8.16~rc1`` sorts before ``0.8.16``. See the
1090":ref:`contributor-guide/recipe-style-guide:version policy`" section in the
1091Yocto Project and OpenEmbedded Contributor Guide for more details about
1092versioning code corresponding to a pre-release or to a specific Git commit.
1092 1093
1093Post-Installation Scripts 1094Post-Installation Scripts
1094========================= 1095=========================