SHA256
3
0
forked from pool/cmake

Accepting request 247025 from devel:tools:building

- Add possible patch to fix random test failure
  * cmake-fix-module-loading-test.patch

OBS-URL: https://build.opensuse.org/request/show/247025
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cmake?expand=0&rev=94
This commit is contained in:
Stephan Kulow 2014-09-02 06:22:12 +00:00 committed by Git OBS Bridge
commit 4531870ef8
3 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -urN cmake-3.0.1.old/Modules/FindCurses.cmake cmake-3.0.1/Modules/FindCurses.cmake
--- cmake-3.0.1.old/Modules/FindCurses.cmake 2014-09-01 10:01:38.114937449 +0200
+++ cmake-3.0.1/Modules/FindCurses.cmake 2014-09-01 10:02:53.134937440 +0200
@@ -39,6 +39,7 @@
find_library(CURSES_NCURSES_LIBRARY NAMES ncurses )
set(CURSES_USE_NCURSES FALSE)
+include(CheckLibraryExists)
if(CURSES_NCURSES_LIBRARY AND ((NOT CURSES_CURSES_LIBRARY) OR CURSES_NEED_NCURSES))
set(CURSES_USE_NCURSES TRUE)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 1 08:06:59 UTC 2014 - tchvatal@suse.com
- Add possible patch to fix random test failure
* cmake-fix-module-loading-test.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 20 10:45:49 UTC 2014 - tchvatal@suse.com Wed Aug 20 10:45:49 UTC 2014 - tchvatal@suse.com

View File

@ -27,8 +27,10 @@ Source0: http://www.cmake.org/files/v3.0/%{name}-%{version}.tar.gz
Source1: cmake.macros Source1: cmake.macros
Source2: opensuse_rules.cmake Source2: opensuse_rules.cmake
Patch2: cmake-fix-ruby-test.patch Patch2: cmake-fix-ruby-test.patch
#PATCH-FIX-UPSTREAM dvaleev@suse.com https://github.com/Kitware/CMake/pull/111.patch # PATCH-FIX-UPSTREAM dvaleev@suse.com https://github.com/Kitware/CMake/pull/111.patch
Patch3: cmake-ppc64le-jni.patch Patch3: cmake-ppc64le-jni.patch
# PATCH-FIX-UPSTREAM: tchvatal@suse.com failing test due to include order
Patch4: cmake-fix-module-loading-test.patch
BuildRequires: curl-devel BuildRequires: curl-devel
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -50,6 +52,7 @@ CMake is a cross-platform, open-source build system
%setup -q %setup -q
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 -p1
%build %build
export CXXFLAGS="%{optflags}" export CXXFLAGS="%{optflags}"