Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-31 Thread Stefan Herbrechtsmeier
Am 30.03.2022 um 19:32 schrieb Khem Raj: On Wed, Mar 30, 2022 at 1:16 AM Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Add a base package version (BPV) variable and use it as default for the package version (PV) variable. The BPV variable contains the base package version of

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Khem Raj
On Wed, Mar 30, 2022 at 1:16 AM Stefan Herbrechtsmeier wrote: > > From: Stefan Herbrechtsmeier > > Add a base package version (BPV) variable and use it as default for the > package version (PV) variable. The BPV variable contains the base > package version of the recipe read from the recipe

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Stefan Herbrechtsmeier
Hi Richard, Am 30.03.2022 um 13:51 schrieb Richard Purdie: On Wed, 2022-03-30 at 10:16 +0200, Stefan Herbrechtsmeier wrote: From: Stefan Herbrechtsmeier Add a base package version (BPV) variable and use it as default for the package version (PV) variable. The BPV variable contains the base

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Richard Purdie
On Wed, 2022-03-30 at 10:16 +0200, Stefan Herbrechtsmeier wrote: > From: Stefan Herbrechtsmeier > > Add a base package version (BPV) variable and use it as default for the > package version (PV) variable. The BPV variable contains the base > package version of the recipe read from the recipe

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Alexander Kanavin
The intention is that changing bitbake.conf is heavy handed, and the use case is not well presented. Why and where this is needed? Alex On Wed, 30 Mar 2022 at 13:42, Stefan Herbrechtsmeier wrote: > > Hi Alex, > > Am 30.03.2022 um 10:41 schrieb Alexander Kanavin: > > Mangling PV is more flexibly

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Stefan Herbrechtsmeier
Hi Alex, Am 30.03.2022 um 10:41 schrieb Alexander Kanavin: Mangling PV is more flexibly done with a lambda function in the recipe, where you can trim and tweak PV to your heart's desire, e.g. gnomebase.bbclass: def gnome_verdir(v): return ".".join(v.split(".")[:-1]) SRC_URI =

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Alexander Kanavin
Not lambda in this case, but nevermind :) Alex On Wed, 30 Mar 2022 at 10:41, Alexander Kanavin wrote: > > Mangling PV is more flexibly done with a lambda function in the > recipe, where you can trim and tweak PV to your heart's desire, e.g. > gnomebase.bbclass: > > def gnome_verdir(v): >

Re: [OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Alexander Kanavin
Mangling PV is more flexibly done with a lambda function in the recipe, where you can trim and tweak PV to your heart's desire, e.g. gnomebase.bbclass: def gnome_verdir(v): return ".".join(v.split(".")[:-1]) SRC_URI =

[OE-core] [RFC PATCH] bitbake.conf: Add base package version (BPV) variable

2022-03-30 Thread Stefan Herbrechtsmeier
From: Stefan Herbrechtsmeier Add a base package version (BPV) variable and use it as default for the package version (PV) variable. The BPV variable contains the base package version of the recipe read from the recipe filename. The base package version variable supports an expansion of the