Opened 4 months ago

Closed 4 months ago

#20812 closed enhancement (fixed)

dbus-1.16.0 (Wait for lfs)

Reported by: Bruce Dubbs Owned by: Douglas R. Reno
Priority: normal Milestone: 12.3
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

New minor version.

Change History (6)

comment:1 by Xi Ruoyao, 4 months ago

Build system and dependencies:

  • The Meson build system is the recommended way to build dbus on Unix. This requires Meson 0.56 and Python 3.5.
    • Projects that depend on libdbus can build it as a Meson subproject. See tests/use-as-subproject/meson.build for suggested build options.
  • CMake continues to be available as an alternative build system, and is recommended on Windows. This requires CMake 3.10.
  • A C99 compiler such as gcc, clang, or Visual Studio 2015 is required. A C11 compiler such as gcc, clang, or Visual Studio 2019 is recommended.
  • On platforms with larger-than-64-bit pointers, a C11 compiler is required

Behaviour changes:

  • On Unix, the well-known system bus socket is in the runtime state directory by default (normally /run) (see 1.15.4 for more details)
  • On Linux with systemd, dbus-daemon starts as the target user/group (retaining CAP_AUDIT_WRITE) instead of starting as root and dropping privileges

Feature removals:

  • Autotools build system
  • pam_console/pam_foreground integration (Autotools --with-console-auth, CMake -DDBUS_CONSOLE_AUTH_DIR)

New features and significant bug fixes:

  • ProcessFD in GetConnectionCredentials() on Linux (see 1.15.8 for more details)
  • On Unix, the system message bus now loads .service files from /etc and /run
  • Use close_range() to close unwanted file descriptors or mark them close-on-exec, if available
  • Use 64-bit timestamps internally on 32-bit platforms, for Y2038 safety
  • Use APIs that can return 64-bit timestamps and inode numbers on 32-bit glibc
  • AF_UNIX sockets are available on sufficiently recent Windows
  • dbus-send can send arrays of variants, variant values in dictionaries, and nested variants
  • Portability to CPU architectures with larger-than-64-bit pointers

comment:2 by Bruce Dubbs, 4 months ago

Summary: dbus-1.16.0dbus-1.16.0 (Wait for lfs)

comment:3 by Xi Ruoyao, 4 months ago

mkdir build
cd    build

# Most options we explicitly gave to "./configure" are not needed now
meson setup --prefix=/usr --buildtype=release ..

ninja
ninja test
sudo ninja install
sudo mv -v /usr/share/doc/dbus{,-1.16.0}

# if running unit tests, reconfigure the build after installation:
meson configure -D asserts=true -D intrusive_tests=true
ninja test

comment:4 by Xi Ruoyao, 4 months ago

Oh, we also need --wrap-mode=nofallback or it'll download a Glib copy for some tests, if Glib is not installed.

comment:5 by Douglas R. Reno, 4 months ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

comment:6 by Douglas R. Reno, 4 months ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.