[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
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257977

            Bug ID: 257977
           Summary: devel/glib20: unbreak machine-id lookup after 2.68
                    update
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: regression
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: desktop_at_FreeBSD.org
          Reporter: jbeich_at_FreeBSD.org
             Flags: maintainer-feedback?(desktop_at_FreeBSD.org)
          Assignee: desktop_at_FreeBSD.org

Created attachment 227350
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=227350&action=edit
v1

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Sat Aug 21 2021 - 03:28:40 UTC

Original text of this message