Bug 219058 - devel/dbus: missing /var/db/dbus/machine-id
Summary: devel/dbus: missing /var/db/dbus/machine-id
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
: 219056 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-05-04 04:43 UTC by guxianjie
Modified: 2017-06-09 09:37 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description guxianjie 2017-05-04 04:43:51 UTC
pkg info dbus
dbus-1.10.14_2
Name           : dbus
Version        : 1.10.14_2
Installed on   : Tue May  2 20:00:40 2017 CST
Origin         : devel/dbus
Architecture   : FreeBSD:11:amd64
Prefix         : /usr/local
Categories     : gnome devel
Licenses       : GPLv2
Maintainer     : gnome@FreeBSD.org
WWW            : http://www.freedesktop.org/Software/dbus
Comment        : Message bus system for inter-application communication

When i try to run gnome-terminal, I get error like this "
Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: 无法在无机器 ID 时启动一条消息总线:无法加载 /var/db/dbus/machine-id 和 /etc/machine-id:打开文件“/var/db/dbus/machine-id”失败:文件或目录不存在
"
I notice  dbus_poststop() in /usr/local/etc/rc.d/dbus run like this "
    rm -f $pidfile
# The following two lines may be removed after 2018-01-01
    rm -f /var/db/dbus/machine-id
    [ ! -d /var/db/dbus ] || rmdir /var/db/dbus
"
so I think it's better to add "
    mkdir -p  /var/db/dbus/
    /usr/local/bin/dbus-uuidgen > /var/db/dbus/machine-id
" in dbus_prestart()
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2017-05-04 05:45:13 UTC
*** Bug 219056 has been marked as a duplicate of this bug. ***
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2017-05-04 13:10:07 UTC
Can you try updating glib to glib-2.50.2_2,1?