summaryrefslogtreecommitdiff
path: root/devel/dbus/files/patch-dbus_dbus-sysdeps-util-unix.c
blob: 88462759c72c0ea9418197eea10b170dd9f32878 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- dbus/dbus-sysdeps-util-unix.c.orig	2022-09-14 12:12:21 UTC
+++ dbus/dbus-sysdeps-util-unix.c
@@ -44,6 +44,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <syslog.h>
 #include <sys/stat.h>
 #ifdef HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
@@ -1394,7 +1395,7 @@ out:
  * On UNIX this should be the standard xdg freedesktop.org data directories:
  *
  * XDG_DATA_HOME=${XDG_DATA_HOME-$HOME/.local/share}
- * XDG_DATA_DIRS=${XDG_DATA_DIRS-/usr/local/share:/usr/share}
+ * XDG_DATA_DIRS=${XDG_DATA_DIRS-%%LOCALBASE%%/share:/usr/share}
  *
  * and
  *
@@ -1451,7 +1452,7 @@ _dbus_get_standard_session_servicedirs (DBusList **dir
     }
   else
     {
-      if (!_dbus_string_append (&servicedir_path, "/usr/local/share:/usr/share:"))
+      if (!_dbus_string_append (&servicedir_path, "%%LOCALBASE%%/share:/usr/share:"))
         goto oom;
     }
 
@@ -1484,7 +1485,7 @@ _dbus_get_standard_session_servicedirs (DBusList **dir
  *
  * On UNIX this should be the standard xdg freedesktop.org data directories:
  *
- * XDG_DATA_DIRS=${XDG_DATA_DIRS-/usr/local/share:/usr/share}
+ * XDG_DATA_DIRS=${XDG_DATA_DIRS-%%LOCALBASE%%/share:/usr/share}
  *
  * and
  *
@@ -1509,7 +1510,7 @@ _dbus_get_standard_system_servicedirs (DBusList **dirs
    * be available.
    */
   static const char standard_search_path[] =
-    "/usr/local/share:"
+    "%%LOCALBASE%%/share:"
     "/usr/share:"
     DBUS_DATADIR ":"
     "/lib";