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]= https://dbus.freedesktop.org/releases/dbus/
13 DISTFILE[1]= dbus-1.14.10.tar.xz:main
15 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
23 BUILD_DEPENDS= minixmlto:single:standard
24 RUN_DEPENDS= xmlcatmgr:single:standard
28 USERGROUP_SPKG= primary
30 USES= cpe gmake libtool expat python:build shebangfix
31 XORG_COMPONENTS= ice sm x11
33 LICENSE= CUSTOM1:primary GPLv2+:primary
34 LICENSE_TERMS= primary:{{WRKDIR}}/TERMS
35 LICENSE_NAME= CUSTOM1:"Academic Free License version 2.1"
36 LICENSE_FILE= GPLv2+:stock
37 CUSTOM1:{{WRKDIR}}/LICENSE_AFL
38 LICENSE_AWK= TERMS:"^The Academic"
39 LICENSE_SOURCE= TERMS:{{WRKSRC}}/COPYING
42 CPE_VENDOR= freedesktop
43 FPC_EQUIVALENT= devel/dbus
44 SHEBANG_FILES= tools/GetAllMatchRules.py
47 CONFIGURE_ARGS= --with-x
48 --with-test-socket-dir={{WRKDIR}}
49 --disable-doxygen-docs
53 CONFIGURE_ENV= XMLTO={{LOCALBASE}}/bin/minixmlto
55 INSTALL_TARGET= install-strip
57 PLIST_SUB= VERSION="1.0"
59 DTDDIR=share/xml/dbus-1
63 SUB_LIST= DTDDIR={{PREFIX}}/share/xml/dbus-1
66 ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
67 ${WRKSRC}/dbus/dbus-sysdeps-unix.c
68 ${REINPLACE_CMD} '/^SUBDIRS =/s|test||' ${WRKSRC}/Makefile.in
72 ${RM} -r ${STAGEDIR}${STD_DOCDIR}
73 # install xmlcat catalogs
74 (cd ${WRKDIR} && ${INSTALL_DATA} catalog* \
75 ${STAGEDIR}${PREFIX}/share/xml/dbus-1/)
76 # Workaround for software looking for machine-id in wrong place (lumina)
77 ${MKDIR} ${STAGEDIR}${PREFIX}/var/lib
78 ${MKDIR} ${STAGEDIR}${PREFIX}/var/run
79 ${LN} -s /var/lib/dbus ${STAGEDIR}${PREFIX}/var/lib/dbus
80 ${LN} -s /var/run/dbus ${STAGEDIR}${PREFIX}/var/run/dbus
83 ${AWK} '/^The Academic Free License/,/^but the BSD, MIT/' \
84 ${WRKSRC}/COPYING > ${WRKDIR}/LICENSE_AFL
86 [FILE:392:descriptions/desc.primary]
87 D-BUS supplies both a system daemon (for events such as "new hardware device
88 added" or "printer queue changed") and a per-user-login-session daemon (for
89 general IPC needs among user applications). Also, the message bus is built on
90 top of a general one-to-one message passing framework, which can be used by
91 any two apps to communicate directly (without going through the message bus
96 ba1f21d2bd9d339da2d4aa8780c09df32fea87998b73da24f49ab9df1e36a50f 1372328 dbus-1.14.10.tar.xz
99 [FILE:648:manifests/plist.primary]
108 dbus-update-activation-environment
114 libdbus-1.so.%%SOMAJOR%%
115 libdbus-1.so.%%SOVERSION%%
116 @(,%%GROUPS%%,4750) libexec/dbus-daemon-launch-helper
127 @dir share/dbus-1/services
128 @dir share/dbus-1/session.d
129 @dir share/dbus-1/system-services
130 @dir share/dbus-1/system.d
131 @xmlcatmgr %%DTDDIR%%/catalog
132 @xmlcatmgr %%DTDDIR%%/catalog.xml
135 [FILE:460:manifests/plist.dev]
136 include/dbus-%%VERSION%%/dbus/
159 DBus1ConfigVersion.cmake
160 lib/dbus-%%VERSION%%/include/dbus/dbus-arch-deps.h
161 lib/pkgconfig/dbus-1.pc
164 [FILE:218:manifests/plist.man]
166 dbus-cleanup-sockets.1.gz
170 dbus-run-session.1.gz
173 dbus-update-activation-environment.1.gz
177 [FILE:1126:patches/patch-configure]
178 --- configure.orig 2023-09-01 14:31:27 UTC
180 @@ -25462,7 +25462,7 @@ fi
184 - if test "$ax_enable_compile_warnings" != "no"
185 + if test "$ax_enable_compile_warnings" == "skipme"
188 if test "$ax_compiler_cxx" = "no" ; then
189 @@ -26054,7 +26054,7 @@ fi
193 - if test "$ax_enable_compile_warnings" != "no"
194 + if test "$ax_enable_compile_warnings" != "yes"
198 @@ -27133,7 +27133,7 @@ then :
204 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
206 printf %s "checking whether the linker accepts $flag... " >&6; }
207 @@ -27318,8 +27318,6 @@ case $host_os in
208 CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
209 # ... this opt-in to get sockaddr_in6 and sockaddr_storage...
210 CFLAGS="$CFLAGS -D__EXTENSIONS__"
211 - # ... and this opt-in to get file descriptor passing support
212 - CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
218 [FILE:3151:patches/patch-dbus_dbus-connection.c]
219 --- dbus/dbus-connection.c.orig 2023-06-06 13:00:36 UTC
220 +++ dbus/dbus-connection.c
221 @@ -2397,7 +2397,7 @@ _dbus_connection_block_pending_call (DBu
222 DBusConnection *connection;
223 dbus_uint32_t client_serial;
224 DBusTimeout *timeout;
225 - int timeout_milliseconds, elapsed_milliseconds;
226 + int timeout_milliseconds, elapsed_milliseconds, remain_milliseconds;
228 _dbus_assert (pending != NULL);
230 @@ -2478,7 +2478,11 @@ _dbus_connection_block_pending_call (DBu
231 _dbus_get_monotonic_time (&tv_sec, &tv_usec);
232 elapsed_milliseconds = (tv_sec - start_tv_sec) * 1000 +
233 (tv_usec - start_tv_usec) / 1000;
235 + if (timeout_milliseconds != -1)
236 + remain_milliseconds = timeout_milliseconds - elapsed_milliseconds;
238 + remain_milliseconds = -1;
240 if (!_dbus_connection_get_is_connected_unlocked (connection))
242 DBusMessage *error_msg;
243 @@ -2506,7 +2510,7 @@ _dbus_connection_block_pending_call (DBu
245 _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
247 - _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
248 + _dbus_memory_pause_based_on_timeout (remain_milliseconds);
252 @@ -2515,7 +2519,7 @@ _dbus_connection_block_pending_call (DBu
254 DBUS_ITERATION_DO_READING |
255 DBUS_ITERATION_BLOCK,
256 - timeout_milliseconds - elapsed_milliseconds);
257 + remain_milliseconds);
261 @@ -2524,7 +2528,7 @@ _dbus_connection_block_pending_call (DBu
262 _dbus_verbose ("dbus_connection_send_with_reply_and_block(): clock set backward\n");
263 else if (elapsed_milliseconds < timeout_milliseconds)
265 - _dbus_verbose ("dbus_connection_send_with_reply_and_block(): %d milliseconds remain\n", timeout_milliseconds - elapsed_milliseconds);
266 + _dbus_verbose ("dbus_connection_send_with_reply_and_block(): %d milliseconds remain\n", remain_milliseconds);
268 if (status == DBUS_DISPATCH_NEED_MEMORY)
270 @@ -2534,7 +2538,7 @@ _dbus_connection_block_pending_call (DBu
272 _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
274 - _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
275 + _dbus_memory_pause_based_on_timeout (remain_milliseconds);
279 @@ -2543,7 +2547,7 @@ _dbus_connection_block_pending_call (DBu
281 DBUS_ITERATION_DO_READING |
282 DBUS_ITERATION_BLOCK,
283 - timeout_milliseconds - elapsed_milliseconds);
284 + remain_milliseconds);
290 [FILE:354:patches/patch-dbus_dbus-sysdeps-unix.c]
291 --- dbus/dbus-sysdeps-unix.c.orig 2023-08-16 10:29:50 UTC
292 +++ dbus/dbus-sysdeps-unix.c
298 +# if __STDC_VERSION__ - 0 < 199901L
299 +#define _XOPEN_SOURCE 500
301 +#define _XOPEN_SOURCE 600
305 #include "dbus-internals.h"
306 #include "dbus-sysdeps.h"
307 #include "dbus-sysdeps-unix.h"
310 [FILE:1374:patches/patch-dbus_dbus-sysdeps-util-unix.c]
311 --- dbus/dbus-sysdeps-util-unix.c.orig 2023-09-01 14:23:58 UTC
312 +++ dbus/dbus-sysdeps-util-unix.c
319 #include <sys/stat.h>
320 #ifdef HAVE_SYS_RESOURCE_H
325 +#if defined(__sun) && defined(__SVR4)
329 #ifdef HAVE_SYS_PRCTL_H
330 #include <sys/prctl.h>
332 @@ -578,8 +583,31 @@ _dbus_user_at_console (const char *usern
333 #ifdef DBUS_CONSOLE_AUTH_DIR
336 +#if defined(__sun) && defined(__SVR4)
337 + struct passwd *passwd_entry;
342 +#if defined(__sun) && defined(__SVR4)
343 + passwd_entry = getpwnam (username);
344 + if (passwd_entry != NULL)
349 + uid = passwd_entry->pw_uid;
351 + if (stat ("/dev/vt/console_user", &st) == 0 && st.st_uid == uid)
354 + * Owner is allowed to take over. Before we have real
355 + * ownership in HAL, assume it's the console owner.
361 if (!_dbus_string_init (&f))
363 _DBUS_SET_OOM (error);
364 @@ -604,6 +632,7 @@ _dbus_user_at_console (const char *usern
367 _dbus_string_free (&f);
374 [FILE:450:patches/patch-doc_Makefile.in]
375 --- doc/Makefile.in.orig 2023-09-01 14:31:28 UTC
377 @@ -906,7 +906,7 @@ catalog.xml: catalog.xml.in
378 $(SED) "s|@DBUS_DTD_DIR@|$(dtddir)|" $< >$@
380 @DBUS_XML_DOCS_ENABLED_TRUE@%.html: %.xml
381 -@DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) --stringparam generate.consistent.ids=1 html-nochunks $<
382 +@DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) html-nochunks $<
384 @DBUS_XML_DOCS_ENABLED_TRUE@%.1: %.1.xml
385 @DBUS_XML_DOCS_ENABLED_TRUE@ $(XMLTO) man $<
388 [FILE:542:patches/patch-tools_dbus-launch.c]
389 --- tools/dbus-launch.c.orig 2022-10-02 14:06:53 UTC
390 +++ tools/dbus-launch.c
391 @@ -851,6 +851,12 @@ main (int argc, char **argv)
392 exit_with_session = FALSE;
395 + if (getenv("RAVENADM") != NULL)
397 + fprintf (stderr, "Package building detected, launch not executed.\n");
401 /* Ensure that the first three fds are open, to ensure that when we
402 * create other file descriptors (for example for epoll, inotify or
403 * a socket), they never get assigned as fd 0, 1 or 2. If they were,
406 [FILE:171:files/catalog.in]
408 PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "introspect.dtd"
409 PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" "busconfig.dtd"
412 [FILE:479:files/catalog.xml.in]
413 <?xml version="1.0"?>
414 <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
415 "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
416 <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
417 <public publicId="-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" uri="file://%%DTDDIR%%/introspect.dtd" />
418 <public publicId="-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" uri="file://%%DTDDIR%%/busconfig.dtd" />
422 [FILE:645:files/dbus.in]
425 # $FreeBSD: head/devel/dbus/files/dbus.in 431498 2017-01-14 22:48:49Z tijl $
428 # REQUIRE: DAEMON ldconfig
430 # Add the following lines to /etc/rc.conf to enable the D-BUS messaging system:
437 : ${dbus_enable=${gnome_enable-NO}} ${dbus_flags="--system"}
442 command="%%PREFIX%%/bin/dbus-daemon"
443 pidfile="/var/run/dbus/pid"
445 start_precmd="dbus_prestart"
446 stop_postcmd="dbus_poststop"
450 %%PREFIX%%/bin/dbus-uuidgen --ensure
451 mkdir -p /var/run/dbus
459 load_rc_config ${name}