maintainer-feedback requested: [Bug 257977] devel/glib20: unbreak machine-id lookup after 2.68 update

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 21 Aug 2021 03:28:40 +0000
Bugzilla Automation <bugzilla_at_FreeBSD.org> has asked freebsd-desktop (Team)
<desktop_at_FreeBSD.org> for maintainer-feedback:
Bug 257977: devel/glib20: unbreak machine-id lookup after 2.68 update
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257977



--- Description ---
Regressed by https://gitlab.gnome.org/GNOME/glib/-/commit/05ff2f877ca3. glib
bindings for dbus no longer work without /etc/machine-id symlink.

$ pkg install gtk4
$ service dbus onestart
$ cat /var/lib/dbus/machine-id
123456789012345678901234567890123
$ gtk4-demo
Gdk-Message: Failed to get file transfer portal: Cannot spawn a message bus
without a machine-id: Unable to load /var/local/lib/dbus/machine-id or
/etc/machine-id: Failed to open file “/var/local/lib/dbus/machine-id”: No such
file or directory
^C

$ pkg install squeekboard
$ squeekboard &
Can't connect to the bus: Cannot spawn a message bus without a machine-id:
Unable to load /var/local/lib/dbus/machine-id or /etc/machine-id: Failed to
open file “/var/local/lib/dbus/machine-id”: No such file or directory.
Visibility switching unavailable.
** (squeekboard:1234): WARNING **: Could not connect to session manager: Cannot
spawn a message bus without a machine-id: Unable to load
/var/local/lib/dbus/machine-id or /etc/machine-id: Failed to open file
“/var/local/lib/dbus/machine-id”: No such file or directory
$ gdbus call --session \
	     --dest=sm.puri.OSK0 \
	     --object-path=/sm/puri/OSK0 \
	     --method=sm.puri.OSK0.SetVisible \
	     true
Error connecting: Cannot spawn a message bus without a machine-id: Unable to
load /var/local/lib/dbus/machine-id or /etc/machine-id: Failed to open file
“/var/local/lib/dbus/machine-id”: No such file or directory
Received on Sat Aug 21 2021 - 03:28:40 UTC

Original text of this message