Subject: [PATCH 1/4] gnu: kpmcore: Fix polkit action path.

From: Sughosha <[email-masked]>
Date: Sun, 12 Jan 2025 04:45:21 +0530

* gnu/packages/kde.scm (kpmcore)[arguments]<#:phases>: Replace
fix-cmake-install-directories with fix-polkit-action-path.

Change-Id: I2d230d78b1dbf423b431e14f290c372efa9c1a45
---
 gnu/packages/kde.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 62e43c6afd..ce64619feb 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -1281,11 +1281,13 @@ (define-public kpmcore
      (list
       #:phases
       #~(modify-phases %standard-phases
-          (add-after 'unpack 'fix-cmake-install-directories
+          (add-after 'unpack 'fix-polkit-action-path
             (lambda _
               (substitute* "src/util/CMakeLists.txt"
                 (("DESTINATION \\$\\{POLKITQT-1_POLICY_FILES_INSTALL_DIR\\}")
-                 "DESTINATION share/polkit-1/actions")))))))
+                 "DESTINATION share/polkit-1/actions"))
+              (substitute* "src/backend/corebackend.cpp"
+                  (("\\/usr") #$output)))))))
     (home-page "https://community.kde.org/Frameworks")
     (synopsis "Library for managing partitions")
     (description "Library for managing partitions.")
-- 
2.47.1