[oe] [meta-java][RFC][PATCH 2/7] layer.conf: allow multiple Java SDKs & runtimes to co-exist

Richard Leitner richard.leitner at skidata.com
Thu Aug 2 10:40:09 UTC 2018


Hi André,
again: thank you and feel free to add

Acked-by: Richard Leitner <richard.leitner at skidata.com>

regards;Richard.L

On 07/27/2018 03:29 PM, André Draszik wrote:
> From: André Draszik <andre.draszik at jci.com>
> 
> Using MULTI_PROVIDER_WHITELIST, we can instruct Bitbake to not complain
> if multiple recipes provide or runtime provide the same Java environment.
> 
> This is a common use-case, and Java packages don't conflict with each
> other as they are typically installed under a different prefix, while still
> providing (more or less) the same features.
> 
> Signed-off-by: André Draszik <andre.draszik at jci.com>
> ---
>  conf/layer.conf | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/conf/layer.conf b/conf/layer.conf
> index 3b00f61..8b2978a 100644
> --- a/conf/layer.conf
> +++ b/conf/layer.conf
> @@ -14,3 +14,6 @@ LICENSE_PATH += "${LAYERDIR}/licenses"
>  SIGGEN_EXCLUDERECIPES_ABISAFE += "\
>      ca-certificates-java \
>  "
> +
> +MULTI_PROVIDER_WHITELIST_append = " ${@' '.join('virtual/java'+str(x)+'-sdk-native virtual/java'+str(x)+'-runtime-native' for x in range(5,9))}"
> +MULTI_PROVIDER_WHITELIST_append = " ${@' '.join('virtual/java'+str(x)+'-runtime' for x in range(5,9))}"
> 



More information about the Openembedded-devel mailing list