From d1594eacf709cb2964df3bbd9eaa091024ea8102 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 29 Apr 2014 11:22:24 -0700 Subject: [PATCH] dev-manual: Added "Properly Versioning Pre-Release Recipes" section. Fixes [YOCTO #6243] This section addresses situations when working with recipe file names of recipes that have not been released (e.g. recipe-name_1.0.3.rc1). When the recipe is released the system has difficulty recognizing the new recipe name as a later version. So the work-around is to use PV to set the recipe version in the recipe. The section describes this. (From yocto-docs rev: 612379f44e772cfc381e31171ae18af24a9e44fe) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 39 ++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 445ca1750b..bead56c978 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -1278,7 +1278,7 @@ cups_1.7.0.bb gawk_4.0.2.bb - xdg-utils_1.1.0-rc1.bb + irssi_0.8.16-rc1.bb @@ -2147,6 +2147,43 @@ +
+ Properly Versioning Pre-Release Recipes + + + Sometimes the name of a recipe can lead to versioning + problems when the recipe is upgraded to a final release. + For example, consider the + irssi_0.8.16-rc1.bb recipe file in + the list of example recipes in the + "Storing and Naming the Recipe" + section. + This recipe is at a release candidate stage (i.e. + "rc1"). + When the recipe is released, the recipe filename becomes + irssi_0.8.16.bb. + The version change from 0.8.16-rc1 + to 0.8.16 is seen as a decrease by the + build system and package managers, so the resulting packages + will not correctly trigger an upgrade. + + + + In order to ensure the versions compare properly, the + recommended convention is to set + PV + within the recipe to + "<previous version>+<current version>". + You can use an additional variable so that you can use the + current version elsewhere. + Here is an example: + + REALPV = "0.8.16-rc1" + PV = "0.8.15+${REALPV}" + + +
+
Post-Installation Scripts