diff options
| author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2023-09-12 10:32:22 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-09-23 05:26:16 -1000 |
| commit | b17bb4e9c05d368734723135150e4e558e676762 (patch) | |
| tree | 322f7aee9c5117fd433ecdef5a056e1b330c39ad /documentation | |
| parent | 31af34e1afd678da3b98f3ea46b5c6a4f4e70f35 (diff) | |
| download | poky-b17bb4e9c05d368734723135150e4e558e676762.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: f37c9e7d44a2f7aefc3b505ae4461e6f1a8b0bb2)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/dev-manual/new-recipe.rst | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/documentation/dev-manual/new-recipe.rst b/documentation/dev-manual/new-recipe.rst index 2c1101ec2b..8c471699a7 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 | |||
| 1036 | correctly trigger an upgrade. | 1036 | correctly trigger an upgrade. |
| 1037 | 1037 | ||
| 1038 | In order to ensure the versions compare properly, the recommended | 1038 | In order to ensure the versions compare properly, the recommended |
| 1039 | convention is to set :term:`PV` within the | 1039 | convention is to use a tilde (``~``) character as follows:: |
| 1040 | recipe to "previous_version+current_version". You can use an additional | ||
| 1041 | variable so that you can use the current version elsewhere. Here is an | ||
| 1042 | example:: | ||
| 1043 | 1040 | ||
| 1044 | REALPV = "0.8.16-rc1" | 1041 | PV = 0.8.16~rc1 |
| 1045 | PV = "0.8.15+${REALPV}" | 1042 | |
| 1043 | This way ``0.8.16~rc1`` sorts before ``0.8.16``. See the | ||
| 1044 | ":ref:`contributor-guide/recipe-style-guide:version policy`" section in the | ||
| 1045 | Yocto Project and OpenEmbedded Contributor Guide for more details about | ||
| 1046 | versioning code corresponding to a pre-release or to a specific Git commit. | ||
| 1046 | 1047 | ||
| 1047 | Post-Installation Scripts | 1048 | Post-Installation Scripts |
| 1048 | ========================= | 1049 | ========================= |
