dbus: update to 1.14.0. 1.14.x is a new stable branch, superseding 1.12.x. Summary of major changes between 1.12.x and 1.14.0 -------------------------------------------------- Dependencies: • On Unix platforms, if getpwnam_r() and getgrnam_r() are implemented, they must be POSIX-conformant. The non-POSIX signature seen in ancient Solaris versions will no longer work. ... Deprecations: • Third-party software should install default dbus policies for the system bus into ${datadir}/dbus-1/system.d (this has been supported since dbus 1.10, released in August 2015). Installing default dbus policies in ${sysconfdir}/dbus-1/system.d is now considered to be deprecated. Policy files in ${sysconfdir}/dbus-1/system.d continue to be read, but this directory should only be used by system administrators wishing to override the default policies. The ${datadir} applicable to dbus is usually /usr/share and the ${sysconfdir} is usually /etc. • A similar pattern applies to the session bus policies in session.d. • The dbus-send(1) man page now documents --bus and --peer instead of the old --address synonym for --peer, which has been deprecated since the introduction of --bus and --peer in 1.7.6 • The dbus-daemon man page now has scarier warnings about <allow_anonymous/> and non-local TCP, which are insecure and should not be used, particularly for the standard system and session buses • DBusServer (and hence the dbus-daemon) no longer accepts usernames (login names) for the recommended EXTERNAL authentication mechanism, only numeric user IDs or the empty string. See 1.13.0 release notes for full details. New features: • On Linux 4.13 or later when built against a suitable glibc version, GetConnectionCredentials() now includes UnixGroupIDs, the effective group IDs of the initiator of the connection, taken from SO_PEERGROUPS. • On Linux 4.13 or later, <policy group="…"> now uses the SO_PEERGROUPS credentials-passing socket option to get the effective group IDs of the initiator of the connection. See 1.13.4 release notes for details. • Add a --sender option to dbus-send, which requests a name and holds it until the signal has been sent • dbus-daemon <allow> and <deny> rules can now specify a send_destination_prefix attribute, which is like a combination of send_destination and the arg0namespace keyword in match rules. See 1.13.12 release notes for more details • The dbus-daemon now filters the messages that it relays, removing header fields that it does not understand. Clients must not rely on this behaviour unless they have confirmed that they are connected to a suitable message bus implementation, for example by querying its Features property. • The dbus-daemon now emits a signal, ActivatableServicesChanged, when the list of activatable services may have changed. Support for this signal can be discovered by querying the Features property. • It is now possible to disable traditional (non-systemd) service activation at build-time (Autotools: --disable-traditional-activation, CMake: -DENABLE_TRADITIONAL_ACTIVATION=OFF). See 1.13.10 release notes for details. • The API reference manual can be built as a Qt compiled help file if qhelpgenerator(-qt5) is available. See 1.13.16 release notes for details. Miscellaneous behaviour changes: • When using the "user bus" (--enable-user-session), put the dbus-daemon in the session slice • Several environment variables set by systemd are no longer passed on to activated services • If the dbus-daemon is compiled for Linux with systemd support, it now informs systemd that it is ready for use via the sd_notify() mechanismdiff -r1.128 -r1.129 pkgsrc/sysutils/dbus/Makefile
(wiz)
@@ -1,19 +1,19 @@ | @@ -1,19 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.128 2022/01/27 09:02:58 nros Exp $ | 1 | # $NetBSD: Makefile,v 1.129 2022/03/08 11:16:00 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= dbus-1.12.20 | 3 | DISTNAME= dbus-1.14.0 | |
4 | PKGREVISION= 2 | |||
5 | CATEGORIES= sysutils | 4 | CATEGORIES= sysutils | |
6 | MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/ | 5 | MASTER_SITES= https://dbus.freedesktop.org/releases/dbus/ | |
6 | EXTRACT_SUFX= .tar.xz | |||
7 | 7 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://www.freedesktop.org/Software/dbus | 9 | HOMEPAGE= https://www.freedesktop.org/Software/dbus | |
10 | COMMENT= Message bus system | 10 | COMMENT= Message bus system | |
11 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
12 | 12 | |||
13 | CONFLICTS+= dbus-glib<0.71 | 13 | CONFLICTS+= dbus-glib<0.71 | |
14 | CONFLICTS+= py27-dbus<0.71 | 14 | CONFLICTS+= py27-dbus<0.71 | |
15 | 15 | |||
16 | BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto | 16 | BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto | |
17 | 17 | |||
18 | GNU_CONFIGURE= YES | 18 | GNU_CONFIGURE= YES | |
19 | USE_TOOLS+= gmake msgfmt pkg-config | 19 | USE_TOOLS+= gmake msgfmt pkg-config |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.21 2017/11/23 14:43:23 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.22 2022/03/08 11:16:00 wiz Exp $ | |
2 | ${PLIST.launchd}Library/LaunchAgents/org.freedesktop.dbus-session.plist | 2 | ${PLIST.launchd}Library/LaunchAgents/org.freedesktop.dbus-session.plist | |
3 | bin/dbus-cleanup-sockets | 3 | bin/dbus-cleanup-sockets | |
4 | bin/dbus-daemon | 4 | bin/dbus-daemon | |
5 | bin/dbus-launch | 5 | bin/dbus-launch | |
6 | bin/dbus-monitor | 6 | bin/dbus-monitor | |
7 | bin/dbus-run-session | 7 | bin/dbus-run-session | |
8 | bin/dbus-send | 8 | bin/dbus-send | |
9 | bin/dbus-test-tool | 9 | bin/dbus-test-tool | |
10 | bin/dbus-update-activation-environment | 10 | bin/dbus-update-activation-environment | |
11 | bin/dbus-uuidgen | 11 | bin/dbus-uuidgen | |
12 | include/dbus-1.0/dbus/dbus-address.h | 12 | include/dbus-1.0/dbus/dbus-address.h | |
13 | include/dbus-1.0/dbus/dbus-bus.h | 13 | include/dbus-1.0/dbus/dbus-bus.h | |
14 | include/dbus-1.0/dbus/dbus-connection.h | 14 | include/dbus-1.0/dbus/dbus-connection.h | |
@@ -51,18 +51,20 @@ share/doc/dbus/dbus-monitor.1.html | @@ -51,18 +51,20 @@ share/doc/dbus/dbus-monitor.1.html | |||
51 | share/doc/dbus/dbus-run-session.1.html | 51 | share/doc/dbus/dbus-run-session.1.html | |
52 | share/doc/dbus/dbus-send.1.html | 52 | share/doc/dbus/dbus-send.1.html | |
53 | share/doc/dbus/dbus-specification.html | 53 | share/doc/dbus/dbus-specification.html | |
54 | share/doc/dbus/dbus-test-plan.html | 54 | share/doc/dbus/dbus-test-plan.html | |
55 | share/doc/dbus/dbus-test-tool.1.html | 55 | share/doc/dbus/dbus-test-tool.1.html | |
56 | share/doc/dbus/dbus-tutorial.html | 56 | share/doc/dbus/dbus-tutorial.html | |
57 | share/doc/dbus/dbus-update-activation-environment.1.html | 57 | share/doc/dbus/dbus-update-activation-environment.1.html | |
58 | share/doc/dbus/dbus-uuidgen.1.html | 58 | share/doc/dbus/dbus-uuidgen.1.html | |
59 | share/doc/dbus/diagram.png | 59 | share/doc/dbus/diagram.png | |
60 | share/doc/dbus/diagram.svg | 60 | share/doc/dbus/diagram.svg | |
61 | share/doc/dbus/examples/GetAllMatchRules.py | 61 | share/doc/dbus/examples/GetAllMatchRules.py | |
62 | share/doc/dbus/examples/example-session-disable-stats.conf | 62 | share/doc/dbus/examples/example-session-disable-stats.conf | |
63 | share/doc/dbus/examples/example-system-enable-stats.conf | 63 | share/doc/dbus/examples/example-system-enable-stats.conf | |
64 | share/doc/dbus/examples/example-system-hardening-without-traditional-activation.conf | |||
64 | share/doc/dbus/introspect.dtd | 65 | share/doc/dbus/introspect.dtd | |
65 | share/doc/dbus/introspect.xsl | 66 | share/doc/dbus/introspect.xsl | |
66 | share/doc/dbus/system-activation.txt | 67 | share/doc/dbus/system-activation.txt | |
67 | share/xml/dbus-1/busconfig.dtd | 68 | share/xml/dbus-1/busconfig.dtd | |
69 | share/xml/dbus-1/catalog.xml | |||
68 | share/xml/dbus-1/introspect.dtd | 70 | share/xml/dbus-1/introspect.dtd |
@@ -1,9 +1,8 @@ | @@ -1,9 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.97 2021/10/26 11:19:28 nia Exp $ | 1 | $NetBSD: distinfo,v 1.98 2022/03/08 11:16:00 wiz Exp $ | |
2 | 2 | |||
3 | BLAKE2s (dbus-1.12.20.tar.gz) = 48094ee2b00de08613c83e926db5f36f9c004bb07dc394b953a5680d16095ab4 | 3 | BLAKE2s (dbus-1.14.0.tar.xz) = 5440d545926ad199ac0a523aa81a737ff84274f5a4a16a1cbd3f1eea8da2c621 | |
4 | SHA512 (dbus-1.12.20.tar.gz) = 0964683bc6859374cc94e42e1ec0cdb542cca67971c205fcba4352500b6c0891665b0718e7d85eb060c81cb82e3346c313892bc02384da300ddd306c7eef0056 | 4 | SHA512 (dbus-1.14.0.tar.xz) = 9bf17a3ebb3cf44722c6fbf24ee56e9dc14d6882fc312f26c7f07459d969424bc2fb63a229139e011804ecc479a8f0eb1a0c83286f8d5a664c5979d12634179f | |
5 | Size (dbus-1.12.20.tar.gz) = 2095511 bytes | 5 | Size (dbus-1.14.0.tar.xz) = 1360228 bytes | |
6 | SHA1 (patch-am) = ed334bc76911c9db9f5472c58fb762c56255c5b4 | |||
7 | SHA1 (patch-configure) = 9dee6306aa07b60449a0f9f0f1ea3dccbc70dcb4 | 6 | SHA1 (patch-configure) = 9dee6306aa07b60449a0f9f0f1ea3dccbc70dcb4 | |
8 | SHA1 (patch-dbus_dbus-sysdeps-unix.c) = 3dfc60eba7ab9d5a29d2a842ce0baa1b109df716 | 7 | SHA1 (patch-dbus_dbus-sysdeps-unix.c) = 3dfc60eba7ab9d5a29d2a842ce0baa1b109df716 | |
9 | SHA1 (patch-dbus_dbus-sysdeps-util-unix.c) = 1a25e53514064e452a207ad8b2a0057c11d5c190 | 8 | SHA1 (patch-dbus_dbus-sysdeps-util-unix.c) = a99de7c8abb77940000814f593416d21ae234193 |
@@ -1,31 +1,31 @@ | @@ -1,31 +1,31 @@ | |||
1 | $NetBSD: patch-dbus_dbus-sysdeps-util-unix.c,v 1.4 2017/11/23 14:43:23 wiz Exp $ | 1 | $NetBSD: patch-dbus_dbus-sysdeps-util-unix.c,v 1.5 2022/03/08 11:16:00 wiz Exp $ | |
2 | 2 | |||
3 | add solaris specific console_user test | 3 | add solaris specific console_user test | |
4 | 4 | |||
5 | --- dbus/dbus-sysdeps-util-unix.c.orig 2017-10-30 12:26:18.000000000 +0000 | 5 | --- dbus/dbus-sysdeps-util-unix.c.orig 2022-02-23 14:39:11.000000000 +0000 | |
6 | +++ dbus/dbus-sysdeps-util-unix.c | 6 | +++ dbus/dbus-sysdeps-util-unix.c | |
7 | @@ -51,6 +51,10 @@ | 7 | @@ -56,6 +56,10 @@ | |
8 | #include <dirent.h> | 8 | #include <sys/prctl.h> | |
9 | #include <sys/un.h> | 9 | #endif | |
10 | 10 | |||
11 | +#if defined(__sun) && defined(__SVR4) | 11 | +#if defined(__sun) && defined(__SVR4) | |
12 | +#include <pwd.h> | 12 | +#include <pwd.h> | |
13 | +#endif | 13 | +#endif | |
14 | + | 14 | + | |
15 | #ifdef HAVE_SYS_SYSLIMITS_H | 15 | #ifdef HAVE_SYS_SYSLIMITS_H | |
16 | #include <sys/syslimits.h> | 16 | #include <sys/syslimits.h> | |
17 | #endif | 17 | #endif | |
18 | @@ -551,8 +555,31 @@ _dbus_user_at_console (const char *usern | 18 | @@ -581,8 +585,31 @@ _dbus_user_at_console (const char *usern | |
19 | #ifdef DBUS_CONSOLE_AUTH_DIR | 19 | #ifdef DBUS_CONSOLE_AUTH_DIR | |
20 | DBusString u, f; | 20 | DBusString u, f; | |
21 | dbus_bool_t result; | 21 | dbus_bool_t result; | |
22 | +#if defined(__sun) && defined(__SVR4) | 22 | +#if defined(__sun) && defined(__SVR4) | |
23 | + struct passwd *passwd_entry; | 23 | + struct passwd *passwd_entry; | |
24 | +#endif | 24 | +#endif | |
25 | 25 | |||
26 | result = FALSE; | 26 | result = FALSE; | |
27 | + | 27 | + | |
28 | +#if defined(__sun) && defined(__SVR4) | 28 | +#if defined(__sun) && defined(__SVR4) | |
29 | + passwd_entry = getpwnam (username); | 29 | + passwd_entry = getpwnam (username); | |
30 | + if (passwd_entry != NULL) | 30 | + if (passwd_entry != NULL) | |
31 | + { | 31 | + { | |
@@ -37,21 +37,21 @@ add solaris specific console_user test | @@ -37,21 +37,21 @@ add solaris specific console_user test | |||
37 | + if (stat ("/dev/vt/console_user", &st) == 0 && st.st_uid == uid) | 37 | + if (stat ("/dev/vt/console_user", &st) == 0 && st.st_uid == uid) | |
38 | + { | 38 | + { | |
39 | + /* | 39 | + /* | |
40 | + * Owner is allowed to take over. Before we have real | 40 | + * Owner is allowed to take over. Before we have real | |
41 | + * ownership in HAL, assume it's the console owner. | 41 | + * ownership in HAL, assume it's the console owner. | |
42 | + */ | 42 | + */ | |
43 | + result = TRUE; | 43 | + result = TRUE; | |
44 | + } | 44 | + } | |
45 | + } | 45 | + } | |
46 | +#else | 46 | +#else | |
47 | if (!_dbus_string_init (&f)) | 47 | if (!_dbus_string_init (&f)) | |
48 | { | 48 | { | |
49 | _DBUS_SET_OOM (error); | 49 | _DBUS_SET_OOM (error); | |
50 | @@ -577,6 +604,7 @@ _dbus_user_at_console (const char *usern | 50 | @@ -607,6 +634,7 @@ _dbus_user_at_console (const char *usern | |
51 | 51 | |||
52 | out: | 52 | out: | |
53 | _dbus_string_free (&f); | 53 | _dbus_string_free (&f); | |
54 | +#endif | 54 | +#endif | |
55 | 55 | |||
56 | return result; | 56 | return result; | |
57 | #else | 57 | #else |