Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 687110 - net-vpn/wireguard installs systemd units to /usr/lib/systemd on systemd-less system
Summary: net-vpn/wireguard installs systemd units to /usr/lib/systemd on systemd-less ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-01 03:08 UTC by Georgy Yakovlev
Modified: 2019-12-28 08:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
net-vpn-wireguard-explicitly-pass-SYSTEMDUNITDIR.patch (0002-net-vpn-wireguard-explicitly-pass-SYSTEMDUNITDIR.patch,6.89 KB, patch)
2019-06-01 03:11 UTC, Georgy Yakovlev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev archtester gentoo-dev 2019-06-01 03:08:40 UTC
tools makefile contains this line

SYSTEMDUNITDIR ?= $(shell $(PKG_CONFIG) --variable=systemdsystemunitdir systemd 2>/dev/null || echo "$(PREFIX)/lib/systemd/system")

so if pkg-config result is empty, units get installed to /usr/lib/systemd/system


in gentoo units are placed into /lib/systemd/system

we should use SYSTEMDUNITDIR="$(systemd_get_systemunitdir)"

since systemd_get_systemunitdir() from systemd.eclass always returns desired unit dir even on openrc systems.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2019-06-01 03:11:50 UTC
Created attachment 578238 [details, diff]
net-vpn-wireguard-explicitly-pass-SYSTEMDUNITDIR.patch
Comment 2 Larry the Git Cow gentoo-dev 2019-12-28 08:04:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ccb65feb4e240ee1d35406042f0c644b5e1f73d

commit 7ccb65feb4e240ee1d35406042f0c644b5e1f73d
Author:     Jason A. Donenfeld <zx2c4@gentoo.org>
AuthorDate: 2019-12-28 07:51:52 +0000
Commit:     Jason A. Donenfeld <zx2c4@gentoo.org>
CommitDate: 2019-12-28 08:04:13 +0000

    net-vpn/wireguard-tools: determine systemd unit directory properly
    
    Closes: https://bugs.gentoo.org/687110
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org>

 net-vpn/wireguard-tools/wireguard-tools-1.0.20191226.ebuild | 3 ++-
 net-vpn/wireguard-tools/wireguard-tools-9999.ebuild         | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)