Tue Mar 8 11:16:01 2022 UTC ()
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()
  mechanism


(wiz)
diff -r1.128 -r1.129 pkgsrc/sysutils/dbus/Makefile
diff -r1.21 -r1.22 pkgsrc/sysutils/dbus/PLIST
diff -r1.97 -r1.98 pkgsrc/sysutils/dbus/distinfo
diff -r1.4 -r1.5 pkgsrc/sysutils/dbus/patches/patch-dbus_dbus-sysdeps-util-unix.c

cvs diff -r1.128 -r1.129 pkgsrc/sysutils/dbus/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/dbus/Makefile 2022/01/27 09:02:58 1.128
+++ pkgsrc/sysutils/dbus/Makefile 2022/03/08 11:16:00 1.129
@@ -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
3DISTNAME= dbus-1.12.20 3DISTNAME= dbus-1.14.0
4PKGREVISION= 2 
5CATEGORIES= sysutils 4CATEGORIES= sysutils
6MASTER_SITES= http://dbus.freedesktop.org/releases/dbus/ 5MASTER_SITES= https://dbus.freedesktop.org/releases/dbus/
 6EXTRACT_SUFX= .tar.xz
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.freedesktop.org/Software/dbus 9HOMEPAGE= https://www.freedesktop.org/Software/dbus
10COMMENT= Message bus system 10COMMENT= Message bus system
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13CONFLICTS+= dbus-glib<0.71 13CONFLICTS+= dbus-glib<0.71
14CONFLICTS+= py27-dbus<0.71 14CONFLICTS+= py27-dbus<0.71
15 15
16BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto 16BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto
17 17
18GNU_CONFIGURE= YES 18GNU_CONFIGURE= YES
19USE_TOOLS+= gmake msgfmt pkg-config 19USE_TOOLS+= gmake msgfmt pkg-config

cvs diff -r1.21 -r1.22 pkgsrc/sysutils/dbus/PLIST (expand / switch to unified diff)

--- pkgsrc/sysutils/dbus/PLIST 2017/11/23 14:43:23 1.21
+++ pkgsrc/sysutils/dbus/PLIST 2022/03/08 11:16:00 1.22
@@ -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
3bin/dbus-cleanup-sockets 3bin/dbus-cleanup-sockets
4bin/dbus-daemon 4bin/dbus-daemon
5bin/dbus-launch 5bin/dbus-launch
6bin/dbus-monitor 6bin/dbus-monitor
7bin/dbus-run-session 7bin/dbus-run-session
8bin/dbus-send 8bin/dbus-send
9bin/dbus-test-tool 9bin/dbus-test-tool
10bin/dbus-update-activation-environment 10bin/dbus-update-activation-environment
11bin/dbus-uuidgen 11bin/dbus-uuidgen
12include/dbus-1.0/dbus/dbus-address.h 12include/dbus-1.0/dbus/dbus-address.h
13include/dbus-1.0/dbus/dbus-bus.h 13include/dbus-1.0/dbus/dbus-bus.h
14include/dbus-1.0/dbus/dbus-connection.h 14include/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
51share/doc/dbus/dbus-run-session.1.html 51share/doc/dbus/dbus-run-session.1.html
52share/doc/dbus/dbus-send.1.html 52share/doc/dbus/dbus-send.1.html
53share/doc/dbus/dbus-specification.html 53share/doc/dbus/dbus-specification.html
54share/doc/dbus/dbus-test-plan.html 54share/doc/dbus/dbus-test-plan.html
55share/doc/dbus/dbus-test-tool.1.html 55share/doc/dbus/dbus-test-tool.1.html
56share/doc/dbus/dbus-tutorial.html 56share/doc/dbus/dbus-tutorial.html
57share/doc/dbus/dbus-update-activation-environment.1.html 57share/doc/dbus/dbus-update-activation-environment.1.html
58share/doc/dbus/dbus-uuidgen.1.html 58share/doc/dbus/dbus-uuidgen.1.html
59share/doc/dbus/diagram.png 59share/doc/dbus/diagram.png
60share/doc/dbus/diagram.svg 60share/doc/dbus/diagram.svg
61share/doc/dbus/examples/GetAllMatchRules.py 61share/doc/dbus/examples/GetAllMatchRules.py
62share/doc/dbus/examples/example-session-disable-stats.conf 62share/doc/dbus/examples/example-session-disable-stats.conf
63share/doc/dbus/examples/example-system-enable-stats.conf 63share/doc/dbus/examples/example-system-enable-stats.conf
 64share/doc/dbus/examples/example-system-hardening-without-traditional-activation.conf
