linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] obexd: Install D-BUS service for non systemd
@ 2024-03-07  0:39 Joakim Tjernlund
  2024-03-07  0:44 ` bluez.test.bot
  2024-03-07  3:40 ` [PATCH] " Luiz Augusto von Dentz
  0 siblings, 2 replies; 5+ messages in thread
From: Joakim Tjernlund @ 2024-03-07  0:39 UTC (permalink / raw)
  To: linux-bluetooth @ vger . kernel . org; +Cc: Joakim Tjernlund

From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>

non systemd(like OpenRC) machines need D-BUS activation for obexd as
they lack --user service.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
---
 Makefile.obexd | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/Makefile.obexd b/Makefile.obexd
index 385e5618d..cfcc115b7 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 if OBEX
 
-if SYSTEMD
 systemduserunitdir = $(SYSTEMD_USERUNITDIR)
 systemduserunit_DATA = obexd/src/obex.service
 
@@ -10,10 +9,6 @@ obexd-add-service-symlink:
 
 obexd-remove-service-symlink:
 	rm -f $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service
-else
-obexd-add-service-symlink:
-obexd-remove-service-symlink:
-endif
 
 dbussessionbusdir = $(DBUS_SESSIONBUSDIR)
 dbussessionbus_DATA = obexd/src/org.bluez.obex.service
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: obexd: Install D-BUS service for non systemd
  2024-03-07  0:39 [PATCH] obexd: Install D-BUS service for non systemd Joakim Tjernlund
@ 2024-03-07  0:44 ` bluez.test.bot
  2024-03-07  3:40 ` [PATCH] " Luiz Augusto von Dentz
  1 sibling, 0 replies; 5+ messages in thread
From: bluez.test.bot @ 2024-03-07  0:44 UTC (permalink / raw)
  To: linux-bluetooth, Joakim.Tjernlund

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----

error: patch failed: Makefile.obexd:10
error: Makefile.obexd: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.


---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] obexd: Install D-BUS service for non systemd
  2024-03-07  0:39 [PATCH] obexd: Install D-BUS service for non systemd Joakim Tjernlund
  2024-03-07  0:44 ` bluez.test.bot
@ 2024-03-07  3:40 ` Luiz Augusto von Dentz
  2024-03-07  8:18   ` Joakim Tjernlund
  1 sibling, 1 reply; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2024-03-07  3:40 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: linux-bluetooth @ vger . kernel . org

Hi Joakim,

On Wed, Mar 6, 2024 at 7:40 PM Joakim Tjernlund
<joakim.tjernlund@infinera.com> wrote:
>
> From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
>
> non systemd(like OpenRC) machines need D-BUS activation for obexd as
> they lack --user service.
>
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
> ---
>  Makefile.obexd | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/Makefile.obexd b/Makefile.obexd
> index 385e5618d..cfcc115b7 100644
> --- a/Makefile.obexd
> +++ b/Makefile.obexd
> @@ -1,7 +1,6 @@
>  # SPDX-License-Identifier: GPL-2.0
>  if OBEX
>
> -if SYSTEMD
>  systemduserunitdir = $(SYSTEMD_USERUNITDIR)
>  systemduserunit_DATA = obexd/src/obex.service
>
> @@ -10,10 +9,6 @@ obexd-add-service-symlink:
>
>  obexd-remove-service-symlink:
>         rm -f $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service
> -else
> -obexd-add-service-symlink:
> -obexd-remove-service-symlink:
> -endif
>
>  dbussessionbusdir = $(DBUS_SESSIONBUSDIR)
>  dbussessionbus_DATA = obexd/src/org.bluez.obex.service
> --
> 2.43.0
>

I guess you want to revert 9cc8b97b8f5d060e334207136100e947732aed08,
but then we need to fix the checkpatch error:

commit 9cc8b97b8f5d060e334207136100e947732aed08
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon Mar 4 12:44:08 2024 -0500

    build: obexd: Fix make distcheck

    This fixes the following error:

    /usr/bin/install: cannot remove
    '/usr/share/dbus-1/services/org.bluez.obex.service': Permission denied



-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] obexd: Install D-BUS service for non systemd
  2024-03-07  3:40 ` [PATCH] " Luiz Augusto von Dentz
