- Fix support for NetBSD's atomic ops. - Fix up some inconsistent handing of CONFIGURE_ARGS (mostly related to the debug option). - Add test target (commented out, see Makefile). - Add some patches from freedesktop.org git (see comments atop new patches). - Remove trailing comma from an enum in tools/dbus-monitor.c. Passes all tests on NetBSD/amd64 4.99.65, save for spawn test, which seems to hang (?). I'm also running GNOME now and everything seems to be in order.diff -r1.29 -r1.30 pkgsrc/sysutils/dbus/Makefile
(bjs)
@@ -1,17 +1,18 @@ | @@ -1,17 +1,18 @@ | |||
1 | # $NetBSD: Makefile,v 1.29 2008/06/13 11:28:35 drochner Exp $ | 1 | # $NetBSD: Makefile,v 1.30 2008/06/19 01:56:44 bjs Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= dbus-1.2.1 | 4 | DISTNAME= dbus-1.2.1 | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= sysutils | 6 | CATEGORIES= sysutils | |
6 | MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/ | 7 | MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/ | |
7 | 8 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= http://www.freedesktop.org/Software/dbus | 10 | HOMEPAGE= http://www.freedesktop.org/Software/dbus | |
10 | COMMENT= Message bus system | 11 | COMMENT= Message bus system | |
11 | 12 | |||
12 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
13 | 14 | |||
14 | CONFLICTS+= dbus-glib<0.71 | 15 | CONFLICTS+= dbus-glib<0.71 | |
15 | CONFLICTS+= py*-dbus<0.71 | 16 | CONFLICTS+= py*-dbus<0.71 | |
16 | 17 | |||
17 | GNU_CONFIGURE= YES | 18 | GNU_CONFIGURE= YES | |
@@ -24,30 +25,37 @@ PKG_DESTDIR_SUPPORT= user-destdir | @@ -24,30 +25,37 @@ PKG_DESTDIR_SUPPORT= user-destdir | |||
24 | 25 | |||
25 | .include "../../mk/bsd.prefs.mk" | 26 | .include "../../mk/bsd.prefs.mk" | |
26 | 27 | |||
27 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | 28 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | |
28 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | 29 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | |
29 | 30 | |||
30 | #CFLAGS.NetBSD+= -D_NETBSD_SOURCE | 31 | #CFLAGS.NetBSD+= -D_NETBSD_SOURCE | |
31 | 32 | |||
32 | CONFIGURE_ARGS_GROUPS= enable disable with without | 33 | CONFIGURE_ARGS_GROUPS= enable disable with without | |
33 | 34 | |||
34 | CONFIGURE_ARGS.Linux= abstract-sockets dnotify selinux | 35 | CONFIGURE_ARGS.Linux= abstract-sockets dnotify selinux | |
35 | CONFIGURE_ARGS.docs= doxygen-docs xml-docs | 36 | CONFIGURE_ARGS.docs= doxygen-docs xml-docs | |
36 | 37 | |||
37 | CONFIGURE_ARGS.disable= ansi asserts gcov tests | 38 | CONFIGURE_ARGS.disable= ansi gcov | |
38 | CONFIGURE_ARGS.disable+= console-owner-file verbose-mode | 39 | CONFIGURE_ARGS.disable+= console-owner-file | |
39 | CONFIGURE_ARGS.disable+= ${CONFIGURE_ARGS.docs} | 40 | CONFIGURE_ARGS.disable+= ${CONFIGURE_ARGS.docs} | |
40 | CONFIGURE_ARGS.enable= checks static | 41 | CONFIGURE_ARGS.enable= checks static | |
42 | ### | |||
43 | ### XXX the spawn test hangs, and some of these tests may be bogus | |||
44 | ### | |||
45 | #.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) | |||
46 | #PKG_OPTIONS.dbus+= debug | |||
47 | #TEST_TARGET= check | |||
48 | #.endif | |||
41 | 49 | |||
42 | CONFIGURE_ARGS.with= dbus-user=${DBUS_USER} | 50 | CONFIGURE_ARGS.with= dbus-user=${DBUS_USER} | |
43 | CONFIGURE_ARGS.with+= test-socket-dir=${WRKDIR:Q} | 51 | CONFIGURE_ARGS.with+= test-socket-dir=${WRKDIR:Q} | |
44 | CONFIGURE_ARGS.with+= xml=expat | 52 | CONFIGURE_ARGS.with+= xml=expat | |
45 | 53 | |||
46 | PTHREAD_AUTO_VARS= yes | 54 | PTHREAD_AUTO_VARS= yes | |
47 | 55 | |||
48 | .if ${OPSYS} != "Linux" | 56 | .if ${OPSYS} != "Linux" | |
49 | CONFIGURE_ARGS.disable+=\ | 57 | CONFIGURE_ARGS.disable+=\ | |
50 | ${CONFIGURE_ARGS.Linux} | 58 | ${CONFIGURE_ARGS.Linux} | |
51 | .endif | 59 | .endif | |
52 | 60 | |||
53 | CONFIGURE_ARGS+=\ | 61 | CONFIGURE_ARGS+=\ |
@@ -1,10 +1,13 @@ | @@ -1,10 +1,13 @@ | |||
1 | $NetBSD: distinfo,v 1.22 2008/06/14 10:24:52 tnn Exp $ | 1 | $NetBSD: distinfo,v 1.23 2008/06/19 01:56:44 bjs Exp $ | |
2 | 2 | |||
3 | SHA1 (dbus-1.2.1.tar.gz) = 2c5b38d51b486e0143faf7749d298e07a8c71223 | 3 | SHA1 (dbus-1.2.1.tar.gz) = 2c5b38d51b486e0143faf7749d298e07a8c71223 | |
4 | RMD160 (dbus-1.2.1.tar.gz) = 88b20e16251e10e205fece57e6b434a7aa43b615 | 4 | RMD160 (dbus-1.2.1.tar.gz) = 88b20e16251e10e205fece57e6b434a7aa43b615 | |
5 | Size (dbus-1.2.1.tar.gz) = 1406833 bytes | 5 | Size (dbus-1.2.1.tar.gz) = 1406833 bytes | |
6 | SHA1 (patch-aa) = e527a1a1f937781ce4204a325e3ff7f31fd6afa8 | 6 | SHA1 (patch-aa) = e527a1a1f937781ce4204a325e3ff7f31fd6afa8 | |
7 | SHA1 (patch-ab) = 586c1c459fd194ba5e26bd74caac1c26f890ec42 | 7 | SHA1 (patch-ab) = a6204676083ab962df12c7860b1facc8ccbd3d96 | |
8 | SHA1 (patch-ac) = afec419973f339e846dc109866148529f80998b3 | 8 | SHA1 (patch-ac) = afec419973f339e846dc109866148529f80998b3 | |
9 | SHA1 (patch-ag) = 9539b91fb496681b03854ebdc698b53ae43e6ba6 | 9 | SHA1 (patch-ad) = 8f5c8a8a21cf16c8951764f3b5aafc229a5abbc0 | |
10 | SHA1 (patch-ai) = 046f3a78c465b28595abf278aac942f7f0d0a297 | 10 | SHA1 (patch-ag) = a96fa42f2635675a7522a2782e949622288dca92 | |
11 | SHA1 (patch-ah) = 2663883ca34c6d52f520e67b93840661aa9b6537 | |||
12 | SHA1 (patch-ai) = a45bd8d29955e9c14a4d8b3f44b42242d70c1cd8 | |||
13 | SHA1 (patch-aj) = a354b0fe5fda70114ff1c0bd717c127663c49085 |
@@ -1,29 +1,31 @@ | @@ -1,29 +1,31 @@ | |||
1 | # $NetBSD: options.mk,v 1.1 2008/06/13 11:28:35 drochner Exp $ | 1 | # $NetBSD: options.mk,v 1.2 2008/06/19 01:56:44 bjs Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.dbus | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.dbus | |
4 | PKG_SUPPORTED_OPTIONS+= debug kqueue nox11 | 4 | PKG_SUPPORTED_OPTIONS+= debug kqueue nox11 | |
5 | PKG_SUGGESTED_OPTIONS= # empty | 5 | PKG_SUGGESTED_OPTIONS= # empty | |
6 | 6 | |||
7 | .if (${OPSYS} == "NetBSD" || \ | 7 | .if (${OPSYS} == "NetBSD" || \ | |
8 | ${OPSYS} == "FreeBSD" || \ | 8 | ${OPSYS} == "FreeBSD" || \ | |
9 | ${OPSYS} == "OpenBSD") | 9 | ${OPSYS} == "OpenBSD") | |
10 | PKG_SUGGESTED_OPTIONS+= kqueue | 10 | PKG_SUGGESTED_OPTIONS+= kqueue | |
11 | .endif | 11 | .endif | |
12 | 12 | |||
13 | .include "../../mk/bsd.options.mk" | 13 | .include "../../mk/bsd.options.mk" | |
14 | 14 | |||
15 | .if !empty(PKG_OPTIONS:Mdebug) | 15 | .if !empty(PKG_OPTIONS:Mdebug) | |
16 | CONFIGURE_ARGS.enable+= asserts tests verbose-mode | 16 | CONFIGURE_ARGS.enable+= asserts tests verbose-mode | |
17 | .else | |||
18 | CONFIGURE_ARGS.disable+= asserts tests verbose-mode | |||
17 | .endif | 19 | .endif | |
18 | 20 | |||
19 | .if !empty(PKG_OPTIONS:Mkqueue) | 21 | .if !empty(PKG_OPTIONS:Mkqueue) | |
20 | CONFIGURE_ARGS.enable+= kqueue | 22 | CONFIGURE_ARGS.enable+= kqueue | |
21 | .else | 23 | .else | |
22 | CONFIGURE_ARGS.disable+= kqueue | 24 | CONFIGURE_ARGS.disable+= kqueue | |
23 | .endif | 25 | .endif | |
24 | 26 | |||
25 | .if !empty(PKG_OPTIONS:Mnox11) | 27 | .if !empty(PKG_OPTIONS:Mnox11) | |
26 | CONFIGURE_ARGS.without= x | 28 | CONFIGURE_ARGS.without= x | |
27 | .else | 29 | .else | |
28 | CONFIGURE_ARGS.with+= x | 30 | CONFIGURE_ARGS.with+= x | |
29 | . include "../../x11/libX11/buildlink3.mk" | 31 | . include "../../x11/libX11/buildlink3.mk" |
@@ -1,22 +1,22 @@ | @@ -1,22 +1,22 @@ | |||
1 | $NetBSD: patch-ab,v 1.11 2008/06/14 10:24:52 tnn Exp $ | 1 | $NetBSD: patch-ab,v 1.12 2008/06/19 01:56:44 bjs Exp $ | |
2 | 2 | |||
3 | --- dbus/dbus-sysdeps-unix.c.orig 2008-04-04 17:24:08.000000000 +0200 | 3 | --- dbus/dbus-sysdeps-unix.c.orig 2008-04-04 11:24:08.000000000 -0400 | |
4 | +++ dbus/dbus-sysdeps-unix.c | 4 | +++ dbus/dbus-sysdeps-unix.c | |
5 | @@ -35,6 +35,9 @@ | 5 | @@ -35,6 +35,9 @@ | |
6 | #include "dbus-list.h" | 6 | #include "dbus-list.h" | |
7 | #include "dbus-credentials.h" | 7 | #include "dbus-credentials.h" | |
8 | 8 | |||
9 | +#ifdef DBUS_USE_NETBSD_ATOMIC_OPS | 9 | +#ifdef HAVE_NETBSD_ATOMIC_OPS | |
10 | +#include <sys/atomic.h> | 10 | +#include <sys/atomic.h> | |
11 | +#endif | 11 | +#endif | |
12 | #include <sys/types.h> | 12 | #include <sys/types.h> | |
13 | #include <stdlib.h> | 13 | #include <stdlib.h> | |
14 | #include <string.h> | 14 | #include <string.h> | |
15 | @@ -786,7 +789,9 @@ _dbus_connect_tcp_socket (const char | 15 | @@ -786,7 +789,9 @@ _dbus_connect_tcp_socket (const char | |
16 | fprintf(stderr, "Family %s\n", family ? family : "none"); | 16 | fprintf(stderr, "Family %s\n", family ? family : "none"); | |
17 | hints.ai_protocol = IPPROTO_TCP; | 17 | hints.ai_protocol = IPPROTO_TCP; | |
18 | hints.ai_socktype = SOCK_STREAM; | 18 | hints.ai_socktype = SOCK_STREAM; | |
19 | +#ifdef AI_ADDRCONFIG | 19 | +#ifdef AI_ADDRCONFIG | |
20 | hints.ai_flags = AI_ADDRCONFIG; | 20 | hints.ai_flags = AI_ADDRCONFIG; | |
21 | +#endif | 21 | +#endif | |
22 | 22 | |||
@@ -24,55 +24,62 @@ $NetBSD: patch-ab,v 1.11 2008/06/14 10:2 | @@ -24,55 +24,62 @@ $NetBSD: patch-ab,v 1.11 2008/06/14 10:2 | |||
24 | { | 24 | { | |
25 | @@ -889,7 +894,11 @@ _dbus_listen_tcp_socket (const char | 25 | @@ -889,7 +894,11 @@ _dbus_listen_tcp_socket (const char | |
26 | 26 | |||
27 | hints.ai_protocol = IPPROTO_TCP; | 27 | hints.ai_protocol = IPPROTO_TCP; | |
28 | hints.ai_socktype = SOCK_STREAM; | 28 | hints.ai_socktype = SOCK_STREAM; | |
29 | +#ifdef AI_ADDRCONFIG | 29 | +#ifdef AI_ADDRCONFIG | |
30 | hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE; | 30 | hints.ai_flags = AI_ADDRCONFIG | AI_PASSIVE; | |
31 | +#else | 31 | +#else | |
32 | + hints.ai_flags = AI_PASSIVE; | 32 | + hints.ai_flags = AI_PASSIVE; | |
33 | +#endif | 33 | +#endif | |
34 | 34 | |||
35 | redo_lookup_with_port: | 35 | redo_lookup_with_port: | |
36 | if ((res = getaddrinfo(host, port, &hints, &ai)) != 0 || !ai) | 36 | if ((res = getaddrinfo(host, port, &hints, &ai)) != 0 || !ai) | |
37 | @@ -1753,7 +1762,19 @@ _dbus_parse_uid (const DBusString * | 37 | @@ -1753,7 +1762,26 @@ _dbus_parse_uid (const DBusString * | |
38 | return TRUE; | 38 | return TRUE; | |
39 | } | 39 | } | |
40 | 40 | |||
41 | +#ifdef DBUS_USE_NETBSD_ATOMIC_OPS | 41 | +#ifdef HAVE_NETBSD_ATOMIC_OPS | |
42 | +dbus_int32_t | 42 | +dbus_int32_t | |
43 | +_dbus_atomic_inc (DBusAtomic *atomic) | 43 | +_dbus_atomic_inc (DBusAtomic *atomic) | |
44 | +{ | 44 | +{ | |
45 | + return (atomic_inc_32_nv(DBusAtomic)); | 45 | + register dbus_int32_t old = atomic->value; | |
46 | + | |||
47 | + atomic_inc_uint((unsigned *)&atomic->value); | |||
48 | + return old; | |||
46 | +} | 49 | +} | |
47 | 50 | |||
48 | +dbus_int32_t | 51 | +dbus_int32_t | |
49 | +_dbus_atomic_dec (DBusAtomic *atomic) | 52 | +_dbus_atomic_dec (DBusAtomic *atomic) | |
50 | +{ | 53 | +{ | |
51 | + return (atomic_dec_32_nv(DBusAtomic)); | 54 | + register dbus_int32_t old = atomic->value; | |
55 | + | |||
56 | + atomic_dec_uint((unsigned *)&atomic->value); | |||
57 | + return old; | |||
52 | +} | 58 | +} | |
59 | +_DBUS_DEFINE_GLOBAL_LOCK (atomic); | |||
53 | +#else | 60 | +#else | |
54 | _DBUS_DEFINE_GLOBAL_LOCK (atomic); | 61 | _DBUS_DEFINE_GLOBAL_LOCK (atomic); | |
55 | 62 | |||
56 | #if DBUS_USE_ATOMIC_INT_486_COND | 63 | #if DBUS_USE_ATOMIC_INT_486_COND | |
57 | @@ -1818,6 +1839,7 @@ _dbus_atomic_dec (DBusAtomic *atomic) | 64 | @@ -1818,6 +1846,7 @@ _dbus_atomic_dec (DBusAtomic *atomic) | |
58 | return res; | 65 | return res; | |
59 | #endif | 66 | #endif | |
60 | } | 67 | } | |
61 | +#endif /* DBUS_USE_NETBSD_ATOMIC_OPS */ | 68 | +#endif /* HAVE_NETBSD_ATOMIC_OPS */ | |
62 | 69 | |||
63 | #ifdef DBUS_BUILD_TESTS | 70 | #ifdef DBUS_BUILD_TESTS | |
64 | /** Gets our GID | 71 | /** Gets our GID | |
65 | @@ -2711,8 +2733,18 @@ int | 72 | @@ -2711,8 +2740,18 @@ int | |
66 | _dbus_printf_string_upper_bound (const char *format, | 73 | _dbus_printf_string_upper_bound (const char *format, | |
67 | va_list args) | 74 | va_list args) | |
68 | { | 75 | { | |
69 | +#if defined(__hpux) || defined(__sgi) | 76 | +#if defined(__hpux) || defined(__sgi) | |
70 | +/* this code from libnbcompat's vsnprintf */ | 77 | +/* this code from libnbcompat's vsnprintf */ | |
71 | + static FILE *devnull = 0; | 78 | + static FILE *devnull = 0; | |
72 | + if (!devnull) { | 79 | + if (!devnull) { | |
73 | + devnull = fopen("/dev/null", "w"); | 80 | + devnull = fopen("/dev/null", "w"); | |
74 | + if (!devnull) return -1; | 81 | + if (!devnull) return -1; | |
75 | + } | 82 | + } | |
76 | + return vfprintf(devnull, format, args); | 83 | + return vfprintf(devnull, format, args); | |
77 | +#else | 84 | +#else | |
78 | char c; | 85 | char c; |
$NetBSD: patch-ad,v 1.3 2008/06/19 01:56:44 bjs Exp $
git ref: cdca6dbce88fd1e1195e2a81eb6619c782df2fac
Prevent a crash in some applications due to timers
leaking after the DVusPendingCall object was freed.
git ref: d7bb3cf8dfc162007caf5e28d9c304381de7b8c3
Fix inverted return value from dbus_connection_read_write()
also: fix f.d.o. bug 15635
--- dbus/dbus-connection.c.orig 2008-04-04 11:24:08.000000000 -0400
+++ dbus/dbus-connection.c
@@ -965,6 +965,13 @@ _dbus_connection_detach_pending_call_and
_dbus_pending_call_ref_unlocked (pending);
_dbus_hash_table_remove_int (connection->pending_replies,
_dbus_pending_call_get_reply_serial_unlocked (pending));
+
+ if (_dbus_pending_call_is_timeout_added_unlocked (pending))
+ _dbus_connection_remove_timeout_unlocked (connection,
+ _dbus_pending_call_get_timeout_unlocked (pending));
+
+ _dbus_pending_call_set_timeout_added_unlocked (pending, FALSE);
+
_dbus_pending_call_unref_and_unlock (pending);
}
@@ -1671,21 +1678,26 @@ connection_forget_shared_unlocked (DBusC
if (!connection->shareable)
return;
+ _DBUS_LOCK (shared_connections);
+
if (connection->server_guid != NULL)
{
_dbus_verbose ("dropping connection to %s out of the shared table\n",
connection->server_guid);
- _DBUS_LOCK (shared_connections);
-
if (!_dbus_hash_table_remove_string (shared_connections,
connection->server_guid))
_dbus_assert_not_reached ("connection was not in the shared table");
dbus_free (connection->server_guid);
connection->server_guid = NULL;
- _DBUS_UNLOCK (shared_connections);
}
+ else
+ {
+ _dbus_list_remove (&shared_connections_no_guid, connection);
+ }
+
+ _DBUS_UNLOCK (shared_connections);
/* remove our reference held on all shareable connections */
_dbus_connection_unref_unlocked (connection);
@@ -3405,6 +3417,12 @@ _dbus_connection_read_write_dispatch (DB
{
DBusDispatchStatus dstatus;
dbus_bool_t no_progress_possible;
+
+ /* Need to grab a ref here in case we're a private connection and
+ * the user drops the last ref in a handler we call; see bug
+ * https://bugs.freedesktop.org/show_bug.cgi?id=15635
+ */
+ dbus_connection_ref (connection);
dstatus = dbus_connection_get_dispatch_status (connection);
@@ -3444,7 +3462,11 @@ _dbus_connection_read_write_dispatch (DB
connection->disconnect_message_link == NULL;
else
no_progress_possible = _dbus_connection_get_is_connected_unlocked (connection);
+
CONNECTION_UNLOCK (connection);
+
+ dbus_connection_unref (connection);
+
return !no_progress_possible; /* TRUE if we can make more progress */
}
$NetBSD: patch-ah,v 1.3 2008/06/19 01:56:44 bjs Exp $
Fix to match config.h.in.
--- dbus/dbus-userdb-util.c.orig 2008-04-04 11:24:08.000000000 -0400
+++ dbus/dbus-userdb-util.c
@@ -223,7 +223,7 @@ _dbus_user_database_lookup_group (DBusUs
gid = n;
}
-#ifdef DBUS_ENABLE_USER_CACHE
+#ifdef DBUS_ENABLE_USERDB_CACHE
if (gid != DBUS_GID_UNSET)
info = _dbus_hash_table_lookup_ulong (db->groups, gid);
else
@@ -1,15 +1,24 @@ | @@ -1,15 +1,24 @@ | |||
1 | $NetBSD: patch-ag,v 1.2 2008/06/13 11:28:35 drochner Exp $ | 1 | $NetBSD: patch-ag,v 1.3 2008/06/19 01:56:44 bjs Exp $ | |
2 | 2 | |||
3 | --- tools/dbus-monitor.c.orig 2008-02-26 11:02:28.000000000 -0500 | 3 | --- tools/dbus-monitor.c.orig 2008-04-04 11:24:08.000000000 -0400 | |
4 | +++ tools/dbus-monitor.c | 4 | +++ tools/dbus-monitor.c | |
5 | @@ -91,7 +91,7 @@ typedef enum | |||
6 | PROFILE_ATTRIBUTE_FLAG_PATH = 16, | |||
7 | PROFILE_ATTRIBUTE_FLAG_INTERFACE = 32, | |||
8 | PROFILE_ATTRIBUTE_FLAG_MEMBER = 64, | |||
9 | - PROFILE_ATTRIBUTE_FLAG_ERROR_NAME = 128, | |||
10 | + PROFILE_ATTRIBUTE_FLAG_ERROR_NAME = 128 | |||
11 | } ProfileAttributeFlags; | |||
12 | ||||
13 | static void | |||
5 | @@ -295,8 +295,10 @@ main (int argc, char *argv[]) | 14 | @@ -295,8 +295,10 @@ main (int argc, char *argv[]) | |
6 | exit (1); | 15 | exit (1); | |
7 | } | 16 | } | |
8 | 17 | |||
9 | +#if 0 /* XXX this doesn't work because the loop around poll() is not left */ | 18 | +#if 0 /* XXX this doesn't work because the loop around poll() is not left */ | |
10 | /* we handle SIGINT so exit() is reached and flushes stdout */ | 19 | /* we handle SIGINT so exit() is reached and flushes stdout */ | |
11 | signal (SIGINT, sigint_handler); | 20 | signal (SIGINT, sigint_handler); | |
12 | +#endif | 21 | +#endif | |
13 | while (dbus_connection_read_write_dispatch(connection, -1) | 22 | while (dbus_connection_read_write_dispatch(connection, -1) | |
14 | && !sigint_received) | 23 | && !sigint_received) | |
15 | ; | 24 | ; |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | $NetBSD: patch-ai,v 1.1 2008/06/13 11:28:35 drochner Exp $ | 1 | $NetBSD: patch-ai,v 1.2 2008/06/19 01:56:44 bjs Exp $ | |
2 | 2 | |||
3 | --- config.h.in.orig 2008-04-04 14:24:08.000000000 -0400 | 3 | --- config.h.in.orig 2008-04-04 14:24:08.000000000 -0400 | |
4 | +++ config.h.in | 4 | +++ config.h.in | |
5 | @@ -86,6 +86,8 @@ | 5 | @@ -86,6 +86,8 @@ | |
6 | for 486, else 0 */ | 6 | for 486, else 0 */ | |
7 | #undef DBUS_USE_ATOMIC_INT_486_COND | 7 | #undef DBUS_USE_ATOMIC_INT_486_COND | |
8 | 8 | |||
9 | +#undef DBUS_USE_NETBSD_ATOMIC_OPS | 9 | +#undef HAVE_NETBSD_ATOMIC_OPS | |
10 | + | 10 | + | |
11 | /* A 'va_copy' style function */ | 11 | /* A 'va_copy' style function */ | |
12 | #undef DBUS_VA_COPY | 12 | #undef DBUS_VA_COPY | |
13 | 13 |
$NetBSD: patch-aj,v 1.1 2008/06/19 01:56:44 bjs Exp $
Fix to match what's in config.h.in.
--- dbus/dbus-userdb.c.orig 2008-04-04 11:24:08.000000000 -0400
+++ dbus/dbus-userdb.c
@@ -143,7 +143,7 @@ _dbus_user_database_lookup (DBusUserData
uid = n;
}
-#ifdef DBUS_ENABLE_USER_CACHE
+#ifdef DBUS_ENABLE_USERDB_CACHE
if (uid != DBUS_UID_UNSET)
info = _dbus_hash_table_lookup_ulong (db->users, uid);
else