[oe] console-image trying to build X?

Phil Blundell pb at reciva.com
Thu May 28 15:49:33 UTC 2009


On Thu, 2009-05-28 at 10:38 -0500, Mike Westerhof (mwester) wrote:
> This has been a topic of discussion from time-to-time.  In all
> likelihood, X is being pulled in to satisfy dbus or bluez (I don't
> recall which off the top of my head).  You probably will not end up with
> the full X packages on your resulting image; OE just need to build that
> in order to satisfy some very specific build-time dependencies.
> 
> As a side note, I have been meaning for some time to create a "no-X"
> version of the particular package that causes this, to suit my own
> needs; once that gets done there might be an easy way to do a build that
> won't have this dependency.

It's probably bluez4, which currently has a massive dependency stack
including GStreamer and countless other things.

The right way to fix this, I think, is to split the current monolithic
bluez4 package back into bluez-libs and bluez-apps (i.e. how it used to
be packaged in bluez3 days).  It's only the apps part that has the
monstrous dependencies: the libs are more-or-less self-contained, so
this way people who only want to link with the libs can avoid building
all the app prerequisities.

I did check in a bluez-libs_4.40 recipe last week sometime, which builds
just the library half of the package, but I didn't yet get time to
finish the apps part of the equation.  I've attached a work-in-progress
draft of an apps recipe in case anybody else is enthused enough to
finish it off.

In the slightly longer term it might even be worth going further than
that and splitting up bluez-apps into yet smaller recipes.  Taking
GStreamer as an example again, this is only required by one part of the
apps package (the bluez-gstreamer plugin) and I suspect this particular
plugin is of somewhat fringe interest: there are certainly plenty of
useful things you can do without it.

p.

-------------- next part --------------
DESCRIPTION = "Linux Bluetooth Stack Userland V4"
SECTION = "net"
PRIORITY = "optional"
DEPENDS = "gst-plugins-base alsa-lib libusb-compat dbus-glib bluez-libs"
HOMEPAGE = "http://www.bluez.org"
LICENSE = "GPL"

DEFAULT_PREFERENCE = "-1"

FILESPATHPKG .= ":bluez4"

SRC_URI = "http://www.kernel.org/pub/linux/bluetooth/bluez-${PV}.tar.gz \
          file://fix-dfutool-usb-declaration-mismatch.patch;patch=1 \
  file://sbc-thumb.patch;patch=1 \
  file://bluetooth.conf \
  file://separate-libs.patch;patch=1;pnum=0 \
"

S = "${WORKDIR}/bluez-${PV}"

inherit autotools_stage
AUTOTOOLS_STAGE_PKGCONFIG = "1"

EXTRA_OECONF = " \
  --enable-alsa \
  --enable-usb \
  --enable-netlink \
  --enable-tools \
  --enable-bccmd \
  --enable-hid2hci \
  --enable-dfutool \
  --enable-hidd \
  --enable-pandd \
  --enable-dund \
  --disable-cups \
  --enable-test \
  --enable-manpages \
  --enable-configfiles \
  --enable-initscripts \
  --disable-pcmciarules \
"

do_configure_prepend() {
        sed 's/ include / /;s/ lib / /' <Makefile.am >Makefile.am.new
        mv Makefile.am.new Makefile.am
}

do_install_append() {
        install -m 0644 ${S}/audio/audio.conf ${D}/${sysconfdir}/bluetooth/
        install -m 0644 ${S}/network/network.conf ${D}/${sysconfdir}/bluetooth/
        install -m 0644 ${S}/input/input.conf ${D}/${sysconfdir}/bluetooth/
        # 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 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
}

PACKAGES =+ "gst-plugin-bluez libasound-module-bluez"

FILES_gst-plugin-bluez = "${libdir}/gstreamer-0.10/lib*.so"
FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so"
FILES_${PN} += "${libdir}/bluetooth/plugins/*.so"
FILES_${PN}-dev += "\
  ${libdir}/bluetooth/plugins/*.la \
  ${libdir}/alsa-lib/*.la \
  ${libdir}/gstreamer-0.10/*.la \
"

FILES_${PN}-dbg += "\
  ${libdir}/bluetooth/plugins/.debug \
  ${libdir}/*/.debug \
"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: separate-libs.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20090528/3c3f9ecb/attachment-0002.bin>


More information about the Openembedded-devel mailing list