[OE-core] [PATCH 3/3] base.bbclass: p4 fetcher supports srcrev

Andrew Bradford andrew at bradfordembedded.com
Fri Jun 17 12:52:30 UTC 2016


Hi,

On 05/25 15:46, Andrew Bradford wrote:
> From: Andrew Bradford <andrew.bradford at kodakalaris.com>
> 
> Enable the perforce fetcher to call bb.fetch2.get_srcrev() as it can use
> 'SRCREV = "${AUTOREV}"'.
> 
> Signed-off-by: Andrew Bradford <andrew.bradford at kodakalaris.com>
> ---
>  meta/classes/base.bbclass | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
> index 4be0a7e..9f3945c 100644
> --- a/meta/classes/base.bbclass
> +++ b/meta/classes/base.bbclass
> @@ -569,6 +569,10 @@ python () {
>              needsrcrev = True
>              d.appendVarFlag('do_fetch', 'depends', ' mercurial-native:do_populate_sysroot')
>  
> +        # Perforce packages support SRCREV = "${AUTOREV}"
> +        elif scheme == "p4":
> +            needsrcrev = True
> +
>          # OSC packages should DEPEND on osc-native
>          elif scheme == "osc":
>              d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot')

I noticed that this patch has not been applied to oe-core, but it is a
dependency for the bitbake perforce fetcher change to support srcrev
which has been applied to bitbake's master branch [1].

[1]:http://git.openembedded.org/bitbake/commit/?id=6298696bb94a127cdec7964315f6891ba92cd026

Any chance that this patch could be applied to oe-core?
The other two patches in this series are not needed, just this one.
Sorry if my bitbake patch was not super clear about this dependency.

Thanks!
-Andrew



More information about the Openembedded-core mailing list