public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PREFIX BlueZ 0/1] Makefile.am: Install D-Bus policy in /usr/share, not /etc
@ 2023-08-08  6:57 Gioele Barabucci
  2023-08-08  6:57 ` [PREFIX BlueZ 1/1] " Gioele Barabucci
  0 siblings, 1 reply; 4+ messages in thread
From: Gioele Barabucci @ 2023-08-08  6:57 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Gioele Barabucci

This patch changes Makefile.am to install the bluez D-Bus policy in
`/usr/share/dbus-1/system.d` instead of `/etc/dbus-1/system.d`.

From https://bugs.debian.org/1006631:

> dbus supports policy files in both /usr/share/dbus-1/system.d and
> /etc/dbus-1/systemd. [The] recently released dbus 1.14.0, officially
> deprecates installing packages' default policies into /etc/dbus-1/systemd,
> instead reserving it for the sysadmin. This is the same idea as the
> difference between /usr/lib/udev/rules.d and /etc/udev/rules.d.

D-Bus supports reading policies from /usr since version 1.10,
released in 2015:
https://sources.debian.org/src/dbus/1.10.32-0%2Bdeb9u1/NEWS/#L483-L499

Regards,

Gioele Barabucci (1):
  Makefile.am: Install D-Bus policy in /usr/share, not /etc

 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH BlueZ 1/1] Makefile.am: Install D-Bus policy in /usr/share, not /etc
@ 2023-08-08  8:55 Gioele Barabucci
  2023-08-08 19:37 ` bluez.test.bot
  0 siblings, 1 reply; 4+ messages in thread
From: Gioele Barabucci @ 2023-08-08  8:55 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Gioele Barabucci

From https://bugs.debian.org/1006631:

> dbus supports policy files in both `/usr/share/dbus-1/system.d` and
> `/etc/dbus-1/systemd`. [The] recently released dbus 1.14.0, officially
> deprecates installing packages' default policies into `/etc/dbus-1/systemd`,
> instead reserving it for the sysadmin. This is the same idea as the
> difference between `/usr/lib/udev/rules.d` and `/etc/udev/rules.d`.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 4b9b7e5cd..f23c39d20 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -32,7 +32,7 @@ confdir = $(sysconfdir)/bluetooth
 statedir = $(localstatedir)/lib/bluetooth
 
 if DATAFILES
-dbusdir = $(DBUS_CONFDIR)/dbus-1/system.d
+dbusdir = $(datadir)/dbus-1/system.d
 dbus_DATA = src/bluetooth.conf
 
 conf_DATA =
-- 
2.39.2


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

end of thread, other threads:[~2023-08-08 20:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08  6:57 [PREFIX BlueZ 0/1] Makefile.am: Install D-Bus policy in /usr/share, not /etc Gioele Barabucci
2023-08-08  6:57 ` [PREFIX BlueZ 1/1] " Gioele Barabucci
2023-08-08 19:28   ` bluez.test.bot
  -- strict thread matches above, loose matches on Subject: below --
2023-08-08  8:55 [PATCH BlueZ 1/1] " Gioele Barabucci
2023-08-08 19:37 ` 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