1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Message bus system for IPC communication
8 HOMEPAGE= http://www.freedesktop.org/Software/dbus
12 SITES[main]= http://dbus.freedesktop.org/releases/dbus/
13 DISTFILE[1]= dbus-1.12.20.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILD_DEPENDS= minixmlto:single:standard
21 RUN_DEPENDS= xmlcatmgr:single:standard
25 USERGROUP_SPKG= single
27 USES= cpe gmake libtool expat python:build shebangfix
28 XORG_COMPONENTS= ice sm x11
30 LICENSE= CUSTOM1:single GPLv2+:single
31 LICENSE_TERMS= single:{{WRKDIR}}/TERMS
32 LICENSE_NAME= CUSTOM1:"Academic Free License version 2.1"
33 LICENSE_FILE= GPLv2+:stock
34 CUSTOM1:{{WRKDIR}}/LICENSE_AFL
35 LICENSE_AWK= TERMS:"^The Academic"
36 LICENSE_SOURCE= TERMS:{{WRKSRC}}/COPYING
39 CPE_VENDOR= freedesktop
40 FPC_EQUIVALENT= devel/dbus
41 SHEBANG_FILES= tools/GetAllMatchRules.py
44 CONFIGURE_ARGS= --with-x
45 --with-test-socket-dir={{WRKDIR}}
46 --disable-doxygen-docs
50 CONFIGURE_ENV= XMLTO={{LOCALBASE}}/bin/minixmlto
52 INSTALL_TARGET= install-strip
54 PLIST_SUB= VERSION="1.0"
56 DTDDIR=share/xml/dbus-1
60 SUB_LIST= DTDDIR={{PREFIX}}/share/xml/dbus-1
63 ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
64 ${WRKSRC}/dbus/dbus-sysdeps-unix.c
65 ${REINPLACE_CMD} '/^SUBDIRS =/s|test||' ${WRKSRC}/Makefile.in
69 ${RM} -r ${STAGEDIR}${STD_DOCDIR}
70 # install xmlcat catalogs
71 (cd ${WRKDIR} && ${INSTALL_DATA} catalog* \
72 ${STAGEDIR}${PREFIX}/share/xml/dbus-1/)
75 ${AWK} '/^The Academic Free License/,/^but the BSD, MIT/' \
76 ${WRKSRC}/COPYING > ${WRKDIR}/LICENSE_AFL
78 [FILE:392:descriptions/desc.single]
79 D-BUS supplies both a system daemon (for events such as "new hardware device
80 added" or "printer queue changed") and a per-user-login-session daemon (for
81 general IPC needs among user applications). Also, the message bus is built on
82 top of a general one-to-one message passing framework, which can be used by
83 any two apps to communicate directly (without going through the message bus
88 f77620140ecb4cdc67f37fb444f8a6bea70b5b6461f12f1cbe2cec60fa7de5fe 2095511 dbus-1.12.20.tar.gz
91 [FILE:1295:manifests/plist.single]
100 dbus-update-activation-environment
105 include/dbus-%%VERSION%%/dbus/
126 libdbus-1.so.%%SOMAJOR%%
127 libdbus-1.so.%%SOVERSION%%
130 DBus1ConfigVersion.cmake
131 lib/dbus-%%VERSION%%/include/dbus/dbus-arch-deps.h
132 lib/pkgconfig/dbus-1.pc
133 @(,%%GROUPS%%,4750) libexec/dbus-daemon-launch-helper
138 dbus-cleanup-sockets.1.gz
142 dbus-run-session.1.gz
145 dbus-update-activation-environment.1.gz
152 @dir share/dbus-1/services
153 @dir share/dbus-1/session.d
154 @dir share/dbus-1/system-services
155 @dir share/dbus-1/system.d
156 @xmlcatmgr %%DTDDIR%%/catalog
157 @xmlcatmgr %%DTDDIR%%/catalog.xml
160 [FILE:1385:patches/patch-configure]
161 --- configure.orig 2020-07-02 10:10:41 UTC
163 @@ -24989,14 +24989,14 @@ fi
167 - if test "$ax_enable_compile_warnings" != "no"; then :
168 + if test "$ax_enable_compile_warnings" == "skipme"; then :
177 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
179 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
180 @@ -27058,14 +27058,14 @@ fi
184 - if test "$ax_enable_compile_warnings" != "no"; then :
185 + if test "$ax_enable_compile_warnings" != "yes"; then :
194 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
196 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
197 @@ -27239,8 +27239,6 @@ case $host_os in
198 CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
199 # ... this opt-in to get sockaddr_in6 and sockaddr_storage...
200 CFLAGS="$CFLAGS -D__EXTENSIONS__"
201 - # ... and this opt-in to get file descriptor passing support
202 - CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
208 [FILE:3151:patches/patch-dbus_dbus-connection.c]
209 --- dbus/dbus-connection.c.orig 2018-02-08 14:07:21 UTC
210 +++ dbus/dbus-connection.c
211 @@ -2385,7 +2385,7 @@ _dbus_connection_block_pending_call (DBu
212 DBusConnection *connection;
213 dbus_uint32_t client_serial;
214 DBusTimeout *timeout;
215 - int timeout_milliseconds, elapsed_milliseconds;
216 + int timeout_milliseconds, elapsed_milliseconds, remain_milliseconds;
218 _dbus_assert (pending != NULL);
220 @@ -2466,7 +2466,11 @@ _dbus_connection_block_pending_call (DBu
221 _dbus_get_monotonic_time (&tv_sec, &tv_usec);
222 elapsed_milliseconds = (tv_sec - start_tv_sec) * 1000 +
223 (tv_usec - start_tv_usec) / 1000;
225 + if (timeout_milliseconds != -1)
226 + remain_milliseconds = timeout_milliseconds - elapsed_milliseconds;
228 + remain_milliseconds = -1;
230 if (!_dbus_connection_get_is_connected_unlocked (connection))
232 DBusMessage *error_msg;
233 @@ -2494,7 +2498,7 @@ _dbus_connection_block_pending_call (DBu
235 _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
237 - _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
238 + _dbus_memory_pause_based_on_timeout (remain_milliseconds);
242 @@ -2503,7 +2507,7 @@ _dbus_connection_block_pending_call (DBu
244 DBUS_ITERATION_DO_READING |
245 DBUS_ITERATION_BLOCK,
246 - timeout_milliseconds - elapsed_milliseconds);
247 + remain_milliseconds);
251 @@ -2512,7 +2516,7 @@ _dbus_connection_block_pending_call (DBu
252 _dbus_verbose ("dbus_connection_send_with_reply_and_block(): clock set backward\n");
253 else if (elapsed_milliseconds < timeout_milliseconds)
255 - _dbus_verbose ("dbus_connection_send_with_reply_and_block(): %d milliseconds remain\n", timeout_milliseconds - elapsed_milliseconds);
256 + _dbus_verbose ("dbus_connection_send_with_reply_and_block(): %d milliseconds remain\n", remain_milliseconds);
258 if (status == DBUS_DISPATCH_NEED_MEMORY)
260 @@ -2522,7 +2526,7 @@ _dbus_connection_block_pending_call (DBu
262 _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
264 - _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
265 + _dbus_memory_pause_based_on_timeout (remain_milliseconds);
269 @@ -2531,7 +2535,7 @@ _dbus_connection_block_pending_call (DBu
271 DBUS_ITERATION_DO_READING |
272 DBUS_ITERATION_BLOCK,
273 - timeout_milliseconds - elapsed_milliseconds);
274 + remain_milliseconds);
280 [FILE:354:patches/patch-dbus_dbus-sysdeps-unix.c]
281 --- dbus/dbus-sysdeps-unix.c.orig 2020-07-02 09:08:39 UTC
282 +++ dbus/dbus-sysdeps-unix.c
288 +# if __STDC_VERSION__ - 0 < 199901L
289 +#define _XOPEN_SOURCE 500
291 +#define _XOPEN_SOURCE 600
295 #include "dbus-internals.h"
296 #include "dbus-sysdeps.h"
297 #include "dbus-sysdeps-unix.h"
300 [FILE:1388:patches/patch-dbus_dbus-sysdeps-util-unix.c]
301 --- dbus/dbus-sysdeps-util-unix.c.orig 2019-06-09 12:08:49 UTC
302 +++ dbus/dbus-sysdeps-util-unix.c
308 #include <sys/stat.h>
309 #ifdef HAVE_SYS_RESOURCE_H
310 #include <sys/resource.h>
315 +#if defined(__sun) && defined(__SVR4)
319 #ifdef HAVE_SYS_SYSLIMITS_H
320 #include <sys/syslimits.h>
322 @@ -563,8 +568,31 @@ _dbus_user_at_console (const char *usern
323 #ifdef DBUS_CONSOLE_AUTH_DIR
326 +#if defined(__sun) && defined(__SVR4)
327 + struct passwd *passwd_entry;
332 +#if defined(__sun) && defined(__SVR4)
333 + passwd_entry = getpwnam (username);
334 + if (passwd_entry != NULL)
339 + uid = passwd_entry->pw_uid;
341 + if (stat ("/dev/vt/console_user", &st) == 0 && st.st_uid == uid)
344 + * Owner is allowed to take over. Before we have real
345 + * ownership in HAL, assume it's the console owner.
351 if (!_dbus_string_init (&f))
353 _DBUS_SET_OOM (error);
354 @@ -589,6 +617,7 @@ _dbus_user_at_console (const char *usern
357 _dbus_string_free (&f);
364 [FILE:542:patches/patch-tools_dbus-launch.c]
365 --- tools/dbus-launch.c.orig 2017-10-30 12:26:18 UTC
366 +++ tools/dbus-launch.c
367 @@ -846,6 +846,12 @@ main (int argc, char **argv)
368 exit_with_session = FALSE;
371 + if (getenv("RAVENADM") != NULL)
373 + fprintf (stderr, "Package building detected, launch not executed.\n");
377 /* Ensure that the first three fds are open, to ensure that when we
378 * create other file descriptors (for example for epoll, inotify or
379 * a socket), they never get assigned as fd 0, 1 or 2. If they were,
382 [FILE:171:files/catalog.in]
384 PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "introspect.dtd"
385 PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" "busconfig.dtd"
388 [FILE:479:files/catalog.xml.in]
389 <?xml version="1.0"?>
390 <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
391 "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
392 <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
393 <public publicId="-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" uri="file://%%DTDDIR%%/introspect.dtd" />
394 <public publicId="-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" uri="file://%%DTDDIR%%/busconfig.dtd" />
398 [FILE:785:files/dbus.in]
401 # $FreeBSD: head/devel/dbus/files/dbus.in 431498 2017-01-14 22:48:49Z tijl $
404 # REQUIRE: DAEMON ldconfig
406 # Add the following lines to /etc/rc.conf to enable the D-BUS messaging system:
413 : ${dbus_enable=${gnome_enable-NO}} ${dbus_flags="--system"}
418 command="%%PREFIX%%/bin/dbus-daemon"
419 pidfile="/var/run/dbus/pid"
421 start_precmd="dbus_prestart"
422 stop_postcmd="dbus_poststop"
426 %%PREFIX%%/bin/dbus-uuidgen --ensure
427 mkdir -p /var/run/dbus
433 # The following two lines may be removed after 2018-01-01
434 rm -f /var/db/dbus/machine-id
435 [ ! -d /var/db/dbus ] || rmdir /var/db/dbus
438 load_rc_config ${name}