diff options
author | kwm <kwm@FreeBSD.org> | 2010-10-23 06:32:20 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2010-10-23 06:32:20 +0800 |
commit | 44f400361e75ebf392783ed5cd4be4feb8bdd3c9 (patch) | |
tree | 6e847365e747e0477e5c13a4702e2b3855882cf6 /devel/dbus/files | |
parent | c6a51de7203aad73c9223deebfdb680637e9c4c4 (diff) | |
download | freebsd-ports-gnome-44f400361e75ebf392783ed5cd4be4feb8bdd3c9.tar.gz freebsd-ports-gnome-44f400361e75ebf392783ed5cd4be4feb8bdd3c9.tar.zst freebsd-ports-gnome-44f400361e75ebf392783ed5cd4be4feb8bdd3c9.zip |
Update to 1.4.0.
Fix dbus launch on diskless systems [1]
PR: ports/151331 [1], ports/132304
Submitted by: Zane C.B. <vvelox@vvelox.net> [1]
Diffstat (limited to 'devel/dbus/files')
-rw-r--r-- | devel/dbus/files/dbus.in | 7 | ||||
-rw-r--r-- | devel/dbus/files/patch-bus_dir-watch-kqueue.c | 11 | ||||
-rw-r--r-- | devel/dbus/files/patch-dbus-1.pc.in | 9 | ||||
-rw-r--r-- | devel/dbus/files/patch-dbus_dbus-connection.c | 26 |
4 files changed, 25 insertions, 28 deletions
diff --git a/devel/dbus/files/dbus.in b/devel/dbus/files/dbus.in index 1d06ee130079..849e5513cdc2 100644 --- a/devel/dbus/files/dbus.in +++ b/devel/dbus/files/dbus.in @@ -27,6 +27,13 @@ stop_postcmd="dbus_poststop" dbus_prestart() { + if [ ! -d /var/db/dbus ]; then + mkdir -p /var/db/dbus + fi + if [ ! -f /var/db/dbus/machine-id ]; then + dbus-uuidgen > /var/db/dbus/machine-id + fi + mkdir -p $(dirname $pidfile) } diff --git a/devel/dbus/files/patch-bus_dir-watch-kqueue.c b/devel/dbus/files/patch-bus_dir-watch-kqueue.c deleted file mode 100644 index b65d9ab84bdf..000000000000 --- a/devel/dbus/files/patch-bus_dir-watch-kqueue.c +++ /dev/null @@ -1,11 +0,0 @@ ---- bus/dir-watch-kqueue.c.orig 2010-04-04 17:59:18.000000000 -0400 -+++ bus/dir-watch-kqueue.c 2010-04-04 17:59:55.000000000 -0400 -@@ -169,7 +169,7 @@ bus_set_watched_dirs (BusContext *contex - */ - for (i = 0; new_dirs[i]; i++) - { -- for (j = 0; i < num_fds; j++) -+ for (j = 0; j < num_fds; j++) - { - if (dirs[j] && strcmp (new_dirs[i], dirs[j]) == 0) - { diff --git a/devel/dbus/files/patch-dbus-1.pc.in b/devel/dbus/files/patch-dbus-1.pc.in index 44c97a29ef4f..4563a473b27f 100644 --- a/devel/dbus/files/patch-dbus-1.pc.in +++ b/devel/dbus/files/patch-dbus-1.pc.in @@ -1,9 +1,8 @@ ---- dbus-1.pc.in.orig Mon Nov 6 02:55:38 2006 -+++ dbus-1.pc.in Mon Nov 6 02:55:57 2006 -@@ -10,5 +10,5 @@ Name: dbus +--- dbus-1.pc.in.orig 2010-08-31 21:44:19.000000000 +0000 ++++ dbus-1.pc.in 2010-09-18 17:52:00.000000000 +0000 +@@ -13,4 +13,4 @@ Name: dbus Description: Free desktop message bus Version: @VERSION@ - Libs: -L${libdir} -ldbus-1 @DBUS_CLIENT_LIBS@ + Libs: -L${libdir} -ldbus-1 @DBUS_CLIENT_LIBS@ -Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include +Cflags: -I${includedir}/dbus-1.0 -I${includedir}/dbus-1.0/include - diff --git a/devel/dbus/files/patch-dbus_dbus-connection.c b/devel/dbus/files/patch-dbus_dbus-connection.c index b992b9e5e83f..f372d7600520 100644 --- a/devel/dbus/files/patch-dbus_dbus-connection.c +++ b/devel/dbus/files/patch-dbus_dbus-connection.c @@ -1,6 +1,6 @@ ---- dbus/dbus-connection.c.orig 2010-03-13 17:21:40.000000000 -0500 -+++ dbus/dbus-connection.c 2010-03-13 17:25:28.000000000 -0500 -@@ -2280,7 +2280,7 @@ _dbus_connection_block_pending_call (DBu +--- dbus/dbus-connection.c.orig 2010-08-31 21:44:19.000000000 +0000 ++++ dbus/dbus-connection.c 2010-09-18 18:01:19.000000000 +0000 +@@ -2364,7 +2364,7 @@ _dbus_connection_block_pending_call (DBu DBusConnection *connection; dbus_uint32_t client_serial; DBusTimeout *timeout; @@ -9,18 +9,20 @@ _dbus_assert (pending != NULL); -@@ -2360,6 +2360,10 @@ _dbus_connection_block_pending_call (DBu +@@ -2445,7 +2445,11 @@ _dbus_connection_block_pending_call (DBu _dbus_get_current_time (&tv_sec, &tv_usec); elapsed_milliseconds = (tv_sec - start_tv_sec) * 1000 + (tv_usec - start_tv_usec) / 1000; +- + if (timeout_milliseconds != -1) + remain_milliseconds = timeout_milliseconds - elapsed_milliseconds; + else + remain_milliseconds = -1; - ++ if (!_dbus_connection_get_is_connected_unlocked (connection)) { -@@ -2386,7 +2390,7 @@ _dbus_connection_block_pending_call (DBu + DBusMessage *error_msg; +@@ -2471,7 +2475,7 @@ _dbus_connection_block_pending_call (DBu */ _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n"); @@ -29,8 +31,8 @@ } else { -@@ -2394,7 +2398,7 @@ _dbus_connection_block_pending_call (DBu - _dbus_connection_do_iteration_unlocked (connection, +@@ -2480,7 +2484,7 @@ _dbus_connection_block_pending_call (DBu + pending, DBUS_ITERATION_DO_READING | DBUS_ITERATION_BLOCK, - timeout_milliseconds - elapsed_milliseconds); @@ -38,7 +40,7 @@ } goto recheck_status; -@@ -2403,7 +2407,7 @@ _dbus_connection_block_pending_call (DBu +@@ -2489,7 +2493,7 @@ _dbus_connection_block_pending_call (DBu _dbus_verbose ("dbus_connection_send_with_reply_and_block(): clock set backward\n"); else if (elapsed_milliseconds < timeout_milliseconds) { @@ -47,7 +49,7 @@ if (status == DBUS_DISPATCH_NEED_MEMORY) { -@@ -2413,7 +2417,7 @@ _dbus_connection_block_pending_call (DBu +@@ -2499,7 +2503,7 @@ _dbus_connection_block_pending_call (DBu */ _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n"); @@ -56,8 +58,8 @@ } else { -@@ -2421,7 +2425,7 @@ _dbus_connection_block_pending_call (DBu - _dbus_connection_do_iteration_unlocked (connection, +@@ -2508,7 +2512,7 @@ _dbus_connection_block_pending_call (DBu + NULL, DBUS_ITERATION_DO_READING | DBUS_ITERATION_BLOCK, - timeout_milliseconds - elapsed_milliseconds); |