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

Bug 392681

Summary: sys-devel/distcc[avahi] init script needs to depend on dbus for zeroconf
Product: Gentoo Linux Reporter: Luke-Jr <luke-jr+gentoobugs>
Component: [OLD] Core systemAssignee: Gentoo Cluster Team <cluster>
Status: UNCONFIRMED ---    
Severity: normal CC: cluster
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Luke-Jr 2011-11-30 20:58:21 UTC
distcc needs dbus running for zeroconf support. Please be careful NOT to depend on the dbus service when zeroconf is not enabled...
Comment 1 Patrick McMunn 2014-04-07 04:26:24 UTC
It's not that distcc relies directly on dbus. Rather avahi relies on dbus and distcc relies on avahi for zeroconf support. Since the avahi-daemon service already requires the dbus service to start before avahi, the distccd daemon script should ensure that avahi is loaded - not dbus since avahi-daemon takes care of that.

The distccd init script currently contains the code

depend() {
        need net
        use avahi-daemon ypbind
}

The text "use avahi-daemon ypbind" can just be deleted if the avahi use flag is off. If the avahi use flag is on, the script can be changed to "need net avahi-daemon". I really have no idea why ypbind is mentioned. Unless someone else knows something I don't, I don't think this is necessary or useful.