Subject: [bug#64798] [PATCH] gnu: extra-cmake-modules: Fix libexec path.

From: Sughosha <[email-masked]>
Date: Wed, 16 Aug 2023 13:04:26 +0200

* gnu/packages/kde-frameworks.scm (extra-cmake-modules)[#:phases]:
Fix libexec path.
---
 gnu/packages/kde-frameworks.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 9778d9a1c6..ec7b5c041b 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -126,11 +126,13 @@ (define-public extra-cmake-modules
                     (not (null? (package-native-inputs this-package))))
       #:phases
       #~(modify-phases %standard-phases
-          (add-after 'unpack 'fix-lib-path
+          (add-after 'unpack 'fix-lib-and-libexec-path
             (lambda _
-              ;; Always install into /lib and not into /lib64.
               (substitute* "kde-modules/KDEInstallDirsCommon.cmake"
-                (("\"lib64\"") "\"lib\""))
+                ;; Always install into /lib and not into /lib64.
+                (("\"lib64\"") "\"lib\"")
+                ;; Install into /libexec and not into /lib/libexec.
+                (("LIBDIR \"libexec\"") "EXECROOTDIR \"libexec\""))
 
               ;; Determine the install path by the major version of Qt.
               ;; TODO: Base the following on values taken from Qt

base-commit: 461602d07c8da0e29bae392270f4ef3fd4f7fffb
-- 
2.41.0