Re: [OE-core] [PATCH] bluez5: allow D-Bus to spawn obexd in systems without systemd

2016-03-19 Thread Burton, Ross
On 18 March 2016 at 18:48, Otavio Salvador  wrote:

> Agreed; this is good to be included as it does address an issue for a
> lot of users. Ross, could you queue it for MUT please?
>

I didn't merge it straight away as I wanted to understand why upstream
rejected this, but it was merged earlier today.

Ross
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] bluez5: allow D-Bus to spawn obexd in systems without systemd

2016-03-19 Thread Javier Viguera

On 09/03/16 19:33, Javier Viguera wrote:

On 24/02/16 19:12, Javier Viguera wrote:

This includes a proper D-Bus service file for obexd in systems that do
not support systemd.

Signed-off-by: Javier Viguera



Ping.



I know people is probably busy enough trying to stabilize the upcoming 
2.1 release, but could this be considered for master?



Thanks,

Javier Viguera
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] bluez5: allow D-Bus to spawn obexd in systems without systemd

2016-03-19 Thread Otavio Salvador
On Fri, Mar 18, 2016 at 12:33 PM, Javier Viguera
 wrote:
> On 09/03/16 19:33, Javier Viguera wrote:
>>
>> On 24/02/16 19:12, Javier Viguera wrote:
>>>
>>> This includes a proper D-Bus service file for obexd in systems that do
>>> not support systemd.
>>>
>>> Signed-off-by: Javier Viguera
>>> 
>>
>>
>> Ping.
>>
>
> I know people is probably busy enough trying to stabilize the upcoming 2.1
> release, but could this be considered for master?

Agreed; this is good to be included as it does address an issue for a
lot of users. Ross, could you queue it for MUT please?

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] bluez5: allow D-Bus to spawn obexd in systems without systemd

2016-03-09 Thread Javier Viguera

On 24/02/16 19:12, Javier Viguera wrote:

This includes a proper D-Bus service file for obexd in systems that do
not support systemd.

Signed-off-by: Javier Viguera 


Ping.

--
Thanks,

Javier Viguera
--
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] bluez5: allow D-Bus to spawn obexd in systems without systemd

2016-02-24 Thread Javier Viguera
This includes a proper D-Bus service file for obexd in systems that do
not support systemd.

Signed-off-by: Javier Viguera 
---
 meta/recipes-connectivity/bluez5/bluez5.inc|  1 +
 ...-obexd-without-systemd-in-the-user-sessio.patch | 63 ++
 2 files changed, 64 insertions(+)
 create mode 100644 
meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc 
b/meta/recipes-connectivity/bluez5/bluez5.inc
index ff2bdcba62a4..f38eaa503598 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -19,6 +19,7 @@ PACKAGECONFIG[experimental] = 
"--enable-experimental,--disable-experimental,"
 SRC_URI = "\
 ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
 file://init \
+${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 
'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \
 "
 S = "${WORKDIR}/bluez-${PV}"
 
diff --git 
a/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
 
b/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
new file mode 100644
index ..2fde7bc06923
--- /dev/null
+++ 
b/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
@@ -0,0 +1,63 @@
+From: Giovanni Campagna 
+Date: Sat, 12 Oct 2013 17:45:25 +0200
+Subject: [PATCH] Allow using obexd without systemd in the user session
+
+Not all sessions run systemd --user (actually, the majority
+doesn't), so the dbus daemon must be able to spawn obexd
+directly, and to do so it needs the full path of the daemon.
+
+Upstream-Status: Denied
+
+Not accepted by upstream maintainer for being a distro specific
+configuration. See thread:
+
+http://thread.gmane.org/gmane.linux.bluez.kernel/38725/focus=38843
+
+Signed-off-by: Javier Viguera 
+---
+ Makefile.obexd  | 4 ++--
+ obexd/src/org.bluez.obex.service| 4 
+ obexd/src/org.bluez.obex.service.in | 4 
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+ delete mode 100644 obexd/src/org.bluez.obex.service
+ create mode 100644 obexd/src/org.bluez.obex.service.in
+
+diff --git a/Makefile.obexd b/Makefile.obexd
+index 2e33cbc72f2b..d5d858c857b4 100644
+--- a/Makefile.obexd
 b/Makefile.obexd
+@@ -2,12 +2,12 @@
+ if SYSTEMD
+ systemduserunitdir = @SYSTEMD_USERUNITDIR@
+ systemduserunit_DATA = obexd/src/obex.service
++endif
+ 
+ dbussessionbusdir = @DBUS_SESSIONBUSDIR@
+ dbussessionbus_DATA = obexd/src/org.bluez.obex.service
+-endif
+ 
+-EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service
++EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in
+ 
+ obex_plugindir = $(libdir)/obex/plugins
+ 
+diff --git a/obexd/src/org.bluez.obex.service 
b/obexd/src/org.bluez.obex.service
+deleted file mode 100644
+index a53808884554..
+--- a/obexd/src/org.bluez.obex.service
 /dev/null
+@@ -1,4 +0,0 @@
+-[D-BUS Service]
+-Name=org.bluez.obex
+-Exec=/bin/false
+-SystemdService=dbus-org.bluez.obex.service
+diff --git a/obexd/src/org.bluez.obex.service.in 
b/obexd/src/org.bluez.obex.service.in
+new file mode 100644
+index ..9c815f246b77
+--- /dev/null
 b/obexd/src/org.bluez.obex.service.in
+@@ -0,0 +1,4 @@
++[D-BUS Service]
++Name=org.bluez.obex
++Exec=@libexecdir@/obexd
++SystemdService=dbus-org.bluez.obex.service
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core