Patchwork [meta-multimedia/meta-oe/meta-systemd,3/3] bluez4: add systemd support

login
register
mail settings
Submitter Andreas Müller
Date Jan. 9, 2013, 11:43 p.m.
Message ID <1357774995-1104-4-git-send-email-schnitzeltony@googlemail.com>
Download mbox | patch
Permalink /patch/42415/
State Superseded, archived
Headers show

Comments

Andreas Müller - Jan. 9, 2013, 11:43 p.m.
makes bluetooth work for me and fixes the following errors:
Jan 01 20:02:02 overo NetworkManager[158]: <warn> bluez error getting default adapter: Unit dbus-org.bluez.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.bluez.service' for details.
Jan 01 20:02:12 overo NetworkManager[158]: NetworkManager[158]: <warn> bluez error getting default adapter: Unit dbus-org.bluez.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.bluez.service' for details.
Jan 01 20:02:12 overo dbus-daemon[172]: dbus[172]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'
Jan 01 20:02:12 overo dbus-daemon[172]: dbus[172]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service failed to load: No such file or directory. See system logs and 'systemctl status dbus-org.bluez.service' for details.
Jan 01 20:02:52 overo dbus-daemon[172]: dbus[172]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service'

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 .../bluez/bluez4_4.101.bbappend                    |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 meta-systemd/oe-core/recipes-connectivity/bluez/bluez4_4.101.bbappend

Patch

diff --git a/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4_4.101.bbappend b/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4_4.101.bbappend
new file mode 100644
index 0000000..36cc8e0
--- /dev/null
+++ b/meta-systemd/oe-core/recipes-connectivity/bluez/bluez4_4.101.bbappend
@@ -0,0 +1,8 @@ 
+inherit systemd
+
+PRINC := "${@int(PRINC) + 1}"
+
+EXTRA_OECONF += "--with-systemdunitdir=${systemd_unitdir}/system/"
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE_${PN}-systemd = "bluetooth.service"