@ 2024-03-07  8:18   ` Joakim Tjernlund
  2024-03-07 11:56     ` Joakim Tjernlund
  0 siblings, 1 reply; 5+ messages in thread
From: Joakim Tjernlund @ 2024-03-07  8:18 UTC (permalink / raw)
  To: luiz.dentz@gmail.com; +Cc: linux-bluetooth@vger.kernel.org

On Wed, 2024-03-06 at 22:40 -0500, Luiz Augusto von Dentz wrote:
> Hi Joakim,
Hi Luiz :)

> 
> On Wed, Mar 6, 2024 at 7:40 PM Joakim Tjernlund
> <joakim.tjernlund@infinera.com> wrote:
> > 
> > From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
> > 
> > non systemd(like OpenRC) machines need D-BUS activation for obexd as
> > they lack --user service.
> > 
> > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
> > ---
> >  Makefile.obexd | 5 -----
> >  1 file changed, 5 deletions(-)
> > 
> > diff --git a/Makefile.obexd b/Makefile.obexd
> > index 385e5618d..cfcc115b7 100644
> > --- a/Makefile.obexd
> > +++ b/Makefile.obexd
> > @@ -1,7 +1,6 @@
> >  # SPDX-License-Identifier: GPL-2.0
> >  if OBEX
> > 
> > -if SYSTEMD
> >  systemduserunitdir = $(SYSTEMD_USERUNITDIR)
> >  systemduserunit_DATA = obexd/src/obex.service
> > 
> > @@ -10,10 +9,6 @@ obexd-add-service-symlink:
> > 
> >  obexd-remove-service-symlink:
> >         rm -f $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service
> > -else
> > -obexd-add-service-symlink:
> > -obexd-remove-service-symlink:
> > -endif
> > 
> >  dbussessionbusdir = $(DBUS_SESSIONBUSDIR)
> >  dbussessionbus_DATA = obexd/src/org.bluez.obex.service
> > --
> > 2.43.0
> > 
> 
> I guess you want to revert 9cc8b97b8f5d060e334207136100e947732aed08,
> but then we need to fix the checkpatch error:

Don't know that, a bit clueless about distcheck and what it does.
For me it fails before my patch already:

./bootstrap
./configure
make distcheck
make --no-print-directory dist-xz am__post_remove_distdir='@:'
  GEN      lib/bluetooth/bluetooth.h
  GEN      lib/bluetooth/hci.h
  GEN      lib/bluetooth/hci_lib.h
  GEN      lib/bluetooth/sco.h
  GEN      lib/bluetooth/l2cap.h
  GEN      lib/bluetooth/sdp.h
  GEN      lib/bluetooth/sdp_lib.h
  GEN      lib/bluetooth/rfcomm.h
  GEN      lib/bluetooth/bnep.h
  GEN      lib/bluetooth/cmtp.h
  GEN      lib/bluetooth/hidp.h
  GEN      ell/shared
  GEN      src/builtin.h
  GEN      obexd/src/builtin.h
make --no-print-directory distdir-am
make[2]: *** No rule to make target 'ell/util.h', needed by 'distdir-am'.  Stop.
make[1]: *** [Makefile:12016: distdir] Error 2
make: *** [Makefile:12096: dist] Error 2


 Jocke
> 
> commit 9cc8b97b8f5d060e334207136100e947732aed08
> Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> Date:   Mon Mar 4 12:44:08 2024 -0500
> 
>     build: obexd: Fix make distcheck
> 
>     This fixes the following error:
> 
>     /usr/bin/install: cannot remove
>     '/usr/share/dbus-1/services/org.bluez.obex.service': Permission denied
> 
> 
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] obexd: Install D-BUS service for non systemd
  2024-03-07  8:18   ` Joakim Tjernlund
@ 2024-03-07 11:56     ` Joakim Tjernlund
  0 siblings, 0 replies; 5+ messages in thread
From: Joakim Tjernlund @ 2024-03-07 11:56 UTC (permalink / raw)
  To: luiz.dentz@gmail.com; +Cc: linux-bluetooth@vger.kernel.org

On Thu, 2024-03-07 at 09:18 +0100, Joakim Tjernlund wrote:
> On Wed, 2024-03-06 at 22:40 -0500, Luiz Augusto von Dentz wrote:
> > Hi Joakim,
> Hi Luiz :)

