summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/corectrl-locate-polkit-with-pkg-config.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/patches/corectrl-locate-polkit-with-pkg-config.patch')
-rw-r--r--gnu/packages/patches/corectrl-locate-polkit-with-pkg-config.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/patches/corectrl-locate-polkit-with-pkg-config.patch b/gnu/packages/patches/corectrl-locate-polkit-with-pkg-config.patch
new file mode 100644
index 0000000000..4025df4b88
--- /dev/null
+++ b/gnu/packages/patches/corectrl-locate-polkit-with-pkg-config.patch
@@ -0,0 +1,16 @@
+See https://gitlab.com/corectrl/corectrl/-/issues/493
+
+diff --git a/src/helper/CMakeLists.txt b/src/helper/CMakeLists.txt
+index 38deb12..7bbaa81 100644
+--- a/src/helper/CMakeLists.txt
++++ b/src/helper/CMakeLists.txt
+@@ -27,8 +27,8 @@ message("D-Bus files will be installed into ${DBUS_DATADIR_PREFIX_DIR}/dbus-1")
+ option(POLKIT_POLICY_INSTALL_DIR "Polkit policy files installation directory" OFF)
+
+ # Find polkit
++pkg_check_modules(POLKIT REQUIRED polkit-gobject-1)
+ if(NOT POLKIT_POLICY_INSTALL_DIR)
+- pkg_check_modules(POLKIT REQUIRED polkit-gobject-1)
+ execute_process(
+ COMMAND pkg-config --variable=policydir polkit-gobject-1
+ RESULT_VARIABLE POLKIT_POLICY_INSTALL_DIR_RESULT