ports/132304: ports/devel/dbus misses /var/db/dbus/machine-id in diskless environment

Ralf Wenk IZ-FreeBSD0902-nospam at hs-karlsruhe.de
Wed Mar 4 09:20:02 UTC 2009


>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 at 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:



More information about the freebsd-ports-bugs mailing list