All of lore.kernel.org
 help / color / mirror / Atom feed
* [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall
@ 2020-08-21  2:53 Li Zhou
  2020-08-21  8:06 ` Martin Jansa
  0 siblings, 1 reply; 7+ messages in thread
From: Li Zhou @ 2020-08-21  2:53 UTC (permalink / raw)
  To: openembedded-core

connman-conf is only for qemu machines, so use COMPATIBLE_MACHINE
to limit that it is only available for qemuall, or else it can be
built successfully without the package connman-conf generated.

Signed-off-by: Li Zhou <li.zhou@windriver.com>
---
 meta/recipes-connectivity/connman/connman-conf.bb | 2 ++
 meta/recipes-connectivity/connman/connman_1.38.bb | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/connman/connman-conf.bb b/meta/recipes-connectivity/connman/connman-conf.bb
index 9a519ec..3a6c525 100644
--- a/meta/recipes-connectivity/connman/connman-conf.bb
+++ b/meta/recipes-connectivity/connman/connman-conf.bb
@@ -34,3 +34,5 @@ do_install() {
 }
 
 SYSTEMD_SERVICE_${PN}_qemuall = "wired-connection.service"
+COMPATIBLE_MACHINE = "null"
+COMPATIBLE_MACHINE_qemuall = "${MACHINE}"
diff --git a/meta/recipes-connectivity/connman/connman_1.38.bb b/meta/recipes-connectivity/connman/connman_1.38.bb
index 027c41e..734b8ae 100644
--- a/meta/recipes-connectivity/connman/connman_1.38.bb
+++ b/meta/recipes-connectivity/connman/connman_1.38.bb
@@ -12,5 +12,5 @@ SRC_URI_append_libc-musl = " file://0002-resolve-musl-does-not-implement-res_nin
 SRC_URI[md5sum] = "1ed8745354c7254bdfd4def54833ee94"
 SRC_URI[sha256sum] = "cb30aca97c2f79ccaed8802aa2909ac5100a3969de74c0af8a9d73b85fc4932b"
 
-RRECOMMENDS_${PN} = "connman-conf"
+RRECOMMENDS_${PN}_qemuall = "connman-conf"
 RCONFLICTS_${PN} = "networkmanager"
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall
  2020-08-21  2:53 [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall Li Zhou
@ 2020-08-21  8:06 ` Martin Jansa
  2020-08-25  2:48   ` Li Zhou
  2020-08-26 13:06   ` Ross Burton
  0 siblings, 2 replies; 7+ messages in thread
From: Martin Jansa @ 2020-08-21  8:06 UTC (permalink / raw)
  To: Li Zhou; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 2161 bytes --]

Why is this an issue?

connman-conf recipe doesn't take long time to build and if you don't want
to install it on target you can use BAD_RECOMMENDATIONS variable.

We're using connman-conf to configure networking on various target machines
- not only on qemu*. If this is merged I'll just undo this in our layer -
and that's fine, but if there are more people using connman-conf like this,
then we should re-consider this commit (or at least better explain why it's
needed in commit message).

On Fri, Aug 21, 2020 at 4:54 AM Li Zhou <li.zhou@windriver.com> wrote:

> connman-conf is only for qemu machines, so use COMPATIBLE_MACHINE
> to limit that it is only available for qemuall, or else it can be
> built successfully without the package connman-conf generated.
>
> Signed-off-by: Li Zhou <li.zhou@windriver.com>
> ---
>  meta/recipes-connectivity/connman/connman-conf.bb | 2 ++
>  meta/recipes-connectivity/connman/connman_1.38.bb | 2 +-
>  2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/connman/connman-conf.bb
> b/meta/recipes-connectivity/connman/connman-conf.bb
> index 9a519ec..3a6c525 100644
> --- a/meta/recipes-connectivity/connman/connman-conf.bb
> +++ b/meta/recipes-connectivity/connman/connman-conf.bb
> @@ -34,3 +34,5 @@ do_install() {
>  }
>
>  SYSTEMD_SERVICE_${PN}_qemuall = "wired-connection.service"
> +COMPATIBLE_MACHINE = "null"
> +COMPATIBLE_MACHINE_qemuall = "${MACHINE}"
> diff --git a/meta/recipes-connectivity/connman/connman_1.38.bb
> b/meta/recipes-connectivity/connman/connman_1.38.bb
> index 027c41e..734b8ae 100644
> --- a/meta/recipes-connectivity/connman/connman_1.38.bb
> +++ b/meta/recipes-connectivity/connman/connman_1.38.bb
> @@ -12,5 +12,5 @@ SRC_URI_append_libc-musl = "
> file://0002-resolve-musl-does-not-implement-res_nin
>  SRC_URI[md5sum] = "1ed8745354c7254bdfd4def54833ee94"
>  SRC_URI[sha256sum] =
> "cb30aca97c2f79ccaed8802aa2909ac5100a3969de74c0af8a9d73b85fc4932b"
>
> -RRECOMMENDS_${PN} = "connman-conf"
> +RRECOMMENDS_${PN}_qemuall = "connman-conf"
>  RCONFLICTS_${PN} = "networkmanager"
> --
> 1.9.1
>
> 
>

