Patchwork [3/4] gnu: extra-cmake-modules: Always install into /lib and not into /lib64.

login
register
mail settings
Submitter Hartmut Goebel
Date Nov. 28, 2016, 10:20 p.m.
Message ID <1480371612-23822-4-git-send-email-h.goebel@crazy-compilers.com>
Download mbox | patch
Permalink /patch/18019/
State New
Headers show

Comments

Hartmut Goebel - Nov. 28, 2016, 10:20 p.m.
* gnu/packages/kde-frameworks.scm (extra-cmake-modules)[phases]:
  New phase fix-lib-path.
---
 gnu/packages/kde-frameworks.scm | 5 +++++
 1 file changed, 5 insertions(+)
Ludovic Court├Ęs - Nov. 29, 2016, 3:17 p.m.
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:

> * gnu/packages/kde-frameworks.scm (extra-cmake-modules)[phases]:
>   New phase fix-lib-path.

LGTM!

Patch

diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index 6109436..415b54d 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -71,6 +71,11 @@ 
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'fix-lib-path
+           (lambda _
+             ;; Always install into /lib and not into /lib64.
+             (substitute* "kde-modules/KDEInstallDirs.cmake"
+               (("\"lib64\"") "\"lib\""))))
          ;; install and check phase are swapped to prevent install from failing
          ;; after testsuire has run
          (add-after 'install 'check-post-install