From: Martin Jansa <martin.jansa@gmail.com>
To: Joshua Lock <joshua.lock@collabora.co.uk>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH v3 3/3] connman-conf: convert to an allarch package
Date: Thu, 10 Dec 2015 11:44:06 +0100 [thread overview]
Message-ID: <20151210104406.GI2246@jama> (raw)
In-Reply-To: <56694871.7090406@collabora.co.uk>
[-- Attachment #1: Type: text/plain, Size: 5107 bytes --]
On Thu, Dec 10, 2015 at 09:40:01AM +0000, Joshua Lock wrote:
> On 10/12/15 09:30, Martin Jansa wrote:
> > On Thu, Dec 10, 2015 at 09:01:43AM +0000, Joshua Lock wrote:
> >> This recipe just installs some data files and a script and isn't machine or
> >> architecture specific. Even though it was designed to be used only for qemu
> >> machines there's no reason it can't be used elsewhere.
> >
> > Sorry if I wasn't clear before.
> >
> > I think it was better as machine specific.
> >
> > We're using it in our layers to provide static configuration for connman
> > and that's often MACHINE specific (even the qemu config sets MAC which
> > you probably don't want to use the same across all MACHINEs built with
> > OE).
>
> Ah, it wasn't clear that you were making use of this recipe and I had
> also completely missed that it sets the MAC address. You are of course
> right, this should probably stay MACHINE specific.
>
> All I really care about is not having
>
> "connman.service: Failed at step EXEC spawning
> /usr/lib/connman/wired-setup: No such file or directory"
>
> in the journal all the time, 1/3 and 2/3 should resolve this so I will
> just drop 3/3.
>
> > That's the reason why this recipe is in SIGGEN_EXCLUDERECIPES_ABISAFE.
> >
> > This change also sets this static configuration for all builds, is
> > current wired.config really suitable for all devices? I don't think so.
>
> All builds which include connman-conf. Which with the change to
> RRECOMMENDS_qemuall in 2/3 by default is only builds for qemu builds, right?
Do you need to change this RRECOMMENDS? if the package is empty (by default for
non-qemu MACHINEs) the PN will be empty and not created, so RRECOMMENDS
will be no-op and for layers actually using connman-conf to provide
MACHINE specific configuration it will work OOB without having to re-add
the runtime recommendation.
> >> Signed-off-by: Joshua Lock <joshua.lock@collabora.co.uk>
> >> ---
> >> meta/recipes-connectivity/connman/connman-conf.bb | 10 ++++------
> >> .../connman-conf/{qemuall => }/wired-connection.service | 0
> >> .../connman/connman-conf/{qemuall => }/wired-setup | 0
> >> .../connman/connman-conf/{qemuall => }/wired.config | 0
> >> 4 files changed, 4 insertions(+), 6 deletions(-)
> >> rename meta/recipes-connectivity/connman/connman-conf/{qemuall => }/wired-connection.service (100%)
> >> rename meta/recipes-connectivity/connman/connman-conf/{qemuall => }/wired-setup (100%)
> >> rename meta/recipes-connectivity/connman/connman-conf/{qemuall => }/wired.config (100%)
> >>
> >> diff --git a/meta/recipes-connectivity/connman/connman-conf.bb b/meta/recipes-connectivity/connman/connman-conf.bb
> >> index bef9237..a8fdb8c 100644
> >> --- a/meta/recipes-connectivity/connman/connman-conf.bb
> >> +++ b/meta/recipes-connectivity/connman/connman-conf.bb
> >> @@ -4,18 +4,16 @@ network interface for a qemu machine."
> >> LICENSE = "GPLv2"
> >> LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
> >>
> >> -inherit systemd
> >> +inherit systemd allarch
> >>
> >> -SRC_URI_append_qemuall = " file://wired.config \
> >> - file://wired-setup \
> >> - file://wired-connection.service \
> >> +SRC_URI = "file://wired.config \
> >> + file://wired-setup \
> >> + file://wired-connection.service \
> >> "
> >> PR = "r2"
> >>
> >> S = "${WORKDIR}"
> >>
> >> -PACKAGE_ARCH = "${MACHINE_ARCH}"
> >> -
> >> FILES_${PN} = "${localstatedir}/* ${datadir}/*"
> >>
> >> do_install() {
> >> diff --git a/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-connection.service b/meta/recipes-connectivity/connman/connman-conf/wired-connection.service
> >> similarity index 100%
> >> rename from meta/recipes-connectivity/connman/connman-conf/qemuall/wired-connection.service
> >> rename to meta/recipes-connectivity/connman/connman-conf/wired-connection.service
> >> diff --git a/meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup b/meta/recipes-connectivity/connman/connman-conf/wired-setup
> >> similarity index 100%
> >> rename from meta/recipes-connectivity/connman/connman-conf/qemuall/wired-setup
> >> rename to meta/recipes-connectivity/connman/connman-conf/wired-setup
> >> diff --git a/meta/recipes-connectivity/connman/connman-conf/qemuall/wired.config b/meta/recipes-connectivity/connman/connman-conf/wired.config
> >> similarity index 100%
> >> rename from meta/recipes-connectivity/connman/connman-conf/qemuall/wired.config
> >> rename to meta/recipes-connectivity/connman/connman-conf/wired.config
> >> --
> >> 2.5.0
> >>
> >> --
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
>
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 188 bytes --]
next prev parent reply other threads:[~2015-12-10 10:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-10 9:01 [PATCH v3 0/3] Clean up connman-conf Joshua Lock
2015-12-10 9:01 ` [PATCH v3 1/3] connman-conf: convert to systemd oneshot Joshua Lock
2015-12-10 9:01 ` [PATCH v3 2/3] connman: tidy up connman-conf usage Joshua Lock
2015-12-10 9:01 ` [PATCH v3 3/3] connman-conf: convert to an allarch package Joshua Lock
2015-12-10 9:30 ` Martin Jansa
2015-12-10 9:40 ` Joshua Lock
2015-12-10 10:44 ` Martin Jansa [this message]
2015-12-10 11:26 ` Joshua Lock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151210104406.GI2246@jama \
--to=martin.jansa@gmail.com \
--cc=joshua.lock@collabora.co.uk \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox