Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537000 - net-dns/avahi-0.6.31-r6 should set a symlink /usr/lib/systemd/system/dbus-org.freedesktop.Avahi.service -> avahi-daemon.service
Summary: net-dns/avahi-0.6.31-r6 should set a symlink /usr/lib/systemd/system/dbus-org...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL: https://bugs.archlinux.org/task/42638
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-18 20:47 UTC by Łukasz Stelmach
Modified: 2015-12-09 12:31 UTC (History)
2 users (show)

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 Łukasz Stelmach 2015-01-18 20:47:08 UTC
A symlink from avahi-daemon.service to dbus-org.freedesktop.Avahi.service in /usr/lib/systemd/system is missing. systemd is unable to start the service when a request for Avahi is sent over DBus.

Please see the Arch bug for details.

Creating the link helps.

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2015-04-12 11:03:29 UTC
I confirm this, Arch fixed it some time ago creating the link manually:
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/avahi
Comment 2 Pacho Ramos gentoo-dev 2015-07-13 18:57:35 UTC
+*avahi-0.6.31-r8 (13 Jul 2015)
+
+  13 Jul 2015; Pacho Ramos <pacho@gentoo.org> +avahi-0.6.31-r8.ebuild,
+  metadata.xml:
+  Add symlink needed for starting avahi properly on systemd (#537000)
+
Comment 3 Alexander Tsoy 2015-08-05 06:58:35 UTC
(In reply to Łukasz Stelmach from comment #0)
> A symlink from avahi-daemon.service to dbus-org.freedesktop.Avahi.service in
> /usr/lib/systemd/system is missing. systemd is unable to start the service
> when a request for Avahi is sent over DBus.

If you want Avahi to be activated via dbus, just enable avahi-daemon.service and necessary symlink will be created in /etc/systemd/system. If avahi-daemon.service is not enabled, then Avahi will not be started at all. I think this upstream behaviour is expected behaviour and ebuild should not manually create symlink in /usr/lib/systemd/system.

$ grep Alias /usr/lib/systemd/system/avahi-daemon.service 
Alias=dbus-org.freedesktop.Avahi.service
$ sudo systemctl reenable avahi-daemon.service 
Removed symlink /etc/systemd/system/multi-user.target.wants/avahi-daemon.service.
Removed symlink /etc/systemd/system/sockets.target.wants/avahi-daemon.socket.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.Avahi.service.
Created symlink from /etc/systemd/system/dbus-org.freedesktop.Avahi.service to /usr/lib/systemd/system/avahi-daemon.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/avahi-daemon.service to /usr/lib/systemd/system/avahi-daemon.service.
Created symlink from /etc/systemd/system/sockets.target.wants/avahi-daemon.socket to /usr/lib/systemd/system/avahi-daemon.socket.
Comment 4 Anthony Basile gentoo-dev 2015-12-09 12:31:08 UTC
I have reverted the sym link because of bug #567798.  Please wait for my ack before committing changes as I'd like to keep up with what is happening to avahi.