aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qalculate-gtk/install-provider-to-libexecdir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/qalculate-gtk/install-provider-to-libexecdir.patch')
-rw-r--r--testing/qalculate-gtk/install-provider-to-libexecdir.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/qalculate-gtk/install-provider-to-libexecdir.patch b/testing/qalculate-gtk/install-provider-to-libexecdir.patch
new file mode 100644
index 0000000000..3822b0c2ec
--- /dev/null
+++ b/testing/qalculate-gtk/install-provider-to-libexecdir.patch
@@ -0,0 +1,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