Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 343265

Summary: dbus ebuild should contain dbus-uuidgen --ensure in postinst
Product: Gentoo Linux Reporter: M. B. <tomboy64>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description M. B. 2010-10-29 15:38:18 UTC
Upon setup of new systems i usually run into an XServer failing to start, complaining about a missing dbus UUID. Running dbus-uuidgen --ensure solves this. 

From its manpage:
#The primary usage of dbus-uuidgen is to run in the post-install script of a D-Bus package like this:
  dbus-uuidgen --ensure

This will ensure that /var/lib/dbus/machine-id exists and has the uuid in it. It won't overwrite an existing uuid, since this id should remain fixed for a single machine until the next reboot at least.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-11-02 20:45:40 UTC
It does.

dbus-1.2.24-r2.ebuild:	dbus-uuidgen --ensure="${ROOT}"/var/lib/dbus/machine-id
dbus-1.4.0.ebuild:	dbus-uuidgen --ensure="${ROOT}"/var/lib/dbus/machine-id

Stabilization in bug 343323