On 11/07/2014 06:42 AM, Burton, Ross
wrote:
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