From: "Peter A. Bigot" <pab@pabigot.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] Bluez5: Add gatttool to new package bluez5-tools
Date: Mon, 10 Nov 2014 06:16:46 -0600 [thread overview]
Message-ID: <5460ACAE.2080103@pabigot.com> (raw)
In-Reply-To: <CAJTo0LZ2FL--UchK7pVPUJFtsQJtH35_a0aJwYUSnWh34nCf-A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2695 bytes --]
On 11/07/2014 06:42 AM, Burton, Ross wrote:
>
> On 4 November 2014 05:04, Qian Lei <qianl.fnst@cn.fujitsu.com
> <mailto:qianl.fnst@cn.fujitsu.com>> wrote:
>
> # at_console doesn't really work with the current state of OE, so
> punch some more holes so people can actually use BT
> + install -m 0755 ${S}/attrib/gatttool ${D}/${bindir}/
> install -m 0644 ${WORKDIR}/bluetooth.conf
> ${D}/${sysconfdir}/dbus-1/system.d/
> }
>
>
> Because of where you put the install, it looks like installing
> gatttool is related to the DBus configuration.
>
> ALLOW_EMPTY_libasound-module-bluez = "1"
> -PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex"
> +PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex
> ${PN}-tools"
>
>
> Two questions:
> 1) If we're installing gatttool, why not the other tools that are
> noinst (obex-client-tool, obexctl, etc). Patching the makefile would
> install all the tools that upstream build.
> 2) Do these deserve a separate package, or as they're for testing
> should they go into PN-testtools?
>
I do think the extra tools deserve an extra package, because they may or
may not be for testing, and in any case don't get installed in a
distinct test area as the current contents of ${PN}-testtools do.
In fact, they don't get installed at all. If EXPERIMENTAL is enabled
via PACKAGECONFIG (as it is in one of my WIP virtual/bluez patches)
there are a lot of those tools, some of which have opaque names that
don't appear related to bluetooth. However, as I use bluez5 more of
them are things I want available on the target.
At this time I'm inclined to add a ${PN}-noinst-tools package for them.
I'm debating whether it's better to manually install them from the build
area, to highlight that upstream doesn't install them, or to modify the
Makefile to remove "noinst_" and then explicitly list each one in a
separate FILES_${PN}-noinst-tools variable. The latter seems a higher
risk for unwittingly adding non-standard executables to ${PN}.
Is there any precedent for a package to have its own subdirectory off
${bindir}? It'd be easy enough to patch the Makefile to put them all in
${bindir}/bluez5.
I'm sympathetic with Qian Lei and also assumed that gattool, which used
to be installed in bluez4, might be an exception and just belongs as an
OE addition to bluez5 rather than being put in ${PN}-noinst-tools. But
that's a slippery slope and new things like btgatt-client might be just
as important to the folks who want to use GATT with bluez5. Now I'm
inclined to keep it separate too.
Peter
[-- Attachment #2: Type: text/html, Size: 4465 bytes --]
prev parent reply other threads:[~2014-11-10 12:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 5:04 [PATCH] Bluez5: Add gatttool to new package bluez5-tools Qian Lei
2014-11-07 12:42 ` Burton, Ross
2014-11-10 5:52 ` Qian Lei
2014-11-10 10:45 ` Qian Lei
2014-11-10 12:16 ` Peter A. Bigot [this message]
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=5460ACAE.2080103@pabigot.com \
--to=pab@pabigot.com \
--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