guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: cmake: Update to 3.2.2.


From: ???
Subject: 01/02: gnu: cmake: Update to 3.2.2.
Date: Tue, 28 Apr 2015 09:19:02 +0000

iyzsong pushed a commit to branch core-updates
in repository guix.

commit 477a752e897c41a08f141d2af724ba817338e914
Author: 宋文武 <address@hidden>
Date:   Tue Apr 28 15:29:17 2015 +0800

    gnu: cmake: Update to 3.2.2.
    
    * gnu/packages/cmake.scm (cmake): Update to 3.2.2.
    * gnu/packages/patches/cmake-fix-tests.patch: Skip test for BundleUtilities.
---
 gnu/packages/cmake.scm                     |    9 ++++--
 gnu/packages/patches/cmake-fix-tests.patch |   40 ++++++++++++++-------------
 2 files changed, 27 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm
index 1fb9241..0dbb81b 100644
--- a/gnu/packages/cmake.scm
+++ b/gnu/packages/cmake.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2014 Mark H Weaver <address@hidden>
 ;;; Copyright © 2014 Eric Bavier <address@hidden>
 ;;; Copyright © 2014 Ian Denhardt <address@hidden>
+;;; Copyright © 2015 Sou Bunnbu <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -35,7 +36,7 @@
 (define-public cmake
   (package
     (name "cmake")
-    (version "3.1.3")
+    (version "3.2.2")
     (source (origin
              (method url-fetch)
              (uri (string-append
@@ -43,7 +44,7 @@
                    (version-major+minor version)
                    "/cmake-" version ".tar.gz"))
              (sha256
-              (base32 "1l662p9lscbzx9s85y86cynb9fn1rb2alqg4584wqq9gibxd7x25"))
+              (base32 "0y3w83al0vh9ll7fnqm3nx7l8hsl85k8iv9abxb791q36rp4xsdd"))
              (patches (list (search-patch "cmake-fix-tests.patch")))))
     (build-system gnu-build-system)
     (arguments
@@ -66,7 +67,8 @@
                          "Utilities/cmbzip2/Makefile-libbz2_so"
                          "Utilities/Release/release_cmake.cmake"
                          
"Utilities/cmlibarchive/libarchive/archive_write_set_format_shar.c"
-                         "Tests/CMakeLists.txt")
+                         "Tests/CMakeLists.txt"
+                         "Tests/RunCMake/File_Generate/RunCMakeTest.cmake")
                      (("/bin/sh") (which "sh"))))
                  (alist-cons-before
                   'configure 'set-paths
@@ -83,6 +85,7 @@
                                "./configure"
                                (string-append "--prefix=" out)
                                "--system-libs"
+                               "--no-system-jsoncpp" ; not packaged yet
                                ;; By default, the man pages and other docs land
                                ;; in PREFIX/man and PREFIX/doc, but we want 
them
                                ;; in share/{man,doc}.  Note that unlike
diff --git a/gnu/packages/patches/cmake-fix-tests.patch 
b/gnu/packages/patches/cmake-fix-tests.patch
index 5327f37..f59e2cd 100644
--- a/gnu/packages/patches/cmake-fix-tests.patch
+++ b/gnu/packages/patches/cmake-fix-tests.patch
@@ -1,6 +1,23 @@
---- a/Tests/CMakeLists.txt     2013-03-20 22:57:13.000000000 +0100
-+++ b/Tests/CMakeLists.txt     2013-03-20 22:58:02.000000000 +0100
-@@ -1706,16 +1706,17 @@
+--- cmake-3.2.2.orig/Tests/CMakeLists.txt      2015-04-14 01:09:00.000000000 
+0800
++++ cmake-3.2.2/Tests/CMakeLists.txt   2015-04-28 15:02:34.913039742 +0800
+@@ -342,10 +342,12 @@
+   endif()
+ 
+   # run test for BundleUtilities on supported platforms/compilers
+-  if(MSVC OR
+-     MINGW OR
+-     CMAKE_SYSTEM_NAME MATCHES "Linux" OR
+-     CMAKE_SYSTEM_NAME MATCHES "Darwin")
++#  if(MSVC OR
++#     MINGW OR
++#     CMAKE_SYSTEM_NAME MATCHES "Linux" OR
++#     CMAKE_SYSTEM_NAME MATCHES "Darwin")
++# This test fails on Guix: skip it.
++  if(FALSE)
+   if(NOT "${CMAKE_GENERATOR}" STREQUAL "Watcom WMake")
+ 
+     add_test(BundleUtilities ${CMAKE_CTEST_COMMAND}
+@@ -2257,16 +2259,17 @@
      PASS_REGULAR_EXPRESSION "Could not find executable"
      FAIL_REGULAR_EXPRESSION "SegFault")
  
@@ -27,19 +44,4 @@
 +#    PASS_REGULAR_EXPRESSION "Upload\\.xml")
  
    configure_file(
-     "${CMake_SOURCE_DIR}/Tests/CTestTestConfigFileInBuildDir/test1.cmake.in"
---- a/Utilities/cmcurl/CMakeLists.txt  2013-03-20 22:57:13.000000000 +0100
-+++ b/Utilities/cmcurl/CMakeLists.txt  2013-03-20 23:08:41.000000000 +0100
-@@ -729,8 +729,9 @@
- ADD_EXECUTABLE(LIBCURL Testing/curltest.c)
- TARGET_LINK_LIBRARIES(LIBCURL cmcurl ${CMAKE_DL_LIBS})
- 
--IF(CMAKE_CURL_TEST_URL)
--  ADD_TEST(curl LIBCURL ${CMAKE_CURL_TEST_URL})
--ENDIF(CMAKE_CURL_TEST_URL)
-+# This test requires network connectivity: skip it.
-+#IF(CMAKE_CURL_TEST_URL)
-+#  ADD_TEST(curl LIBCURL ${CMAKE_CURL_TEST_URL})
-+#ENDIF(CMAKE_CURL_TEST_URL)
- 
- INSTALL(FILES COPYING DESTINATION ${CMake_DOC_DEST}/cmcurl)
+     "${CMake_SOURCE_DIR}/Tests/CTestCoverageCollectGCOV/test.cmake.in"



reply via email to

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