[-- Attachment #2: Type: text/html, Size: 3422 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall
  2020-08-21  8:06 ` Martin Jansa
@ 2020-08-25  2:48   ` Li Zhou
  2020-08-26 13:06   ` Ross Burton
  1 sibling, 0 replies; 7+ messages in thread
From: Li Zhou @ 2020-08-25  2:48 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3665 bytes --]

I change this because we can see below in connman-conf.bb:

SUMMARY = "Connman config to setup wired interface on *qemu* machines"
DESCRIPTION = "This is the ConnMan configuration to set up a Wired \
network interface for a *qemu* machine."

On non-quem machines, "bitbake connman-conf" can return successfully, 
but the rpm package for connman-conf can't be generated because it is 
null (SRC_URI_append_qemuall = ...).

At this time, our users add connman-conf in IMAGE_INSTALL list and get 
such error:

No match for argument: connman-conf
Error: Unable to find a match


I myself think that it will be better to report error when "bitbake 
connman-conf" on non-qemu machine, since connman-conf is designed only 
for qemu.

It will be welcomed if you have better suggestion for the solution.

Thank you.


On 8/21/20 4:06 PM, Martin Jansa wrote:
> Why is this an issue?
>
> connman-conf recipe doesn't take long time to build and if you don't 
> want to install it on target you can use BAD_RECOMMENDATIONS variable.
>
> We're using connman-conf to configure networking on various target 
> machines - not only on qemu*. If this is merged I'll just undo this in 
> our layer - and that's fine, but if there are more people using 
> connman-conf like this, then we should re-consider this commit (or at 
> least better explain why it's needed in commit message).
>
> On Fri, Aug 21, 2020 at 4:54 AM Li Zhou <li.zhou@windriver.com 
> <mailto:li.zhou@windriver.com>> wrote:
>
>     connman-conf is only for qemu machines, so use COMPATIBLE_MACHINE
>     to limit that it is only available for qemuall, or else it can be
>     built successfully without the package connman-conf generated.
>
>     Signed-off-by: Li Zhou <li.zhou@windriver.com
>     <mailto:li.zhou@windriver.com>>
>     ---
>      meta/recipes-connectivity/connman/connman-conf.bb
>     <http://connman-conf.bb> | 2 ++
>      meta/recipes-connectivity/connman/connman_1.38.bb
>     <http://connman_1.38.bb> | 2 +-
>      2 files changed, 3 insertions(+), 1 deletion(-)
>
>     diff --git a/meta/recipes-connectivity/connman/connman-conf.bb
>     <http://connman-conf.bb>
>     b/meta/recipes-connectivity/connman/connman-conf.bb
>     <http://connman-conf.bb>
>     index 9a519ec..3a6c525 100644
>     --- a/meta/recipes-connectivity/connman/connman-conf.bb
>     <http://connman-conf.bb>
>     +++ b/meta/recipes-connectivity/connman/connman-conf.bb
>     <http://connman-conf.bb>
>     @@ -34,3 +34,5 @@ do_install() {
>      }
>
>      SYSTEMD_SERVICE_${PN}_qemuall = "wired-connection.service"
>     +COMPATIBLE_MACHINE = "null"
>     +COMPATIBLE_MACHINE_qemuall = "${MACHINE}"
>     diff --git a/meta/recipes-connectivity/connman/connman_1.38.bb
>     <http://connman_1.38.bb>
>     b/meta/recipes-connectivity/connman/connman_1.38.bb
>     <http://connman_1.38.bb>
>     index 027c41e..734b8ae 100644
>     --- a/meta/recipes-connectivity/connman/connman_1.38.bb
>     <http://connman_1.38.bb>
>     +++ b/meta/recipes-connectivity/connman/connman_1.38.bb
>     <http://connman_1.38.bb>
>     @@ -12,5 +12,5 @@ SRC_URI_append_libc-musl = "
>     file://0002-resolve-musl-does-not-implement-res_nin
>      SRC_URI[md5sum] = "1ed8745354c7254bdfd4def54833ee94"
>      SRC_URI[sha256sum] =
>     "cb30aca97c2f79ccaed8802aa2909ac5100a3969de74c0af8a9d73b85fc4932b"
>
>     -RRECOMMENDS_${PN} = "connman-conf"
>     +RRECOMMENDS_${PN}_qemuall = "connman-conf"
>      RCONFLICTS_${PN} = "networkmanager"
>     -- 
>     1.9.1
>
>     
>
-- 
Best Regards!
Zhou Li
Phone number: 86-10-84778511


[-- Attachment #2: Type: text/html, Size: 6069 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall
  2020-08-21  8:06 ` Martin Jansa
  2020-08-25  2:48   ` Li Zhou
@ 2020-08-26 13:06   ` Ross Burton
  2020-08-27  8:48     ` Li Zhou
  1 sibling, 1 reply; 7+ messages in thread
From: Ross Burton @ 2020-08-26 13:06 UTC (permalink / raw)
  To: Martin Jansa; +Cc: Li Zhou, Patches and discussions about the oe-core layer

On Fri, 21 Aug 2020 at 09:07, Martin Jansa <Martin.Jansa@gmail.com> wrote:
> We're using connman-conf to configure networking on various target machines - not only on qemu*. If this is merged I'll just undo this in our layer - and that's fine, but if there are more people using connman-conf like this, then we should re-consider this commit (or at least better explain why it's needed in commit message).

Same here, please don't do this.

Concrete use-case: building for a real machine (say, intel-corei7-64)
that is supported by runqemu.  If you want testimage to work, you need
the networking configuration from connman-conf.

Ross

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall
  2020-08-26 13:06   ` Ross Burton
@ 2020-08-27  8:48     ` Li Zhou
  2020-08-27 10:10       ` Ross Burton
  0 siblings, 1 reply; 7+ messages in thread
From: Li Zhou @ 2020-08-27  8:48 UTC (permalink / raw)
  To: Ross Burton, Martin Jansa; +Cc: Patches and discussions about the oe-core layer


On 8/26/20 9:06 PM, Ross Burton wrote:
> On Fri, 21 Aug 2020 at 09:07, Martin Jansa <Martin.Jansa@gmail.com> wrote:
>> We're using connman-conf to configure networking on various target machines - not only on qemu*. If this is merged I'll just undo this in our layer - and that's fine, but if there are more people using connman-conf like this, then we should re-consider this commit (or at least better explain why it's needed in commit message).
> Same here, please don't do this.
>
> Concrete use-case: building for a real machine (say, intel-corei7-64)
> that is supported by runqemu.  If you want testimage to work, you need
> the networking configuration from connman-conf.
>
> Ross


