Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343265 - dbus ebuild should contain dbus-uuidgen --ensure in postinst
Summary: dbus ebuild should contain dbus-uuidgen --ensure in postinst
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-29 15:38 UTC by M. B.
Modified: 2010-11-02 20:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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