FYI, that patch should hav been smaller, this is enough to get the D-BUS service:
diff --git a/Makefile.am b/Makefile.am
index ed4f9dc51..e780fcbb1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -48,10 +48,10 @@ endif
 if SYSTEMD
 systemdsystemunitdir = $(SYSTEMD_SYSTEMUNITDIR)
 systemdsystemunit_DATA = src/bluetooth.service
+endif
 
 dbussystembusdir = $(DBUS_SYSTEMBUSDIR)
 dbussystembus_DATA = src/org.bluez.service
-endif


> 
> > 
> > On Wed, Mar 6, 2024 at 7:40 PM Joakim Tjernlund
> > <joakim.tjernlund@infinera.com> wrote:
> > > 
> > > From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
> > > 
> > > non systemd(like OpenRC) machines need D-BUS activation for obexd as
> > > they lack --user service.
> > > 
> > > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
> > > ---
> > >  Makefile.obexd | 5 -----
> > >  1 file changed, 5 deletions(-)
> > > 
> > > diff --git a/Makefile.obexd b/Makefile.obexd
> > > index 385e5618d..cfcc115b7 100644
> > > --- a/Makefile.obexd
> > > +++ b/Makefile.obexd
> > > @@ -1,7 +1,6 @@
> > >  # SPDX-License-Identifier: GPL-2.0
> > >  if OBEX
> > > 
> > > -if SYSTEMD
> > >  systemduserunitdir = $(SYSTEMD_USERUNITDIR)
> > >  systemduserunit_DATA = obexd/src/obex.service
> > > 
> > > @@ -10,10 +9,6 @@ obexd-add-service-symlink:
> > > 
> > >  obexd-remove-service-symlink:
> > >         rm -f $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service
> > > -else
> > > -obexd-add-service-symlink:
> > > -obexd-remove-service-symlink:
> > > -endif
> > > 
> > >  dbussessionbusdir = $(DBUS_SESSIONBUSDIR)
> > >  dbussessionbus_DATA = obexd/src/org.bluez.obex.service
> > > --
> > > 2.43.0
> > > 
> > 
> > I guess you want to revert 9cc8b97b8f5d060e334207136100e947732aed08,
> > but then we need to fix the checkpatch error:
> 
> Don't know that, a bit clueless about distcheck and what it does.
> For me it fails before my patch already:
> 
> ./bootstrap
> ./configure
> make distcheck
> make --no-print-directory dist-xz am__post_remove_distdir='@:'
>   GEN      lib/bluetooth/bluetooth.h
>   GEN      lib/bluetooth/hci.h
>   GEN      lib/bluetooth/hci_lib.h
>   GEN      lib/bluetooth/sco.h
>   GEN      lib/bluetooth/l2cap.h
>   GEN      lib/bluetooth/sdp.h
>   GEN      lib/bluetooth/sdp_lib.h
>   GEN      lib/bluetooth/rfcomm.h
>   GEN      lib/bluetooth/bnep.h
>   GEN      lib/bluetooth/cmtp.h
>   GEN      lib/bluetooth/hidp.h
>   GEN      ell/shared
>   GEN      src/builtin.h
>   GEN      obexd/src/builtin.h
> make --no-print-directory distdir-am
> make[2]: *** No rule to make target 'ell/util.h', needed by 'distdir-am'.  Stop.
> make[1]: *** [Makefile:12016: distdir] Error 2
> make: *** [Makefile:12096: dist] Error 2
> 
> 
>  Jocke
> > 
> > commit 9cc8b97b8f5d060e334207136100e947732aed08
> > Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
> > Date:   Mon Mar 4 12:44:08 2024 -0500
> > 
> >     build: obexd: Fix make distcheck
> > 
> >     This fixes the following error:
> > 
> >     /usr/bin/install: cannot remove
> >     '/usr/share/dbus-1/services/org.bluez.obex.service': Permission denied
> > 
> > 
> > 
> 


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-03-07 11:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07  0:39 [PATCH] obexd: Install D-BUS service for non systemd Joakim Tjernlund
2024-03-07  0:44 ` bluez.test.bot
2024-03-07  3:40 ` [PATCH] " Luiz Augusto von Dentz
2024-03-07  8:18   ` Joakim Tjernlund
2024-03-07 11:56     ` Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).