64share/doc/dbus/introspect.dtd 65share/doc/dbus/introspect.dtd
65share/doc/dbus/introspect.xsl 66share/doc/dbus/introspect.xsl
66share/doc/dbus/system-activation.txt 67share/doc/dbus/system-activation.txt
67share/xml/dbus-1/busconfig.dtd 68share/xml/dbus-1/busconfig.dtd
 69share/xml/dbus-1/catalog.xml
68share/xml/dbus-1/introspect.dtd 70share/xml/dbus-1/introspect.dtd

cvs diff -r1.97 -r1.98 pkgsrc/sysutils/dbus/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/dbus/distinfo 2021/10/26 11:19:28 1.97
+++ pkgsrc/sysutils/dbus/distinfo 2022/03/08 11:16:00 1.98
@@ -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
3BLAKE2s (dbus-1.12.20.tar.gz) = 48094ee2b00de08613c83e926db5f36f9c004bb07dc394b953a5680d16095ab4 3BLAKE2s (dbus-1.14.0.tar.xz) = 5440d545926ad199ac0a523aa81a737ff84274f5a4a16a1cbd3f1eea8da2c621
4SHA512 (dbus-1.12.20.tar.gz) = 0964683bc6859374cc94e42e1ec0cdb542cca67971c205fcba4352500b6c0891665b0718e7d85eb060c81cb82e3346c313892bc02384da300ddd306c7eef0056 4SHA512 (dbus-1.14.0.tar.xz) = 9bf17a3ebb3cf44722c6fbf24ee56e9dc14d6882fc312f26c7f07459d969424bc2fb63a229139e011804ecc479a8f0eb1a0c83286f8d5a664c5979d12634179f
5Size (dbus-1.12.20.tar.gz) = 2095511 bytes 5Size (dbus-1.14.0.tar.xz) = 1360228 bytes
6SHA1 (patch-am) = ed334bc76911c9db9f5472c58fb762c56255c5b4 
7SHA1 (patch-configure) = 9dee6306aa07b60449a0f9f0f1ea3dccbc70dcb4 6SHA1 (patch-configure) = 9dee6306aa07b60449a0f9f0f1ea3dccbc70dcb4
8SHA1 (patch-dbus_dbus-sysdeps-unix.c) = 3dfc60eba7ab9d5a29d2a842ce0baa1b109df716 7SHA1 (patch-dbus_dbus-sysdeps-unix.c) = 3dfc60eba7ab9d5a29d2a842ce0baa1b109df716
9SHA1 (patch-dbus_dbus-sysdeps-util-unix.c) = 1a25e53514064e452a207ad8b2a0057c11d5c190 8SHA1 (patch-dbus_dbus-sysdeps-util-unix.c) = a99de7c8abb77940000814f593416d21ae234193

cvs diff -r1.4 -r1.5 pkgsrc/sysutils/dbus/patches/patch-dbus_dbus-sysdeps-util-unix.c (expand / switch to unified diff)

--- pkgsrc/sysutils/dbus/patches/patch-dbus_dbus-sysdeps-util-unix.c 2017/11/23 14:43:23 1.4
+++ pkgsrc/sysutils/dbus/patches/patch-dbus_dbus-sysdeps-util-unix.c 2022/03/08 11:16:00 1.5
@@ -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
3add solaris specific console_user test 3add 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