summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author David Spencer <idlemoor@slackbuilds.org>2016-03-19 15:51:37 +0000
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-20 07:37:45 +0700
commitf02e1edcbc131f1afd61ba5fd695f883fc509314 (patch)
treebfb89b3be1e71ce54ac871daff7d4b8fd628e711
parent8c3586d0902407dc7fc3da32278aff4afc5b8ced (diff)
downloadslackbuilds-f02e1edcbc131f1afd61ba5fd695f883fc509314.tar.gz
slackbuilds-f02e1edcbc131f1afd61ba5fd695f883fc509314.tar.xz
system/innoextract: Fixed build with cmake-3.5.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--system/innoextract/innoextract-1.4-cmake-3.5.patch31
-rw-r--r--system/innoextract/innoextract.SlackBuild4
2 files changed, 35 insertions, 0 deletions
diff --git a/system/innoextract/innoextract-1.4-cmake-3.5.patch b/system/innoextract/innoextract-1.4-cmake-3.5.patch
new file mode 100644
index 0000000000..0b619ac381
--- /dev/null
+++ b/system/innoextract/innoextract-1.4-cmake-3.5.patch
@@ -0,0 +1,31 @@
+From 01705758dd04d937160c99c8b87c6fa2057db894 Mon Sep 17 00:00:00 2001
+From: Daniel Scharrer <daniel@constexpr.org>
+Date: Tue, 23 Feb 2016 05:45:50 +0100
+Subject: [PATCH] CMake: Disable variable expansion for quoted strings in if()
+
+This makes the build system more rubust against stray variables
+coming from included CMake scripts provided by the system.
+
+Fixes build with CMake 3.5 (tested with 3.5.0-rc3).
+
+Fixes: issue #50
+---
+ CMakeLists.txt | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 02e0308..8653b93 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,6 +2,11 @@ project(innoextract)
+
+ cmake_minimum_required(VERSION 2.8)
+
++if(POLICY CMP0054)
++ # CMake 3.1+: Only interpret if() arguments as variables or keywords when unquoted.
++ cmake_policy(SET CMP0054 NEW)
++endif()
++
+
+ # Define configuration options
+
diff --git a/system/innoextract/innoextract.SlackBuild b/system/innoextract/innoextract.SlackBuild
index c43bc3b6a0..8674254c2f 100644
--- a/system/innoextract/innoextract.SlackBuild
+++ b/system/innoextract/innoextract.SlackBuild
@@ -69,6 +69,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix build with cmake-3.5
+# https://github.com/gentoo/gentoo/pull/1025
+patch -p1 < $CWD/innoextract-1.4-cmake-3.5.patch
+
mkdir -p build
cd build
cmake \