From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 4 09:20:01 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9F2D106566C for ; Wed, 4 Mar 2009 09:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C1D278FC1D for ; Wed, 4 Mar 2009 09:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n249K1dA015978 for ; Wed, 4 Mar 2009 09:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n249K1ak015977; Wed, 4 Mar 2009 09:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 4 Mar 2009 09:20:01 GMT Resent-Message-Id: <200903040920.n249K1ak015977@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ralf Wenk Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18FCE106566B for ; Wed, 4 Mar 2009 09:14:02 +0000 (UTC) (envelope-from wera0003@hs-karlsruhe.de) Received: from rz06.hs-karlsruhe.de (rz06.HS-Karlsruhe.DE [193.196.64.6]) by mx1.freebsd.org (Postfix) with ESMTP id A21778FC08 for ; Wed, 4 Mar 2009 09:14:01 +0000 (UTC) (envelope-from wera0003@hs-karlsruhe.de) Received: from rz-wenk1.hs-karlsruhe.de ([193.196.65.46]) by rz06.hs-karlsruhe.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1LenAt-000CX0-VB for FreeBSD-gnats-submit@freebsd.org; Wed, 04 Mar 2009 10:14:00 +0100 Received: from wera0003 by RZ-Wenk1.HS-Karlsruhe.DE with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1LenAl-00018x-6F for FreeBSD-gnats-submit@freebsd.org; Wed, 04 Mar 2009 10:13:51 +0100 Message-Id: Date: Wed, 04 Mar 2009 10:13:51 +0100 From: Ralf Wenk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/132304: ports/devel/dbus misses /var/db/dbus/machine-id in diskless environment X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ralf Wenk List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2009 09:20:02 -0000 >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: