1*4882a593SmuzhiyunFrom 4bb2157adae620c8b07caf5a24b177d1f90f2fbb Mon Sep 17 00:00:00 2001 2*4882a593SmuzhiyunFrom: Simon McVittie <smcv@debian.org> 3*4882a593SmuzhiyunDate: Thu, 3 Jun 2021 18:57:00 +0100 4*4882a593SmuzhiyunSubject: [PATCH] build: Don't require dbus development files 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunWe don't actually need libdbus, only the dbus-daemon's installation 7*4882a593Smuzhiyundirectory for system services, which in practice is always going to be 8*4882a593Smuzhiyun/usr/share/dbus-1/system-services. 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunSigned-off-by: Simon McVittie <smcv@debian.org> 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun[Retrieved (and slightly updated for duktape fork) from: 13*4882a593Smuzhiyunhttps://gitlab.freedesktop.org/polkit/polkit/-/commit/4bb2157adae620c8b07caf5a24b177d1f90f2fbb] 14*4882a593SmuzhiyunSigned-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 15*4882a593Smuzhiyun--- 16*4882a593Smuzhiyun meson.build | 9 +++++++-- 17*4882a593Smuzhiyun 1 file changed, 7 insertions(+), 2 deletions(-) 18*4882a593Smuzhiyun 19*4882a593Smuzhiyundiff --git a/meson.build b/meson.build 20*4882a593Smuzhiyunindex 03a7683..539ec7a 100644 21*4882a593Smuzhiyun--- a/meson.build 22*4882a593Smuzhiyun+++ b/meson.build 23*4882a593Smuzhiyun@@ -135,9 +135,14 @@ assert(cc.has_function('XML_ParserCreate', dependencies: expat_dep), 'Can\'t fin 24*4882a593Smuzhiyun js_dep = dependency('mozjs-78') 25*4882a593Smuzhiyun endif 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun-dbus_dep = dependency('dbus-1') 28*4882a593Smuzhiyun+dbus_dep = dependency('dbus-1', required: false) 29*4882a593Smuzhiyun dbus_policydir = pk_prefix / pk_datadir / 'dbus-1/system.d' 30*4882a593Smuzhiyun-dbus_system_bus_services_dir = dbus_dep.get_pkgconfig_variable('system_bus_services_dir', define_variable: ['datadir', pk_prefix / pk_datadir]) 31*4882a593Smuzhiyun+if dbus_dep.found() 32*4882a593Smuzhiyun+ dbus_system_bus_services_dir = dbus_dep.get_pkgconfig_variable('system_bus_services_dir', define_variable: ['datadir', pk_prefix / pk_datadir]) 33*4882a593Smuzhiyun+else 34*4882a593Smuzhiyun+ # libdbus development files not installed, assume a standard layout 35*4882a593Smuzhiyun+ dbus_system_bus_services_dir = pk_prefix / pk_datadir / 'dbus-1' / 'system-services' 36*4882a593Smuzhiyun+endif 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun # check OS 39*4882a593Smuzhiyun host_system = host_machine.system() 40*4882a593Smuzhiyun-- 41*4882a593SmuzhiyunGitLab 42*4882a593Smuzhiyun 43