Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 634650 - net-vpn/tinc-1.1_pre15 install systemd-service files into /usr when systemd root prefix is /
Summary: net-vpn/tinc-1.1_pre15 install systemd-service files into /usr when systemd r...
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: 625954
  Show dependency tree
 
Reported: 2017-10-18 16:23 UTC by Christian Bricart
Modified: 2017-11-27 17:28 UTC (History)
1 user (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 Christian Bricart 2017-10-18 16:23:34 UTC
the ebuild explicitly calls configure as:
..
  --with-systemd=/usr/$(get_libdir)/systemd/system
..

which obviously causes systemd-service files to be installed into /usr/lib/systemd/system

Fix is trivial by omitting the path override:
..
  --with-systemd
..
(alas this easy fix will break tinc with "legacy" <sys-apps/systemd-234 ..)



Blocks: #625954



Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2017-10-18 17:16:38 UTC
/usr/$(get_libdir)/systemd/system is wrong already: the get_libdir call will return "lib64" on amd64, whereas the units should end up in "lib".

I suggest updating this to:

inherit systemd

--with-systemd="$(systemd_get_systemunitdir)"
Comment 2 Pacho Ramos gentoo-dev 2017-11-27 17:28:31 UTC
[master a25c68784d7] net-vpn/tinc: Fix systemd units installation to not hardcode paths (#634650 by Mike Gilbert)
 2 files changed, 3 insertions(+), 3 deletions(-)