Mon Oct 3 12:44:00 2022 UTC ()
dbus: update to 1.14.2.

dbus 1.14.2 (2022-09-26)
========================

Fixes:

• Fix build failure on FreeBSD (dbus!277, Alex Richardson)

• Fix build failure on macOS with launchd enabled
  (dbus!287, Dawid Wróbel)

• Preserve errno on failure to open /proc/self/oom_score_adj
  (dbus!285, Gentoo#834725; Mike Gilbert)

• On Linux, don't log warnings if oom_score_adj is read-only but does not
  need to be changed (dbus!291, Simon McVittie)

• Slightly improve error-handling for inotify
  (dbus!235, Simon McVittie)

• Don't crash if dbus-daemon is asked to watch more than 128 directories
  for changes (dbus!302, Jan Tojnar)

• Autotools build system fixes:
  · Don't treat --with-x or --with-x=yes as a request to disable X11,
    fixing a regression in 1.13.20. Instead, require X11 libraries and
    fail if they cannot be detected. (dbus!263, Lars Wendler)
  · When a CMake project uses an Autotools-built libdbus in a
    non-standard prefix, find dbus-arch-deps.h successfully
    (dbus#314, Simon McVittie)
  · Don't include generated XML catalog in source releases
    (dbus!317, Jan Tojnar)
  · Improve robustness of detecting gcc __sync atomic builtins
    (dbus!320, Alex Richardson)

• CMake build system fixes:
  · Detect endianness correctly, fixing interoperability with other D-Bus
    implementations on big-endian systems (dbus#375, Ralf Habacker)
  · When building for Unix, install session and system bus setup
    in the intended locations
    (dbus!267, dbus!297; Ralf Habacker, Alex Richardson)
  · Detect setresuid() and getresuid() (dbus!319, Alex Richardson)
  · Detect backtrace() on FreeBSD (dbus!281, Alex Richardson)
  · Don't include headers from parent directory (dbus!282, Alex Richardson)
  · Distinguish between host and target TMPDIR when cross-compiling
    (dbus!279, Alex Richardson)
  · Fix detection of atomic operations (dbus!306, Alex Richardson)

Tests and CI enhancements:

• On Unix, skip tests that switch uid if run in a container that is
  unable to do so, instead of failing (dbus#407, Simon McVittie)

• Use the latest MSYS2 packages for CI
  (Ralf Habacker, Simon McVittie)


(wiz)
diff -r1.132 -r1.133 pkgsrc/sysutils/dbus/Makefile
diff -r1.98 -r1.99 pkgsrc/sysutils/dbus/distinfo
diff -r1.5 -r1.6 pkgsrc/sysutils/dbus/patches/patch-dbus_dbus-sysdeps-util-unix.c

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

--- pkgsrc/sysutils/dbus/Makefile 2022/05/25 09:33:53 1.132
+++ pkgsrc/sysutils/dbus/Makefile 2022/10/03 12:44:00 1.133
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.132 2022/05/25 09:33:53 jperkin Exp $ 1# $NetBSD: Makefile,v 1.133 2022/10/03 12:44:00 wiz Exp $
2 2
3DISTNAME= dbus-1.14.0 3DISTNAME= dbus-1.14.2
4PKGREVISION= 3 
5CATEGORIES= sysutils 4CATEGORIES= sysutils
6MASTER_SITES= https://dbus.freedesktop.org/releases/dbus/ 5MASTER_SITES= https://dbus.freedesktop.org/releases/dbus/
7EXTRACT_SUFX= .tar.xz 6EXTRACT_SUFX= .tar.xz
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://www.freedesktop.org/Software/dbus 9HOMEPAGE= https://www.freedesktop.org/Software/dbus
11COMMENT= Message bus system 10COMMENT= Message bus system
12LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
13 12
14CONFLICTS+= dbus-glib<0.71 13CONFLICTS+= dbus-glib<0.71
15CONFLICTS+= py27-dbus<0.71 14CONFLICTS+= py27-dbus<0.71
16 15
17BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto 16BUILD_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto

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

--- pkgsrc/sysutils/dbus/distinfo 2022/03/08 11:16:00 1.98
+++ pkgsrc/sysutils/dbus/distinfo 2022/10/03 12:44:00 1.99
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.98 2022/03/08 11:16:00 wiz Exp $ 1$NetBSD: distinfo,v 1.99 2022/10/03 12:44:00 wiz Exp $
2 2
3BLAKE2s (dbus-1.14.0.tar.xz) = 5440d545926ad199ac0a523aa81a737ff84274f5a4a16a1cbd3f1eea8da2c621 3BLAKE2s (dbus-1.14.2.tar.xz) = e494ae3be33733c32bf1f32d1b5b2e72ac73895344f1c87156291f5042dd1294
4SHA512 (dbus-1.14.0.tar.xz) = 9bf17a3ebb3cf44722c6fbf24ee56e9dc14d6882fc312f26c7f07459d969424bc2fb63a229139e011804ecc479a8f0eb1a0c83286f8d5a664c5979d12634179f 4SHA512 (dbus-1.14.2.tar.xz) = 6e503385bfc1b17d4922dc6d2fb3fa10626ed306fe2b3a6a59f6cf81667c4cd63c2fc5e4fd040f48415235e9f4a75b10948ef512f022af1edab20f426271a9b4
5Size (dbus-1.14.0.tar.xz) = 1360228 bytes 5Size (dbus-1.14.2.tar.xz) = 1362972 bytes
6SHA1 (patch-configure) = 9dee6306aa07b60449a0f9f0f1ea3dccbc70dcb4 6SHA1 (patch-configure) = 9dee6306aa07b60449a0f9f0f1ea3dccbc70dcb4
7SHA1 (patch-dbus_dbus-sysdeps-unix.c) = 3dfc60eba7ab9d5a29d2a842ce0baa1b109df716 7SHA1 (patch-dbus_dbus-sysdeps-unix.c) = 3dfc60eba7ab9d5a29d2a842ce0baa1b109df716
8SHA1 (patch-dbus_dbus-sysdeps-util-unix.c) = a99de7c8abb77940000814f593416d21ae234193 8SHA1 (patch-dbus_dbus-sysdeps-util-unix.c) = 537bb8a30bd0bde8ac208a7ce9a4e1903246b443

cvs diff -r1.5 -r1.6 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 2022/03/08 11:16:00 1.5
+++ pkgsrc/sysutils/dbus/patches/patch-dbus_dbus-sysdeps-util-unix.c 2022/10/03 12:44:00 1.6
@@ -1,31 +1,31 @@ @@ -1,31 +1,31 @@
1$NetBSD: patch-dbus_dbus-sysdeps-util-unix.c,v 1.5 2022/03/08 11:16:00 wiz Exp $ 1$NetBSD: patch-dbus_dbus-sysdeps-util-unix.c,v 1.6 2022/10/03 12:44: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 2022-02-23 14:39:11.000000000 +0000 5--- dbus/dbus-sysdeps-util-unix.c.orig 2022-09-14 12:12:21.000000000 +0000
6+++ dbus/dbus-sysdeps-util-unix.c 6+++ dbus/dbus-sysdeps-util-unix.c
7@@ -56,6 +56,10 @@ 7@@ -56,6 +56,10 @@
 8 #ifdef HAVE_SYS_PRCTL_H
8 #include <sys/prctl.h> 9 #include <sys/prctl.h>
9 #endif 10 #endif
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
16 #include <sys/syslimits.h> 16 #ifdef HAVE_SYSTEMD
17 #endif 17 #include <systemd/sd-daemon.h>
18@@ -581,8 +585,31 @@ _dbus_user_at_console (const char *usern 18@@ -578,8 +582,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@@ -607,6 +634,7 @@ _dbus_user_at_console (const char *usern 50@@ -604,6 +631,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