Ravenports generated: 12 May 2023 03:11
[ravenports.git] / bucket_57 / dbus
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               dbus
4 VERSION=                1.14.6
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Message bus system for IPC communication
8 HOMEPAGE=               http://www.freedesktop.org/Software/dbus
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://dbus.freedesktop.org/releases/dbus/
13 DISTFILE[1]=            dbus-1.14.6.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         dev
18                         man
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 BUILD_DEPENDS=          minixmlto:single:standard
24 RUN_DEPENDS=            xmlcatmgr:single:standard
25
26 USERS=                  messagebus
27 GROUPS=                 messagebus
28 USERGROUP_SPKG=         primary
29
30 USES=                   cpe gmake libtool expat python:build shebangfix
31 XORG_COMPONENTS=        ice sm x11
32
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
40 LICENSE_SCHEME=         dual
41
42 CPE_VENDOR=             freedesktop
43 FPC_EQUIVALENT=         devel/dbus
44 SHEBANG_FILES=          tools/GetAllMatchRules.py
45
46 MUST_CONFIGURE=         gnu
47 CONFIGURE_ARGS=         --with-x
48                         --with-test-socket-dir={{WRKDIR}}
49                         --disable-doxygen-docs
50                         --disable-selinux
51                         --disable-apparmor
52                         --disable-systemd
53 CONFIGURE_ENV=          XMLTO={{LOCALBASE}}/bin/minixmlto
54
55 INSTALL_TARGET=         install-strip
56 SOVERSION=              3.32.2
57 PLIST_SUB=              VERSION="1.0"
58                         GROUPS={{GROUPS}}
59                         DTDDIR=share/xml/dbus-1
60 RC_SUBR=                dbus:primary
61 SUB_FILES=              catalog
62                         catalog.xml
63 SUB_LIST=               DTDDIR={{PREFIX}}/share/xml/dbus-1
64
65 post-patch:
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
69
70 post-install:
71         # delete examples
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
81
82 post-extract:
83         ${AWK} '/^The Academic Free License/,/^but the BSD, MIT/' \
84                 ${WRKSRC}/COPYING > ${WRKDIR}/LICENSE_AFL
85
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
92 daemon).
93
94
95 [FILE:97:distinfo]
96 fd2bdf1bb89dc365a46531bff631536f22b0d1c6d5ce2c5c5e59b55265b3d66b      1370540 dbus-1.14.6.tar.xz
97
98
99 [FILE:648:manifests/plist.primary]
100 bin/
101  dbus-cleanup-sockets
102  dbus-daemon
103  dbus-launch
104  dbus-monitor
105  dbus-run-session
106  dbus-send
107  dbus-test-tool
108  dbus-update-activation-environment
109  dbus-uuidgen
110 etc/dbus-1/
111  session.conf
112  system.conf
113 lib/
114  libdbus-1.so.%%SOMAJOR%%
115  libdbus-1.so.%%SOVERSION%%
116 @(,%%GROUPS%%,4750) libexec/dbus-daemon-launch-helper
117 share/dbus-1/
118  session.conf
119  system.conf
120 share/xml/dbus-1/
121  busconfig.dtd
122  introspect.dtd
123 var/lib/dbus
124 var/run/dbus
125 @dir /var/lib/dbus
126 @dir /var/run/dbus
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
133
134
135 [FILE:460:manifests/plist.dev]
136 include/dbus-%%VERSION%%/dbus/
137  dbus-address.h
138  dbus-bus.h
139  dbus-connection.h
140  dbus-errors.h
141  dbus-macros.h
142  dbus-memory.h
143  dbus-message.h
144  dbus-misc.h
145  dbus-pending-call.h
146  dbus-protocol.h
147  dbus-server.h
148  dbus-shared.h
149  dbus-signature.h
150  dbus-syntax.h
151  dbus-threads.h
152  dbus-types.h
153  dbus.h
154 lib/
155  libdbus-1.a
156  libdbus-1.so
157 lib/cmake/DBus1/
158  DBus1Config.cmake
159  DBus1ConfigVersion.cmake
160 lib/dbus-%%VERSION%%/include/dbus/dbus-arch-deps.h
161 lib/pkgconfig/dbus-1.pc
162
163
164 [FILE:218:manifests/plist.man]
165 share/man/man1/
166  dbus-cleanup-sockets.1.gz
167  dbus-daemon.1.gz
168  dbus-launch.1.gz
169  dbus-monitor.1.gz
170  dbus-run-session.1.gz
171  dbus-send.1.gz
172  dbus-test-tool.1.gz
173  dbus-update-activation-environment.1.gz
174  dbus-uuidgen.1.gz
175
176
177 [FILE:1126:patches/patch-configure]
178 --- configure.orig      2023-02-08 12:04:21 UTC
179 +++ configure
180 @@ -25462,7 +25462,7 @@ fi
181  done
182  
183  
184 -    if test "$ax_enable_compile_warnings" != "no"
185 +    if test "$ax_enable_compile_warnings" == "skipme"
186  then :
187  
188          if test "$ax_compiler_cxx" = "no" ; then
189 @@ -26054,7 +26054,7 @@ fi
190  done
191  
192  
193 -    if test "$ax_enable_compile_warnings" != "no"
194 +    if test "$ax_enable_compile_warnings" != "yes"
195  then :
196  
197          # "yes" flags
198 @@ -27133,7 +27133,7 @@ then :
199  
200  
201  
202 -for flag in    ; do
203 +for flag in ""   ; do
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"
213          ;;
214  esac
215  
216
217
218 [FILE:3151:patches/patch-dbus_dbus-connection.c]
219 --- dbus/dbus-connection.c.orig 2023-01-30 09:57:39 UTC
220 +++ dbus/dbus-connection.c
221 @@ -2388,7 +2388,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;
227  
228    _dbus_assert (pending != NULL);
229  
230 @@ -2469,7 +2469,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;
234 -  
235 +  if (timeout_milliseconds != -1)
236 +    remain_milliseconds = timeout_milliseconds - elapsed_milliseconds;
237 +  else
238 +    remain_milliseconds = -1;
239 +
240    if (!_dbus_connection_get_is_connected_unlocked (connection))
241      {
242        DBusMessage *error_msg;
243 @@ -2497,7 +2501,7 @@ _dbus_connection_block_pending_call (DBu
244             */
245            _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
246  
247 -          _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
248 +          _dbus_memory_pause_based_on_timeout (remain_milliseconds);
249          }
250        else
251          {          
252 @@ -2506,7 +2510,7 @@ _dbus_connection_block_pending_call (DBu
253                                                    pending,
254                                                    DBUS_ITERATION_DO_READING |
255                                                    DBUS_ITERATION_BLOCK,
256 -                                                  timeout_milliseconds - elapsed_milliseconds);
257 +                                                  remain_milliseconds);
258          }
259  
260        goto recheck_status;
261 @@ -2515,7 +2519,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)
264      {
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);
267        
268        if (status == DBUS_DISPATCH_NEED_MEMORY)
269          {
270 @@ -2525,7 +2529,7 @@ _dbus_connection_block_pending_call (DBu
271             */
272            _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
273  
274 -          _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
275 +          _dbus_memory_pause_based_on_timeout (remain_milliseconds);
276          }
277        else
278          {          
279 @@ -2534,7 +2538,7 @@ _dbus_connection_block_pending_call (DBu
280                                                    pending,
281                                                    DBUS_ITERATION_DO_READING |
282                                                    DBUS_ITERATION_BLOCK,
283 -                                                  timeout_milliseconds - elapsed_milliseconds);
284 +                                                  remain_milliseconds);
285          }
286  
287        goto recheck_status;
288
289
290 [FILE:354:patches/patch-dbus_dbus-sysdeps-unix.c]
291 --- dbus/dbus-sysdeps-unix.c.orig       2023-02-08 10:30:57 UTC
292 +++ dbus/dbus-sysdeps-unix.c
293 @@ -24,6 +24,14 @@
294  
295  #include <config.h>
296  
297 +#ifdef __sun
298 +#  if __STDC_VERSION__ - 0 < 199901L
299 +#define        _XOPEN_SOURCE   500
300 +#  else
301 +#define        _XOPEN_SOURCE   600
302 +#  endif
303 +#endif
304 +
305  #include "dbus-internals.h"
306  #include "dbus-sysdeps.h"
307  #include "dbus-sysdeps-unix.h"
308
309
310 [FILE:1374:patches/patch-dbus_dbus-sysdeps-util-unix.c]
311 --- dbus/dbus-sysdeps-util-unix.c.orig  2022-10-02 14:06:53 UTC
312 +++ dbus/dbus-sysdeps-util-unix.c
313 @@ -43,6 +43,7 @@
314  #include <stdio.h>
315  #include <errno.h>
316  #include <fcntl.h>
317 +#include <syslog.h>
318  #include <limits.h>
319  #include <sys/stat.h>
320  #ifdef HAVE_SYS_RESOURCE_H
321 @@ -53,6 +54,10 @@
322  #include <dirent.h>
323  #include <sys/un.h>
324  
325 +#if defined(__sun) && defined(__SVR4)
326 +#include <pwd.h>
327 +#endif
328 +
329  #ifdef HAVE_SYS_PRCTL_H
330  #include <sys/prctl.h>
331  #endif
332 @@ -578,8 +583,31 @@ _dbus_user_at_console (const char *usern
333  #ifdef DBUS_CONSOLE_AUTH_DIR
334    DBusString u, f;
335    dbus_bool_t result;
336 +#if defined(__sun) && defined(__SVR4)
337 +  struct passwd *passwd_entry;
338 +#endif
339  
340    result = FALSE;
341 +
342 +#if defined(__sun) && defined(__SVR4)
343 +  passwd_entry = getpwnam (username);
344 +  if (passwd_entry != NULL)
345 +    {
346 +      struct stat st;
347 +      uid_t uid;
348 +
349 +      uid = passwd_entry->pw_uid;
350 +
351 +      if (stat ("/dev/vt/console_user", &st) == 0 && st.st_uid == uid)
352 +        {
353 +         /*
354 +          * Owner is allowed to take over. Before we have real
355 +          * ownership in HAL, assume it's the console owner.
356 +          */
357 +          result = TRUE;
358 +        }
359 +    }
360 +#else
361    if (!_dbus_string_init (&f))
362      {
363        _DBUS_SET_OOM (error);
364 @@ -604,6 +632,7 @@ _dbus_user_at_console (const char *usern
365  
366   out:
367    _dbus_string_free (&f);
368 +#endif
369  
370    return result;
371  #else
372
373
374 [FILE:450:patches/patch-doc_Makefile.in]
375 --- doc/Makefile.in.orig        2023-02-08 12:04:20 UTC
376 +++ doc/Makefile.in
377 @@ -906,7 +906,7 @@ catalog.xml: catalog.xml.in
378         $(SED) "s|@DBUS_DTD_DIR@|$(dtddir)|" $< >$@
379  
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 $<
383  
384  @DBUS_XML_DOCS_ENABLED_TRUE@%.1: %.1.xml
385  @DBUS_XML_DOCS_ENABLED_TRUE@   $(XMLTO) man $<
386
387
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;
393    config_file = NULL;
394  
395 +  if (getenv("RAVENADM") != NULL)
396 +    {
397 +      fprintf (stderr, "Package building detected, launch not executed.\n");
398 +      exit (0);
399 +    }
400 +
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,
404
405
406 [FILE:171:files/catalog.in]
407 OVERRIDE YES
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"
410
411
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" />
419 </catalog>
420
421
422 [FILE:645:files/dbus.in]
423 #!/bin/sh
424 #
425 # $FreeBSD: head/devel/dbus/files/dbus.in 431498 2017-01-14 22:48:49Z tijl $
426 #
427 # PROVIDE: dbus
428 # REQUIRE: DAEMON ldconfig
429 #
430 # Add the following lines to /etc/rc.conf to enable the D-BUS messaging system:
431 #
432 # dbus_enable="YES"
433 #
434
435 . /etc/rc.subr
436
437 : ${dbus_enable=${gnome_enable-NO}} ${dbus_flags="--system"}
438
439 name=dbus
440 rcvar=dbus_enable
441
442 command="%%PREFIX%%/bin/dbus-daemon"
443 pidfile="/var/run/dbus/pid"
444
445 start_precmd="dbus_prestart"
446 stop_postcmd="dbus_poststop"
447
448 dbus_prestart()
449 {
450     %%PREFIX%%/bin/dbus-uuidgen --ensure
451     mkdir -p /var/run/dbus
452 }
453
454 dbus_poststop()
455 {
456     rm -f $pidfile
457 }
458
459 load_rc_config ${name}
460 run_rc_command "$1"
461