From owner-freebsd-gnome@FreeBSD.ORG Thu Jun 2 21:22:49 2011 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AAAF106564A for ; Thu, 2 Jun 2011 21:22:49 +0000 (UTC) (envelope-from varga.michal@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 066038FC12 for ; Thu, 2 Jun 2011 21:22:48 +0000 (UTC) Received: by bwz12 with SMTP id 12so1945272bwz.13 for ; Thu, 02 Jun 2011 14:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:content-type:organization:date :message-id:mime-version:x-mailer:content-transfer-encoding; bh=CnkmPvdgoTOdPaPt4eQuRnyK2zIzcs/mYUtkh3gHpmA=; b=xYmYpWOHF6YmN+gL0+DZ3KIw8UD3CNwfyWxVlqe46L37yG65exMklfJvn1CLC9o+YC fJZ5iC01gkAiOQYC/Q+4CX6DGhzrDxKj74dNMg1MotQ/H8Bjfhqgjqe9D/ISnDevvHyi jtU4W/MoyYURMxRDniJouUdwI1Ycrri7N2xDM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=OCEjJlBbGyVJtahNpmA5Rn1hY5ZkvHi3BNnLDg1Cacx1/vW+EuzoB2d+A041NegemB sQZzQkpxMcaz268QShwNxEIJjFu/NtIa/JCPKKeKfZd7TXFhYtL41Fyj4RZu6jfvgK7m rZa10f42t4iJ5uFe5lVic8rkj2myhUsW6IH2s= Received: by 10.204.26.200 with SMTP id f8mr220453bkc.99.1307049767857; Thu, 02 Jun 2011 14:22:47 -0700 (PDT) Received: from [10.0.101.2] (254.166.broadband10.iol.cz [90.177.166.254]) by mx.google.com with ESMTPS id k10sm779329bkq.10.2011.06.02.14.22.45 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Jun 2011 14:22:46 -0700 (PDT) From: Michal Varga To: gnome@freebsd.org Content-Type: text/plain; charset="UTF-8" Organization: Stonehenge Date: Thu, 02 Jun 2011 23:22:44 +0200 Message-ID: <1307049764.24710.13.camel@xenon> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Subject: [PATCH] dbus-1.4.6 rc script missing full path to dbus-uuidgen X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2011 21:22:49 -0000 Hi, our "/usr/local/etc/rc.d/dbus" is missing a proper path to "dbus-uuidgen", which renders it unable to generate a machine id upon startup, which in turn breaks (at least) ConsoleKit authorizations further inside user's session. This might have been responsible for a few bug reports in the past, namely those "shutdown buttons are missing from my gnome", as being unable to communicate with ConsoleKit turns into one of those symptoms. Anyway, the fix is trivial, reproduction steps and patch included: # rm -fv /var/db/dbus/machine-id /var/db/dbus/machine-id # shutdown -r now Resulting dmesg: [...snip...] Starting syslogd. Clearing /tmp. Starting openntpd. dbus-uuidgen: not found Starting dbus. Starting hald. Let's patch our rc: --- /usr/local/etc/rc.d/dbus 2011-05-29 18:57:43.000000000 +0200 +++ /usr/local/etc/rc.d/dbus.new 2011-06-02 22:58:30.000000000 +0200 @@ -31,7 +31,7 @@ mkdir -p /var/db/dbus fi if [ ! -f /var/db/dbus/machine-id ]; then - dbus-uuidgen > /var/db/dbus/machine-id + /usr/local/bin/dbus-uuidgen > /var/db/dbus/machine-id fi mkdir -p $(dirname $pidfile) And try it again: # shutdown -r now Resulting dmesg: [...snip...] Starting syslogd. Clearing /tmp. Starting openntpd. Starting dbus. Starting hald. # ls -l /var/db/dbus/machine-id -rw-r--r-- 1 root wheel 33 Jun 2 23:01 /var/db/dbus/machine-id m. -- Michal Varga, Stonehenge (Gmail account)