Ravenports generated: 30 Dec 2022 02:48
[ravenports.git] / bucket_57 / dbus
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               dbus
4 VERSION=                1.14.4
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.4.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          minixmlto:single:standard
21 RUN_DEPENDS=            xmlcatmgr:single:standard
22
23 USERS=                  messagebus
24 GROUPS=                 messagebus
25 USERGROUP_SPKG=         single
26
27 USES=                   cpe gmake libtool expat python:build shebangfix
28 XORG_COMPONENTS=        ice sm x11
29
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
37 LICENSE_SCHEME=         dual
38
39 CPE_VENDOR=             freedesktop
40 FPC_EQUIVALENT=         devel/dbus
41 SHEBANG_FILES=          tools/GetAllMatchRules.py
42
43 MUST_CONFIGURE=         gnu
44 CONFIGURE_ARGS=         --with-x
45                         --with-test-socket-dir={{WRKDIR}}
46                         --disable-doxygen-docs
47                         --disable-selinux
48                         --disable-apparmor
49                         --disable-systemd
50 CONFIGURE_ENV=          XMLTO={{LOCALBASE}}/bin/minixmlto
51
52 INSTALL_TARGET=         install-strip
53 SOVERSION=              3.32.1
54 PLIST_SUB=              VERSION="1.0"
55                         GROUPS={{GROUPS}}
56                         DTDDIR=share/xml/dbus-1
57 RC_SUBR=                dbus:single
58 SUB_FILES=              catalog
59                         catalog.xml
60 SUB_LIST=               DTDDIR={{PREFIX}}/share/xml/dbus-1
61
62 post-patch:
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
66
67 post-install:
68         # delete examples
69         ${RM} -r ${STAGEDIR}${STD_DOCDIR}
70         # install xmlcat catalogs
71         (cd ${WRKDIR} && ${INSTALL_DATA} catalog* \
72                 ${STAGEDIR}${PREFIX}/share/xml/dbus-1/)
73
74 post-extract:
75         ${AWK} '/^The Academic Free License/,/^but the BSD, MIT/' \
76                 ${WRKSRC}/COPYING > ${WRKDIR}/LICENSE_AFL
77
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
84 daemon).
85
86
87 [FILE:97:distinfo]
88 7c0f9b8e5ec0ff2479383e62c0084a3a29af99edf1514e9f659b81b30d4e353e      1368196 dbus-1.14.4.tar.xz
89
90
91 [FILE:1295:manifests/plist.single]
92 bin/
93  dbus-cleanup-sockets
94  dbus-daemon
95  dbus-launch
96  dbus-monitor
97  dbus-run-session
98  dbus-send
99  dbus-test-tool
100  dbus-update-activation-environment
101  dbus-uuidgen
102 etc/dbus-1/
103  session.conf
104  system.conf
105 include/dbus-%%VERSION%%/dbus/
106  dbus-address.h
107  dbus-bus.h
108  dbus-connection.h
109  dbus-errors.h
110  dbus-macros.h
111  dbus-memory.h
112  dbus-message.h
113  dbus-misc.h
114  dbus-pending-call.h
115  dbus-protocol.h
116  dbus-server.h
117  dbus-shared.h
118  dbus-signature.h
119  dbus-syntax.h
120  dbus-threads.h
121  dbus-types.h
122  dbus.h
123 lib/
124  libdbus-1.a
125  libdbus-1.so
126  libdbus-1.so.%%SOMAJOR%%
127  libdbus-1.so.%%SOVERSION%%
128 lib/cmake/DBus1/
129  DBus1Config.cmake
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
134 share/dbus-1/
135  session.conf
136  system.conf
137 share/man/man1/
138  dbus-cleanup-sockets.1.gz
139  dbus-daemon.1.gz
140  dbus-launch.1.gz
141  dbus-monitor.1.gz
142  dbus-run-session.1.gz
143  dbus-send.1.gz
144  dbus-test-tool.1.gz
145  dbus-update-activation-environment.1.gz
146  dbus-uuidgen.1.gz
147 share/xml/dbus-1/
148  busconfig.dtd
149  introspect.dtd
150 @dir /var/lib/dbus
151 @dir /var/run/dbus
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
158
159
160 [FILE:1126:patches/patch-configure]
161 --- configure.orig      2022-10-05 10:04:55 UTC
162 +++ configure
163 @@ -25403,7 +25403,7 @@ fi
164  done
165  
166  
167 -    if test "$ax_enable_compile_warnings" != "no"
168 +    if test "$ax_enable_compile_warnings" == "skipme"
169  then :
170  
171          if test "$ax_compiler_cxx" = "no" ; then
172 @@ -25995,7 +25995,7 @@ fi
173  done
174  
175  
176 -    if test "$ax_enable_compile_warnings" != "no"
177 +    if test "$ax_enable_compile_warnings" != "yes"
178  then :
179  
180          # "yes" flags
181 @@ -27074,7 +27074,7 @@ then :
182  
183  
184  
185 -for flag in    ; do
186 +for flag in ""   ; do
187    as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
189  printf %s "checking whether the linker accepts $flag... " >&6; }
190 @@ -27259,8 +27259,6 @@ case $host_os in
191          CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT"
192          # ... this opt-in to get sockaddr_in6 and sockaddr_storage...
193          CFLAGS="$CFLAGS -D__EXTENSIONS__"
194 -        # ... and this opt-in to get file descriptor passing support
195 -        CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
196          ;;
197  esac
198  
199
200
201 [FILE:3151:patches/patch-dbus_dbus-connection.c]
202 --- dbus/dbus-connection.c.orig 2022-10-02 14:06:53 UTC
203 +++ dbus/dbus-connection.c
204 @@ -2385,7 +2385,7 @@ _dbus_connection_block_pending_call (DBu
205    DBusConnection *connection;
206    dbus_uint32_t client_serial;
207    DBusTimeout *timeout;
208 -  int timeout_milliseconds, elapsed_milliseconds;
209 +  int timeout_milliseconds, elapsed_milliseconds, remain_milliseconds;
210  
211    _dbus_assert (pending != NULL);
212  
213 @@ -2466,7 +2466,11 @@ _dbus_connection_block_pending_call (DBu
214    _dbus_get_monotonic_time (&tv_sec, &tv_usec);
215    elapsed_milliseconds = (tv_sec - start_tv_sec) * 1000 +
216           (tv_usec - start_tv_usec) / 1000;
217 -  
218 +  if (timeout_milliseconds != -1)
219 +    remain_milliseconds = timeout_milliseconds - elapsed_milliseconds;
220 +  else
221 +    remain_milliseconds = -1;
222 +
223    if (!_dbus_connection_get_is_connected_unlocked (connection))
224      {
225        DBusMessage *error_msg;
226 @@ -2494,7 +2498,7 @@ _dbus_connection_block_pending_call (DBu
227             */
228            _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
229  
230 -          _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
231 +          _dbus_memory_pause_based_on_timeout (remain_milliseconds);
232          }
233        else
234          {          
235 @@ -2503,7 +2507,7 @@ _dbus_connection_block_pending_call (DBu
236                                                    pending,
237                                                    DBUS_ITERATION_DO_READING |
238                                                    DBUS_ITERATION_BLOCK,
239 -                                                  timeout_milliseconds - elapsed_milliseconds);
240 +                                                  remain_milliseconds);
241          }
242  
243        goto recheck_status;
244 @@ -2512,7 +2516,7 @@ _dbus_connection_block_pending_call (DBu
245      _dbus_verbose ("dbus_connection_send_with_reply_and_block(): clock set backward\n");
246    else if (elapsed_milliseconds < timeout_milliseconds)
247      {
248 -      _dbus_verbose ("dbus_connection_send_with_reply_and_block(): %d milliseconds remain\n", timeout_milliseconds - elapsed_milliseconds);
249 +      _dbus_verbose ("dbus_connection_send_with_reply_and_block(): %d milliseconds remain\n", remain_milliseconds);
250        
251        if (status == DBUS_DISPATCH_NEED_MEMORY)
252          {
253 @@ -2522,7 +2526,7 @@ _dbus_connection_block_pending_call (DBu
254             */
255            _dbus_verbose ("dbus_connection_send_with_reply_and_block() waiting for more memory\n");
256  
257 -          _dbus_memory_pause_based_on_timeout (timeout_milliseconds - elapsed_milliseconds);
258 +          _dbus_memory_pause_based_on_timeout (remain_milliseconds);
259          }
260        else
261          {          
262 @@ -2531,7 +2535,7 @@ _dbus_connection_block_pending_call (DBu
263                                                    pending,
264                                                    DBUS_ITERATION_DO_READING |
265                                                    DBUS_ITERATION_BLOCK,
266 -                                                  timeout_milliseconds - elapsed_milliseconds);
267 +                                                  remain_milliseconds);
268          }
269  
270        goto recheck_status;
271
272
273 [FILE:354:patches/patch-dbus_dbus-sysdeps-unix.c]
274 --- dbus/dbus-sysdeps-unix.c.orig       2022-10-02 14:06:53 UTC
275 +++ dbus/dbus-sysdeps-unix.c
276 @@ -24,6 +24,14 @@
277  
278  #include <config.h>
279  
280 +#ifdef __sun
281 +#  if __STDC_VERSION__ - 0 < 199901L
282 +#define        _XOPEN_SOURCE   500
283 +#  else
284 +#define        _XOPEN_SOURCE   600
285 +#  endif
286 +#endif
287 +
288  #include "dbus-internals.h"
289  #include "dbus-sysdeps.h"
290  #include "dbus-sysdeps-unix.h"
291
292
293 [FILE:1374:patches/patch-dbus_dbus-sysdeps-util-unix.c]
294 --- dbus/dbus-sysdeps-util-unix.c.orig  2022-10-02 14:06:53 UTC
295 +++ dbus/dbus-sysdeps-util-unix.c
296 @@ -43,6 +43,7 @@
297  #include <stdio.h>
298  #include <errno.h>
299  #include <fcntl.h>
300 +#include <syslog.h>
301  #include <limits.h>
302  #include <sys/stat.h>
303  #ifdef HAVE_SYS_RESOURCE_H
304 @@ -53,6 +54,10 @@
305  #include <dirent.h>
306  #include <sys/un.h>
307  
308 +#if defined(__sun) && defined(__SVR4)
309 +#include <pwd.h>
310 +#endif
311 +
312  #ifdef HAVE_SYS_PRCTL_H
313  #include <sys/prctl.h>
314  #endif
315 @@ -578,8 +583,31 @@ _dbus_user_at_console (const char *usern
316  #ifdef DBUS_CONSOLE_AUTH_DIR
317    DBusString u, f;
318    dbus_bool_t result;
319 +#if defined(__sun) && defined(__SVR4)
320 +  struct passwd *passwd_entry;
321 +#endif
322  
323    result = FALSE;
324 +
325 +#if defined(__sun) && defined(__SVR4)
326 +  passwd_entry = getpwnam (username);
327 +  if (passwd_entry != NULL)
328 +    {
329 +      struct stat st;
330 +      uid_t uid;
331 +
332 +      uid = passwd_entry->pw_uid;
333 +
334 +      if (stat ("/dev/vt/console_user", &st) == 0 && st.st_uid == uid)
335 +        {
336 +         /*
337 +          * Owner is allowed to take over. Before we have real
338 +          * ownership in HAL, assume it's the console owner.
339 +          */
340 +          result = TRUE;
341 +        }
342 +    }
343 +#else
344    if (!_dbus_string_init (&f))
345      {
346        _DBUS_SET_OOM (error);
347 @@ -604,6 +632,7 @@ _dbus_user_at_console (const char *usern
348  
349   out:
350    _dbus_string_free (&f);
351 +#endif
352  
353    return result;
354  #else
355
356
357 [FILE:450:patches/patch-doc_Makefile.in]
358 --- doc/Makefile.in.orig        2022-10-05 10:04:54 UTC
359 +++ doc/Makefile.in
360 @@ -904,7 +904,7 @@ catalog.xml: catalog.xml.in
361         $(SED) "s|@DBUS_DTD_DIR@|$(dtddir)|" $< >$@
362  
363  @DBUS_XML_DOCS_ENABLED_TRUE@%.html: %.xml
364 -@DBUS_XML_DOCS_ENABLED_TRUE@   $(XMLTO) --stringparam generate.consistent.ids=1 html-nochunks $<
365 +@DBUS_XML_DOCS_ENABLED_TRUE@   $(XMLTO) html-nochunks $<
366  
367  @DBUS_XML_DOCS_ENABLED_TRUE@%.1: %.1.xml
368  @DBUS_XML_DOCS_ENABLED_TRUE@   $(XMLTO) man $<
369
370
371 [FILE:542:patches/patch-tools_dbus-launch.c]
372 --- tools/dbus-launch.c.orig    2022-10-02 14:06:53 UTC
373 +++ tools/dbus-launch.c
374 @@ -851,6 +851,12 @@ main (int argc, char **argv)
375    exit_with_session = FALSE;
376    config_file = NULL;
377  
378 +  if (getenv("RAVENADM") != NULL)
379 +    {
380 +      fprintf (stderr, "Package building detected, launch not executed.\n");
381 +      exit (0);
382 +    }
383 +
384    /* Ensure that the first three fds are open, to ensure that when we
385     * create other file descriptors (for example for epoll, inotify or
386     * a socket), they never get assigned as fd 0, 1 or 2. If they were,
387
388
389 [FILE:171:files/catalog.in]
390 OVERRIDE YES
391 PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" "introspect.dtd"
392 PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" "busconfig.dtd"
393
394
395 [FILE:479:files/catalog.xml.in]
396 <?xml version="1.0"?>
397 <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
398         "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
399 <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
400   <public publicId="-//freedesktop//DTD D-BUS Object Introspection 1.0//EN" uri="file://%%DTDDIR%%/introspect.dtd" />
401   <public publicId="-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN" uri="file://%%DTDDIR%%/busconfig.dtd" />
402 </catalog>
403
404
405 [FILE:785:files/dbus.in]
406 #!/bin/sh
407 #
408 # $FreeBSD: head/devel/dbus/files/dbus.in 431498 2017-01-14 22:48:49Z tijl $
409 #
410 # PROVIDE: dbus
411 # REQUIRE: DAEMON ldconfig
412 #
413 # Add the following lines to /etc/rc.conf to enable the D-BUS messaging system:
414 #
415 # dbus_enable="YES"
416 #
417
418 . /etc/rc.subr
419
420 : ${dbus_enable=${gnome_enable-NO}} ${dbus_flags="--system"}
421
422 name=dbus
423 rcvar=dbus_enable
424
425 command="%%PREFIX%%/bin/dbus-daemon"
426 pidfile="/var/run/dbus/pid"
427
428 start_precmd="dbus_prestart"
429 stop_postcmd="dbus_poststop"
430
431 dbus_prestart()
432 {
433     %%PREFIX%%/bin/dbus-uuidgen --ensure
434     mkdir -p /var/run/dbus
435 }
436
437 dbus_poststop()
438 {
439     rm -f $pidfile
440 # The following two lines may be removed after 2018-01-01
441     rm -f /var/db/dbus/machine-id
442     [ ! -d /var/db/dbus ] || rmdir /var/db/dbus
443 }
444
445 load_rc_config ${name}
446 run_rc_command "$1"
447