Date: Wed, 04 Mar 2009 10:13:51 +0100 From: Ralf Wenk <IZ-FreeBSD0902-nospam@hs-karlsruhe.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/132304: ports/devel/dbus misses /var/db/dbus/machine-id in diskless environment Message-ID: <E1LenAl-00018x-6F@RZ-Wenk1.HS-Karlsruhe.DE> Resent-Message-ID: <200903040920.n249K1ak015977@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132304 >Category: ports >Synopsis: ports/devel/dbus misses /var/db/dbus/machine-id in diskless environment >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 04 09:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ralf Wenk >Release: FreeBSD 7.1-STABLE i386 >Organization: Hochschule Karlsruhe Technik und Wirtschaft - University of Applied Sciences >Environment: System: FreeBSD RZ-Wenk1 7.1-STABLE FreeBSD 7.1-STABLE #15: Tue Mar 3 11:49:05 CET 2009 root@RZ-FreeBSD1:/usr/obj/usr/src/sys/fsc-t-diskless i386 Ports last updated at 2009-03-03 09:29 CET. >Description: Searching why firefox 2 stops working after a big portupgrade (up from 2009017) with the message: process 946: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/db/dbus/machine-id": No such file or directory See the manual page for dbus-uuidgen to correct this issue. D-Bus not compiled with backtrace support so unable to print a backtrace I found that this file ist generated by dbus-uuidgen during the execution of pkg-install in ports/devel/dbus. For our diskless machines /var is set up by /etc/rc.d/var which results in a non existing directory /var/db/dbus. Fixed that there is no automatically setup for /var/db/dbus/machine-id as dbus-uuidgen is only executed during pkg-install. >How-To-Repeat: See the code from /etc/rc.d/var, ports/devel/dbus/pkg-install and /usr/local/etc/rc.d/dbus. Or set up a diskless machine and look into /var/db. >Fix: I think the easiest way should be to add code to /usr/local/etc/rc.d/dbus to make the directory and than call dbus-uuidgen --ensure. This will not fix applications using dbus methods if dbus is not running. To fix that, and possible other diskless setup problems with ports, it may be neccessary to install a "/usr/local/etc/rc.d/diskless" which handles that. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1LenAl-00018x-6F>