Skip to contentSkip to conversation

connman dependency of readline

DISCUSSION [email protected] 3 participants 5 messages Dec 7, 2019 – Dec 12, 2019

lore
Share & tools
lore
#0 lore raw

Hi

I am starting to use Yocto / OpenEmbedded, where I was looking into using ConnMan as network manager.

Though I was wondering about the readline dependency. Looking at the recipe
https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-connectivity/connman/connman.inc
it is set to always depend on readline in the DEPENDS variable, even though as far as I know it is only the connmanctl which depend on readline.
In EXTRA_OECONF the --enable-client is hardcoded.

The client is though not included in the image unless you also add connman-client.

So I am thinking on creating a patch where I create a PACKAGECONFIG[readline] like bluez5, as I would not need the client and will need not to include readline because of GPLv3.

I guess email is the prefered way for patches compared to github pull requests?

Instead of my idea of creating as PACKAGECONFIG[readline], is there a better way so it is only included if connman-client is used, instead of just connman?

Have a nice weekend.
Claus Stovgaard

#1 lore raw
Quoted 17 lines · On Sat, Dec 7, 2019 at 7:40 AM <[email protected]> wrote:

Hi

I am starting to use Yocto / OpenEmbedded, where I was looking into using ConnMan as network manager.

Though I was wondering about the readline dependency. Looking at the recipe
https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-connectivity/connman/connman.inc
it is set to always depend on readline in the DEPENDS variable, even though as far as I know it is only the connmanctl which depend on readline.
In EXTRA_OECONF the --enable-client is hardcoded.

The client is though not included in the image unless you also add connman-client.

Quoted 6 lines

So I am thinking on creating a patch where I create a PACKAGECONFIG[readline] like bluez5, as I would not need the client and will need not to include readline because of GPLv3.

I guess email is the prefered way for patches compared to github pull requests?

yes

Quoted 4 lines

Instead of my idea of creating as PACKAGECONFIG[readline], is there a better way so it is only included if connman-client is used, instead of just connman?

you are on the right track

Quoted 13 lines

Have a nice weekend.
Claus Stovgaard

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
In reply to [email protected]
Quoted 20 lines

-----Original Message-----
From: [email protected] <openembedded-core- [email protected]> On Behalf Of [email protected]
Sent: den 7 december 2019 16:41
To: oe-core <[email protected]>
Subject: [OE-core] connman dependency of readline

Hi

I am starting to use Yocto / OpenEmbedded, where I was looking into using ConnMan as network manager.

Though I was wondering about the readline dependency. Looking at the recipe
https://github.com/openembedded/openembedded-core/blob/master/meta/recipes-connectivity/connman/connman.inc
it is set to always depend on readline in the DEPENDS variable, even though as far as I know it is only the connmanctl which depend on readline.
In EXTRA_OECONF the --enable-client is hardcoded.

Quoted 6 lines

The client is though not included in the image unless you also add connman-client.

So I am thinking on creating a patch where I create a PACKAGECONFIG[readline] like bluez5, as I would not need the client and will need not to include readline because of GPLv3.

If readline is only needed to build the connman client and it is packaged in a separate package, then you are only affected by readline's GPL-3.0 license if you install that package. If you do not install it you are ok even if readline is needed during the build. So there should not be any real need to disable the building of the client.

Quoted 9 lines

I guess email is the prefered way for patches compared to github pull requests?

Instead of my idea of creating as PACKAGECONFIG[readline], is there a better way so it is only included if connman-client is used, instead of just connman?

Have a nice weekend.
Claus Stovgaard

//Peter

#3 lore raw
Quoted 15 lines
Quoted 7 lines

it is set to always depend on readline in the DEPENDS variable, even
though as far as I know it is only the connmanctl which depend on readline.
In EXTRA_OECONF the --enable-client is hardcoded.

Quoted 7 lines

The client is though not included in the image unless you also add connman-client.

So I am thinking on creating a patch where I create a PACKAGECONFIG[readline] like bluez5, as I would not need the client and
will need not to include readline because of GPLv3.

Quoted 6 lines

If readline is only needed to build the connman client and it is packaged in a separate package, then you are only affected by readline's GPL-3.0 license if you install that package. If you do not install it you are ok even if readline is needed during the build. So there should not be any real need to disable the building of the client.

Thanks for your reply. Was also mixing DEPENDS up with RDEPENDS inside my head.

Before your mail I had created a small patch and sent. I was considering just to request it beeing dropped, but on the otherhand it make it possible to use

INCOMPATIBLE_LICENSE = "GPL-3.0"

without getting below error.

ERROR: Nothing PROVIDES 'readline' (but /openembedded/oe- core/meta/recipes-connectivity/connman/connman_1.37.bb DEPENDS on or otherwise requires it)
readline was skipped: it has an incompatible license: GPLv3+

Though fine with me if the patch is dropped.

As a side note, is there a way for specifing INCOMPATIBLE_LICENSE on an image level, and not as here on the build level? If this is the case, there is no need for my change at all.

Regards
Claus

#4 lore raw
Quoted 42 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: den 11 december 2019 22:11
To: Peter Kjellerstedt <[email protected]>; oe-core <[email protected]>
Subject: Re: [OE-core] connman dependency of readline

Quoted 12 lines
Quoted 11 lines

it is set to always depend on readline in the DEPENDS variable, even though as far as I know it is only the connmanctl which depend on readline. In EXTRA_OECONF the --enable-client is hardcoded.

The client is though not included in the image unless you also add connman-client.

So I am thinking on creating a patch where I create a PACKAGECONFIG[readline] like bluez5, as I would not need the client and will need not to include readline because of GPLv3.

Quoted 6 lines

If readline is only needed to build the connman client and it is packaged in a separate package, then you are only affected by readline's GPL-3.0 license if you install that package. If you do not install it you are ok even if readline is needed during the build. So there should not be any real need to disable the building of the client.

Thanks for your reply. Was also mixing DEPENDS up with RDEPENDS inside my head.

Before your mail I had created a small patch and sent. I was considering just to request it being dropped, but on the other hand it makes it possible to use

INCOMPATIBLE_LICENSE = "GPL-3.0"

without getting below error.

ERROR: Nothing PROVIDES 'readline' (but /openembedded/oe- core/meta/recipes-connectivity/connman/connman_1.37.bb DEPENDS on or otherwise requires it)
readline was skipped: it has an incompatible license: GPLv3+

Quoted 5 lines

Though fine with me if the patch is dropped.

As a side note, is there a way for specifing INCOMPATIBLE_LICENSE on an image level, and not as here on the build level? If this is the case, there is no need for my change at all.

Yes. About two months ago, Alexander Kanavin added support for setting INCOMPATIBLE_LICENSE per image (see commit fd50395b in OE-Core):

INCOMPATIBLE_LICENSE_pn-core-image-minimal = "GPL-3.0 LGPL-3.0"

Quoted 2 lines

Regards
Claus

//Peter