Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556650 - net-dns/avahi-0.6.31-r8 is using /usr/$(get_libdir)/systemd/system
Summary: net-dns/avahi-0.6.31-r8 is using /usr/$(get_libdir)/systemd/system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: no-symlink-lib 554784
  Show dependency tree
 
Reported: 2015-08-04 10:24 UTC by Alexander Tsoy
Modified: 2015-08-05 07:17 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 Alexander Tsoy 2015-08-04 10:24:39 UTC
systemdsystemunitdir is "/usr/lib/systemd/system". So please use systemd_get_unitdir():

-    multilib_is_native_abi && dosym avahi-daemon.service /usr/$(get_libdir)/systemd/system/dbus-org.freedesktop.Avahi.service
+    multilib_is_native_abi && dosym avahi-daemon.service $(systemd_get_unitdir)/dbus-org.freedesktop.Avahi.service


From the build log:

 * QA Notice: Symbolic link /usr/lib64/systemd/system/dbus-org.freedesktop.Avahi.service points to /usr/lib64/systemd/system/avahi-daemon.service which does 
not exist.
>>> /usr/lib64/systemd/system/dbus-org.freedesktop.Avahi.service -> avahi-daemon.service


$ qlist avahi | grep systemd
/usr/lib/systemd/system/avahi-dnsconfd.service
/usr/lib/systemd/system/avahi-daemon.socket
/usr/lib/systemd/system/avahi-daemon.service
/usr/lib64/systemd/system/dbus-org.freedesktop.Avahi.service
Comment 1 Alexander Tsoy 2015-08-04 10:28:42 UTC
Forgot to mention: I'm using profile with SYMLINK_LIB=no LIBDIR_x86=lib
Comment 2 Anthony Basile gentoo-dev 2015-08-04 15:31:23 UTC
I don't use systemd and can't really test, so I don't want to just guess what change I'm supposed to make and then add it to an ebuild which is 1/2 way done to being stabilized across all arches.

Can you provide a tested patch.  Also, if I can get an ack from the systemd team I'll add it.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-08-04 15:48:39 UTC
His +/- one-liner is just fine :P. I'll test it and commit for you.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-08-04 16:13:51 UTC
+  04 Aug 2015; Michał Górny <mgorny@gentoo.org> avahi-0.6.31-r8.ebuild:
+  Fix systemd service install directory, bug #556650 by Alexander Tsoy.

Feel free to revbump if you consdier the change important enough.
Comment 5 Anthony Basile gentoo-dev 2015-08-04 16:45:31 UTC
(In reply to Michał Górny from comment #4)
> +  04 Aug 2015; Michał Górny <mgorny@gentoo.org> avahi-0.6.31-r8.ebuild:
> +  Fix systemd service install directory, bug #556650 by Alexander Tsoy.
> 
> Feel free to revbump if you consdier the change important enough.

No rev bump which is why I wanted to be careful with this.
Comment 6 Pacho Ramos gentoo-dev 2015-08-04 18:59:45 UTC
I am surprised how I didn't miss the QA warning (and, also, the link is alive in my case). But thanks for catching it!
Comment 7 Alexander Tsoy 2015-08-05 07:17:30 UTC
(In reply to Pacho Ramos from comment #6)
As I mentioned in Comment #1, I have SYMLINK_LIB=no LIBDIR_x86=lib in my profile, thus I don't have /usr/lib -> /usr/lib64 symlink.