The package dbus is currently masked, because the init script is not working. This is because the config file(/etc/dbus-1/system.conf) tries to run the daemon as user "messagebus". This user doesn't exist, because the ebuild doesn't create it. See line 17-18 of the config-file: <!-- Run as special user --> <user>messagebus</user> If you place "root" instead of "messagebus", the daemon starts as expected. A general solution would be to let the ebuild create the user "messagebus" Reproducible: Always Steps to Reproduce: Problem: 1. remove dbus from /usr/portage/profiles/package.mask 2. emerge dbus 3. /etc/init.d/dbus start 4. ps -A 5. find that dbus-daemon-1 is not in the list Solution: 1. edit /etc/dbus-1/system.conf 2. change "<user>messagebus</user>" to <user>root</user> 3. /etc/init.d/dbus start 4. ps -A 5. find that dbus-daemon-1 IS in the list
The other alternative is to add the messagebus user in the ebuild. I've got a patch against dbus-0.21.ebuild to do that.
Created attachment 32326 [details, diff] Patch to ebuild to add messagebus user.
I know why it is not working, i just haven't had the time to fix it and it is no priority. It's in p.mask for exactly that reason, so i wonder why you put it as a blocker. In p.mask means : KNOWN NOT WORKING. And your general direction is ofcourse right, but still implemented in a non Gentoo-ish way.
Created attachment 33300 [details, diff] Patch to add messagebus user in the gentoo way Patch to add messagebus user in the gentoo way
Even with the patch( to add the messagebus user) added I still get this error: Failed to start message bus: Failed to bind socket "/var/lib/dbus/system_bus_socket": No such file or directory Should the ebuild create this "file"? or is it part of devfs? I am currently useing udev.
ok added a fix to add user/group (this should be done preinst btw). @redog : afaik it should be created on the fly if it isn't there Please test, i'll leave it in p.mask this version at least.