aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qalculate-gtk/install-provider-to-libexecdir.patch
blob: 3822b0c2ec6b99e77713b853859df16aa9846c4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Patch-Source: https://github.com/Qalculate/qalculate-gtk/pull/351
From dffa7e480c31d6a83a3882c8f9278ef1c3aa5c5f Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Fri, 21 Jan 2022 01:56:03 +0100
Subject: [PATCH] Install search provider to libexecdir instead of libdir

See https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s07.html
and https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
---
 src/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 14592f80..7e9acbd3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,7 +12,7 @@ AM_CPPFLAGS = \
 	@QALCULATE_CFLAGS@
 
 if ENABLE_SEARCH_PROVIDER
-searchproviderdir=@libdir@
+searchproviderdir=@libexecdir@
 searchprovider_PROGRAMS = qalculate-search-provider
 endif
 bin_PROGRAMS = @QALCULATE_GTK@
@@ -70,7 +70,7 @@ dbusservice_DATA = io.github.Qalculate.SearchProvider.service
 io.github.Qalculate.SearchProvider.service: Makefile
 	$(AM_V_GEN) (echo '[D-BUS Service]'; \
 		echo 'Name=io.github.Qalculate.SearchProvider'; \
-		echo 'Exec=@libdir@/qalculate-search-provider') > $@.tmp && \
+		echo 'Exec=@libexecdir@/qalculate-search-provider') > $@.tmp && \
 		mv $@.tmp $@
 
 endif