Hi, Ross:


         I have a question here:
building for a real machine (say, intel-corei7-64): MACHINE ?= 
intel-corei7-64

While in connman-conf.bb:
SRC_URI_append_qemuall = " file://wired.config \
                            file://wired-setup \
                            file://wired-connection.service \

So there is no connman-conf package generated by default because it's null.
Building error occurs if want to install connman-conf to rootfs.
So how to make things work?

If I misunderstand anything, please let me know. Thanks.


-- 
Best Regards!
Zhou Li
Phone number: 86-10-84778511


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall
  2020-08-27  8:48     ` Li Zhou
@ 2020-08-27 10:10       ` Ross Burton
  2020-09-03  3:15         ` Li Zhou
  0 siblings, 1 reply; 7+ messages in thread
From: Ross Burton @ 2020-08-27 10:10 UTC (permalink / raw)
  To: zhou li; +Cc: Martin Jansa, Patches and discussions about the oe-core layer

On Thu, 27 Aug 2020 at 09:48, zhou li <li.zhou@windriver.com> wrote:
>          I have a question here:
> building for a real machine (say, intel-corei7-64): MACHINE ?=
> intel-corei7-64
>
> While in connman-conf.bb:
> SRC_URI_append_qemuall = " file://wired.config \
>                             file://wired-setup \
>                             file://wired-connection.service \
>
> So there is no connman-conf package generated by default because it's null.
> Building error occurs if want to install connman-conf to rootfs.
> So how to make things work?
>
> If I misunderstand anything, please let me know. Thanks.

I also have a patch to remove that _qemuall override that I've been
meaning to post for a long time...

Ross

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall
  2020-08-27 10:10       ` Ross Burton
@ 2020-09-03  3:15         ` Li Zhou
  0 siblings, 0 replies; 7+ messages in thread
From: Li Zhou @ 2020-09-03  3:15 UTC (permalink / raw)
  To: Ross Burton; +Cc: Martin Jansa, Patches and discussions about the oe-core layer

Hi, Ross:

         Do you have any plan to do this patch?

I think my issue can disappear with your planned patch.

Thanks.


On 8/27/20 6:10 PM, Ross Burton wrote:
> On Thu, 27 Aug 2020 at 09:48, zhou li <li.zhou@windriver.com> wrote:
>>           I have a question here:
>> building for a real machine (say, intel-corei7-64): MACHINE ?=
>> intel-corei7-64
>>
>> While in connman-conf.bb:
>> SRC_URI_append_qemuall = " file://wired.config \
>>                              file://wired-setup \
>>                              file://wired-connection.service \
>>
>> So there is no connman-conf package generated by default because it's null.
>> Building error occurs if want to install connman-conf to rootfs.
>> So how to make things work?
>>
>> If I misunderstand anything, please let me know. Thanks.
> I also have a patch to remove that _qemuall override that I've been
> meaning to post for a long time...
>
> Ross
>
-- 
Best Regards!
Zhou Li
Phone number: 86-10-84778511


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-03  3:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-21  2:53 [OE-core][PATCH V2] connman-conf: make connman-conf only available for qemuall Li Zhou
2020-08-21  8:06 ` Martin Jansa
2020-08-25  2:48   ` Li Zhou
2020-08-26 13:06   ` Ross Burton
2020-08-27  8:48     ` Li Zhou
2020-08-27 10:10       ` Ross Burton
2020-09-03  3:15         ` Li Zhou

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.