mbox series

[BlueZ,v3,0/2] configure.ac: Install D-Bus policy in /usr/share, not /etc

Message ID 20230809064441.2002194-1-gioele@svario.it (mailing list archive)
Headers show
Series configure.ac: Install D-Bus policy in /usr/share, not /etc | expand

Message

Gioele Barabucci Aug. 9, 2023, 6:44 a.m. UTC
This patch changes configure.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,

v1 -> v2:
- bump D-Bus min version
- derive DBUS_CONFDIR from datadir

v2 -> v3:
- split in two commits

Gioele Barabucci (2):
  configure.ac: Bump minimum D-Bus version to 1.10
  configure.ac: Install D-Bus policy in /usr/share, not /etc

 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)