guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/05: gnu: kpackage: Fix build errors in dependent packages.


From: guix-commits
Subject: 03/05: gnu: kpackage: Fix build errors in dependent packages.
Date: Tue, 27 Oct 2020 15:14:26 -0400 (EDT)

htgoebel pushed a commit to branch master
in repository guix.

commit b4941e30e3a01a11bf0eac6fd1c68aa33b06aaf8
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Sun Oct 25 21:29:52 2020 +0100

    gnu: kpackage: Fix build errors in dependent packages.
    
    Fix build errors in dependent packages if PREFIX is different from ECM's
    PREFIX - which is the case in Guix.  See <https://bugs.kde.org/424483> for
    details.
    
    * gnu/packages/patches/plasma-framework-fix-KF5PackageMacros.cmake.patch: 
New
      file.
    * gnu/local.mk (dist_patch_DATA) Add it.
    * packages/kde-frameworks.scm (package)[source]: Use this patch.
---
 gnu/local.mk                                       |  1 +
 gnu/packages/kde-frameworks.scm                    |  3 ++-
 .../kpackage-fix-KF5PackageMacros.cmake.patch      | 25 ++++++++++++++++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/gnu/local.mk b/gnu/local.mk
index 4e425a3..21dbf3d 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1197,6 +1197,7 @@ dist_patch_DATA =                                         
\
   %D%/packages/patches/kmod-module-directory.patch             \
   %D%/packages/patches/kmscon-runtime-keymap-switch.patch      \
   %D%/packages/patches/kpackage-allow-external-paths.patch     \
+  %D%/packages/patches/kpackage-fix-KF5PackageMacros.cmake.patch \
   %D%/packages/patches/kmplayer-aarch64.patch                  \
   %D%/packages/patches/kmplayer-upstream_Fix-build-with-Qt-5.9.patch   \
   %D%/packages/patches/kobodeluxe-paths.patch                  \
diff --git a/gnu/packages/kde-frameworks.scm b/gnu/packages/kde-frameworks.scm
index cbcb8ff..febdb1f 100644
--- a/gnu/packages/kde-frameworks.scm
+++ b/gnu/packages/kde-frameworks.scm
@@ -1963,7 +1963,8 @@ covers feedback and persistent events.")
                 "03rp7p7i8ihz5wg58gjs638jk7xbszknfiy2j3r979snc57g95mv"))
               ;; Default to: external paths/symlinks can be followed by a
               ;; package
-              (patches (search-patches 
"kpackage-allow-external-paths.patch"))))
+              (patches (search-patches "kpackage-allow-external-paths.patch"
+                                       
"kpackage-fix-KF5PackageMacros.cmake.patch"))))
     (build-system cmake-build-system)
     (native-inputs
      `(("extra-cmake-modules" ,extra-cmake-modules)))
diff --git a/gnu/packages/patches/kpackage-fix-KF5PackageMacros.cmake.patch 
b/gnu/packages/patches/kpackage-fix-KF5PackageMacros.cmake.patch
new file mode 100644
index 0000000..d677f19
--- /dev/null
+++ b/gnu/packages/patches/kpackage-fix-KF5PackageMacros.cmake.patch
@@ -0,0 +1,25 @@
+From 668010ebc9fd84d9dc60f90b9a4ebf3c7054977f Mon Sep 17 00:00:00 2001
+From: Hartmut Goebel <h.goebel@crazy-compilers.com>
+Date: Sun, 25 Oct 2020 20:11:13 +0000
+Subject: [PATCH] Fix build errors if PREFIX is different from ECM's PREFIX.
+
+See <https://bugs.kde.org/424483> for details.
+---
+ KF5PackageMacros.cmake | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/KF5PackageMacros.cmake b/KF5PackageMacros.cmake
+index f4c1d1d..acd3798 100644
+--- a/KF5PackageMacros.cmake
++++ b/KF5PackageMacros.cmake
+@@ -1,6 +1,5 @@
+ 
+-find_package(ECM 1.6.0 CONFIG REQUIRED)
+-include(${ECM_KDE_MODULE_DIR}/KDEInstallDirs.cmake)
++include(KDEInstallDirs)
+ 
+ set(KPACKAGE_RELATIVE_DATA_INSTALL_DIR "kpackage")
+ 
+-- 
+GitLab
+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]