[OE-core] [PATCH] connman: add alias for connman

Andreas Oberritter obi at opendreambox.org
Wed May 25 08:05:35 UTC 2016


On 25.05.2016 09:11, Zhenbo Gao wrote:
> connman get conflicts with networkmanager when building
> the project.
> 
> here introduce alias virtual/networkmanager for these
> two recipes, so setting PREFERRED_PROVIDER to the proper
> one can solve the conflicts.
> 
> this patch is for connman recipe.
> 
> Signed-off-by: Zhenbo Gao <zhenbo.gao at windriver.com>
> ---
>  meta/recipes-connectivity/connman/connman.inc               | 1 +
>  meta/recipes-core/packagegroups/packagegroup-self-hosted.bb | 2 +-
>  2 files changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
> index c375251..b5fc572 100644
> --- a/meta/recipes-connectivity/connman/connman.inc
> +++ b/meta/recipes-connectivity/connman/connman.inc
> @@ -94,6 +94,7 @@ do_install_append() {
>  
>  # These used to be plugins, but now they are core
>  RPROVIDES_${PN} = "\
> +	virtual/networkmanager \
>  	connman-plugin-loopback \
>  	connman-plugin-ethernet \
>  	${@bb.utils.contains('PACKAGECONFIG', 'bluetooth','connman-plugin-bluetooth', '', d)} \
> diff --git a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb
> index aa88cf9..6d7d6af 100644
> --- a/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb
> +++ b/meta/recipes-core/packagegroups/packagegroup-self-hosted.bb
> @@ -28,7 +28,7 @@ RDEPENDS_packagegroup-self-hosted = "\
>      "
>  
>  RDEPENDS_packagegroup-self-hosted-host-tools = "\
> -    connman \
> +    virtual/networkmanager \
>      connman-plugin-ethernet \
       ^
This will create a conflict whenever virtual/networkmanager is not
provided by connman. It's probably safe to remove this line, though,
because the ethernet plugin package is virtual, too (see connman.inc above).

Best regards,
Andreas

>      dhcp-client \
>      e2fsprogs \
> 




More information about the Openembedded-core mailing list