public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v4 0/2] configure.ac: Install D-Bus policy in /usr/share, not /etc
@ 2023-08-09  6:51 Gioele Barabucci
  2023-08-09  6:51 ` [PATCH BlueZ v4 1/2] configure.ac: Bump minimum D-Bus version to 1.10 Gioele Barabucci
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Gioele Barabucci @ 2023-08-09  6:51 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Gioele Barabucci

[Sending again, this time with the right commit titles. Sorry for the noise.]

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

v3 -> v4:
- reorder commits and fix titles

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

-- 
2.39.2


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH BlueZ v3 1/2] configure.ac: Bump minimum D-Bus version to 1.10
@ 2023-08-09  6:44 Gioele Barabucci
  2023-08-09  8:24 ` configure.ac: Install D-Bus policy in /usr/share, not /etc bluez.test.bot
  0 siblings, 1 reply; 6+ messages in thread
From: Gioele Barabucci @ 2023-08-09  6:44 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Gioele Barabucci

D-Bus 1.10, released in 2015, is the first version that supports reading
policy files from `/usr/share/dbus-1` in addition to `/etc/dbus-1`.

The previous minimum version, 1.6, was released in 2012.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index bc7edfcd3..5348bf3c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,7 +95,7 @@ AC_ARG_WITH([dbusconfdir], AS_HELP_STRING([--with-dbusconfdir=DIR],
 					[path_dbusconfdir=${withval}])
 if (test -z "${path_dbusconfdir}"); then
 	AC_MSG_CHECKING([D-Bus configuration directory])
-	path_dbusconfdir="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
+	path_dbusconfdir="`$PKG_CONFIG --variable=datadir dbus-1`"
 	if (test -z "${path_dbusconfdir}"); then
 		AC_MSG_ERROR([D-Bus configuration directory is required])
 	fi
-- 
2.39.2


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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09  6:51 [PATCH BlueZ v4 0/2] configure.ac: Install D-Bus policy in /usr/share, not /etc Gioele Barabucci
2023-08-09  6:51 ` [PATCH BlueZ v4 1/2] configure.ac: Bump minimum D-Bus version to 1.10 Gioele Barabucci
2023-08-09  8:25   ` configure.ac: Install D-Bus policy in /usr/share, not /etc bluez.test.bot
2023-08-09  6:51 ` [PATCH BlueZ v4 2/2] " Gioele Barabucci
2023-08-09 18:20 ` [PATCH BlueZ v4 0/2] " patchwork-bot+bluetooth
  -- strict thread matches above, loose matches on Subject: below --
2023-08-09  6:44 [PATCH BlueZ v3 1/2] configure.ac: Bump minimum D-Bus version to 1.10 Gioele Barabucci
2023-08-09  8:24 ` configure.ac: Install D-Bus policy in /usr/share, not /etc 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