Peter Oliver 6cb8c4
From a56539c1d7ef7aa56e575685bdfe1406aebb518d Mon Sep 17 00:00:00 2001
Peter Oliver 6cb8c4
From: Peter Oliver <git@mavit.org.uk>
Peter Oliver 6cb8c4
Date: Wed, 5 Feb 2020 12:42:04 +0000
Peter Oliver 6cb8c4
Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20assemble=20systemdunitdir=20fro?=
Peter Oliver 6cb8c4
 =?UTF-8?q?m=20`libdir`?=
Peter Oliver 6cb8c4
MIME-Version: 1.0
Peter Oliver 6cb8c4
Content-Type: text/plain; charset=UTF-8
Peter Oliver 6cb8c4
Content-Transfer-Encoding: 8bit
Peter Oliver 6cb8c4
Peter Oliver 6cb8c4
On 64 bit Fedora, `libdir` is `/usr/lib64`, whereas systemd services
Peter Oliver 6cb8c4
live under `/usr/lib/systemd`.
Peter Oliver 6cb8c4
---
Peter Oliver 6cb8c4
 Makefile.in | 2 +-
Peter Oliver 6cb8c4
 1 file changed, 1 insertion(+), 1 deletion(-)
Peter Oliver 6cb8c4
Peter Oliver 6cb8c4
diff --git a/Makefile.in b/Makefile.in
Peter Oliver 6cb8c4
index 2c82c49fba..b2468eb824 100644
Peter Oliver 6cb8c4
--- a/Makefile.in
Peter Oliver 6cb8c4
+++ b/Makefile.in
Peter Oliver 6cb8c4
@@ -208,7 +208,7 @@ appdatadir=
Peter Oliver 6cb8c4
 # Other options include ~/.config/systemd/user/,
Peter Oliver 6cb8c4
 # $XDG_RUNTIME_DIR/systemd/user/
Peter Oliver 6cb8c4
 # It seems the user may end up having to make a manual link...
Peter Oliver 6cb8c4
-systemdunitdir=$(libdir)/systemd/user
Peter Oliver 6cb8c4
+systemdunitdir=$(shell pkg-config --variable=systemduserunitdir systemd)
Peter Oliver 6cb8c4
 
Peter Oliver 6cb8c4
 # Where the etc/images/icons/hicolor directory is to be installed.
Peter Oliver 6cb8c4
 icondir=$(datarootdir)/icons
Peter Oliver 6cb8c4
-- 
Peter Oliver 6cb8c4
2.24.1
Peter Oliver 6cb8c4