linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/4] Handful of build fixes and cleanups
@ 2024-02-14 22:01 Emil Velikov via B4 Relay
  2024-02-14 22:01 ` [PATCH BlueZ 1/4] build: fold separate install-data-hooks Emil Velikov via B4 Relay
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Emil Velikov via B4 Relay @ 2024-02-14 22:01 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Emil Velikov

Hello list,

The very first patch in this series fixes a regression I've introduced
recently - sorry about that.

Namely: two separate patch series introduced an `install-data-hook` and
I didn't properly test with both combined. The former is unconditionally
set while the latter is not.

So if obex is enabled, we fail to create the config files :facepalm:

The second patch is a log pre-existing issue - we install dbus/systemd
service files, for obexd even when building with --disable-obex

The last two are trivial cleanups, so feel free to drop them if they
don't strike your interest.

---
Emil Velikov (4):
      build: fold separate install-data-hooks
      build: install obexd (dbus,systemd} services as needed
      build: drop %.rules make rule
      build: simplify coverage handling

 Makefile.am                               | 27 ++++++++++++---------------
 Makefile.obexd                            |  9 ++-------
 tools/{hid2hci.rules => 97-hid2hci.rules} |  0
 3 files changed, 14 insertions(+), 22 deletions(-)
---
base-commit: b55d98e5cc97e4ff8c3980b84f46c84f3b1c1ee3
change-id: 20240214-hook-fixup-f26304b71366

Best regards,
-- 
Emil Velikov <emil.l.velikov@gmail.com>


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH BlueZ v2 01/10] build: rework {install-data,uninstall}-hook
@ 2024-02-16 23:11 Emil Velikov via B4 Relay
  2024-02-17  0:31 ` Handful of build fixes and cleanups bluez.test.bot
  0 siblings, 1 reply; 9+ messages in thread
From: Emil Velikov via B4 Relay @ 2024-02-16 23:11 UTC (permalink / raw)
  To: linux-bluetooth

From: Emil Velikov <emil.l.velikov@gmail.com>

Currently autoconfigure throws a useful error, about a duplicate
install-data-hook.

Address that by making the two target specific and pulling them as
dependencies.

We have to create empty ones otherwise dependency tracking and
resolution will fail.
---
 Makefile.am    |  5 ++++-
 Makefile.obexd | 10 ++++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 5207c172b..450e931c6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,7 +31,7 @@ AM_LDFLAGS = $(MISC_LDFLAGS)
 confdir = $(sysconfdir)/bluetooth
 statedir = $(localstatedir)/lib/bluetooth
 
-install-data-hook:
+bluetoothd-fix-permissions:
 	install -dm555 $(DESTDIR)$(confdir)
 	install -dm700 $(DESTDIR)$(statedir)
 
@@ -422,6 +422,9 @@ include Makefile.obexd
 include android/Makefile.am
 include Makefile.mesh
 
+install-data-hook: bluetoothd-fix-permissions obexd-add-service-symlink
+uninstall-hook: obexd-remove-service-symlink
+
 if HID2HCI
 rulesdir = $(UDEV_DIR)/rules.d
 
diff --git a/Makefile.obexd b/Makefile.obexd
index 81456544d..0e8bc6de7 100644
--- a/Makefile.obexd
+++ b/Makefile.obexd
@@ -3,11 +3,14 @@ if SYSTEMD
 systemduserunitdir = $(SYSTEMD_USERUNITDIR)
 systemduserunit_DATA = obexd/src/obex.service
 
-install-data-hook:
+obexd-add-service-symlink:
 	$(LN_S) -f obex.service $(DESTDIR)$(SYSTEMD_USERUNITDIR)/dbus-org.bluez.obex.service
 
-uninstall-hook:
+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)
@@ -102,6 +105,9 @@ obexd_src_obexd_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) \
 
 obexd_src_obexd_CFLAGS = $(AM_CFLAGS) -fPIC
 
+else
+obexd-add-service-symlink:
+obexd-remove-service-symlink:
 endif
 
 obexd_src_obexd_SHORTNAME = obexd

-- 
2.43.1


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

end of thread, other threads:[~2024-02-17  0:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-14 22:01 [PATCH BlueZ 0/4] Handful of build fixes and cleanups Emil Velikov via B4 Relay
2024-02-14 22:01 ` [PATCH BlueZ 1/4] build: fold separate install-data-hooks Emil Velikov via B4 Relay
2024-02-14 22:23   ` Luiz Augusto von Dentz
2024-02-14 23:22     ` Emil Velikov
2024-02-14 23:18   ` Handful of build fixes and cleanups bluez.test.bot
2024-02-14 22:01 ` [PATCH BlueZ 2/4] build: install obexd (dbus,systemd} services as needed Emil Velikov via B4 Relay
2024-02-14 22:01 ` [PATCH BlueZ 3/4] build: drop %.rules make rule Emil Velikov via B4 Relay
2024-02-14 22:01 ` [PATCH BlueZ 4/4] build: simplify coverage handling Emil Velikov via B4 Relay
  -- strict thread matches above, loose matches on Subject: below --
2024-02-16 23:11 [PATCH BlueZ v2 01/10] build: rework {install-data,uninstall}-hook Emil Velikov via B4 Relay
2024-02-17  0:31 ` Handful of build fixes and cleanups bluez.test.bot

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).