dbus/tools Makefile.am,1.19,1.20 dbus-launch.c,1.14,1.15
John Palmieri
johnp at kemper.freedesktop.org
Tue Aug 8 14:30:33 PDT 2006
- Previous message: dbus ChangeLog,1.1065,1.1066 configure.in,1.162,1.163
- Next message: dbus/bus Makefile.am, 1.39, 1.40 dir-watch-default.c, NONE,
1.1 dir-watch-dnotify.c, NONE, 1.1 dir-watch-kqueue.c, NONE,
1.1 dir-watch.c, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/dbus/dbus/tools
In directory kemper:/tmp/cvs-serv29038/tools
Modified Files:
Makefile.am dbus-launch.c
Log Message:
* configure.in:
* tools/Makefile.am:
* tools/dbus-launch.c:
* bus/Makefile.am:
allow --with-dbus-daemondir switch to be used to make the
daemon install to a seperate bindir like /usr/libexec
(patch from Brian Cameron <brian dot cameron at sun dot com)
Index: Makefile.am
===================================================================
RCS file: /cvs/dbus/dbus/tools/Makefile.am,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- Makefile.am 14 Jul 2006 16:20:12 -0000 1.19
+++ Makefile.am 8 Aug 2006 21:30:31 -0000 1.20
@@ -1,4 +1,4 @@
-INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_X_CFLAGS) -DDBUS_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\" -DDBUS_COMPILATION
+INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_X_CFLAGS) -DDBUS_LOCALEDIR=\"$(prefix)/@DATADIRNAME@/locale\" -DDBUS_COMPILATION -DDBUS_DAEMONDIR=\"@DBUS_DAEMONDIR@\"
bin_PROGRAMS=dbus-send dbus-monitor dbus-launch dbus-cleanup-sockets
Index: dbus-launch.c
===================================================================
RCS file: /cvs/dbus/dbus/tools/dbus-launch.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- dbus-launch.c 3 Aug 2006 20:34:36 -0000 1.14
+++ dbus-launch.c 8 Aug 2006 21:30:31 -0000 1.15
@@ -771,6 +771,25 @@
verbose ("Calling exec()\n");
+ execl (DBUS_DAEMONDIR"/dbus-daemon",
+ DBUS_DAEMONDIR"/dbus-daemon",
+ "--fork",
+ "--print-pid", write_pid_fd_as_string,
+ "--print-address", write_address_fd_as_string,
+ config_file ? "--config-file" : "--session",
+ config_file, /* has to be last in this varargs list */
+ NULL);
+
+ fprintf (stderr,
+ "Failed to execute message bus daemon %s: %s. Will try again without full path.\n",
+ DBUS_DAEMONDIR"/dbus-daemon", strerror (errno));
+
+ /*
+ * If it failed, try running without full PATH. Note this is needed
+ * because the build process builds the run-with-tmp-session-bus.conf
+ * file and the dbus-daemon will not be in the install location during
+ * build time.
+ */
execlp ("dbus-daemon",
"dbus-daemon",
"--fork",
- Previous message: dbus ChangeLog,1.1065,1.1066 configure.in,1.162,1.163
- Next message: dbus/bus Makefile.am, 1.39, 1.40 dir-watch-default.c, NONE,
1.1 dir-watch-dnotify.c, NONE, 1.1 dir-watch-kqueue.c, NONE,
1.1 dir-watch.c, 1.1, NONE
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dbus-commit
mailing list