[arch-commits] Commit in cmake/trunk (PKGBUILD kdelibs-4.14.11.patch)
Antonio Rojas
arojas at archlinux.org
Thu Aug 20 14:46:01 UTC 2015
Date: Thursday, August 20, 2015 @ 16:46:01
Author: arojas
Revision: 244438
Fix build of KDE4 applications with kdelibs 4.14.11
Added:
cmake/trunk/kdelibs-4.14.11.patch
Modified:
cmake/trunk/PKGBUILD
-----------------------+
PKGBUILD | 10 +++++++---
kdelibs-4.14.11.patch | 40 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-08-20 14:30:26 UTC (rev 244437)
+++ PKGBUILD 2015-08-20 14:46:01 UTC (rev 244438)
@@ -5,7 +5,7 @@
pkgname=cmake
pkgver=3.3.1
-pkgrel=1
+pkgrel=2
pkgdesc='A cross-platform open-source make system'
arch=('i686' 'x86_64')
url="http://www.cmake.org/"
@@ -15,11 +15,15 @@
optdepends=('qt5-base: cmake-gui'
'libxkbcommon-x11: cmake-gui')
install="${pkgname}.install"
-source=("http://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz")
-md5sums=('52638576f4e1e621fed6c3410d3a1b12')
+source=("http://www.cmake.org/files/v${pkgver%.*}/${pkgname}-${pkgver}.tar.gz" 'kdelibs-4.14.11.patch')
+md5sums=('52638576f4e1e621fed6c3410d3a1b12'
+ '1eeec67ab4bff6d92430d52acdbde142')
prepare() {
cd ${pkgname}-${pkgver}
+
+# fix build of KDE4 applications with kdelibs 4.14.11 http://www.cmake.org/gitweb?p=cmake.git;a=commit;h=b9ec9392da21a3421e48c6961976060d872faffb
+ patch -p1 -i ../kdelibs-4.14.11.patch
}
build() {
Added: kdelibs-4.14.11.patch
===================================================================
--- kdelibs-4.14.11.patch (rev 0)
+++ kdelibs-4.14.11.patch 2015-08-20 14:46:01 UTC (rev 244438)
@@ -0,0 +1,40 @@
+From b9ec9392da21a3421e48c6961976060d872faffb Mon Sep 17 00:00:00 2001
+From: Rolf Eike Beer <eike at sf-mail.de>
+Date: Tue, 18 Aug 2015 12:14:43 +0200
+Subject: [PATCH 1/1] FindPkgConfig: remove variable dereference
+
+If CMAKE_MINIMUM_REQUIRED_VERSION is not set because no
+cmake_minimum_required() call is present this line can lead to an error as that
+string is empty so too few arguments are passed to if():
+
+See also "/var/tmp/paludis/build/kde-krdc-15.08.0/work/build/CMakeFiles/CMakeOutput.log".
+See also "/var/tmp/paludis/build/kde-krdc-15.08.0/work/build/CMakeFiles/CMakeError.log".
+CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:112 (elseif):
+ given arguments:
+
+ "VERSION_LESS" "3.1"
+
+ Unknown arguments specified
+Call Stack (most recent call first):
+ /usr/share/cmake/Modules/FindPkgConfig.cmake:501 (_pkgconfig_parse_options)
+ /usr/share/cmake/Modules/FindOpenSSL.cmake:43 (pkg_check_modules)
+---
+ Modules/FindPkgConfig.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake
+index 526a62e..ae6903e 100644
+--- a/Modules/FindPkgConfig.cmake
++++ b/Modules/FindPkgConfig.cmake
+@@ -109,7 +109,7 @@ macro(_pkgconfig_parse_options _result _is_req _is_silent _no_cmake_path _no_cma
+ set(${_no_cmake_path} 1)
+ set(${_no_cmake_environment_path} 1)
+ endif()
+- elseif(${CMAKE_MINIMUM_REQUIRED_VERSION} VERSION_LESS 3.1)
++ elseif(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 3.1)
+ set(${_no_cmake_path} 1)
+ set(${_no_cmake_environment_path} 1)
+ endif()
+--
+1.7.10.4
+
More information about the arch-commits
mailing list