|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
|
#
|
|
|
|
|
# Filename: package/.../cmake/uname.patch
|
|
|
|
|
# Copyright (C) 2006 The OpenSDE Project
|
|
|
|
|
# Copyright (C) 2006 - 2008 The OpenSDE Project
|
|
|
|
|
# Copyright (C) 2006 The T2 SDE Project
|
|
|
|
|
#
|
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
@ -15,23 +15,28 @@
|
|
|
|
|
# version.
|
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
|
|
diff -Nur cmake-2.4.3-orig/Modules/CMakeDetermineSystem.cmake cmake-2.4.3/Modules/CMakeDetermineSystem.cmake
|
|
|
|
|
--- cmake-2.4.3-orig/Modules/CMakeDetermineSystem.cmake 2006-07-31 17:49:56.000000000 +0300
|
|
|
|
|
+++ cmake-2.4.3/Modules/CMakeDetermineSystem.cmake 2006-08-20 22:24:28.000000000 +0300
|
|
|
|
|
@@ -29,12 +29,12 @@
|
|
|
|
|
IF(UNIX)
|
|
|
|
|
diff -Nur cmake-2.6.1-orig/Modules/CMakeDetermineSystem.cmake cmake-2.6.1/Modules/CMakeDetermineSystem.cmake
|
|
|
|
|
--- cmake-2.6.1-orig/Modules/CMakeDetermineSystem.cmake 2008-08-31 11:22:20.000000000 +0200
|
|
|
|
|
+++ cmake-2.6.1/Modules/CMakeDetermineSystem.cmake 2008-08-31 11:25:26.000000000 +0200
|
|
|
|
|
@@ -31,16 +31,16 @@
|
|
|
|
|
IF(CMAKE_HOST_UNIX)
|
|
|
|
|
FIND_PROGRAM(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
|
|
|
|
|
IF(CMAKE_UNAME)
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -s OUTPUT_VARIABLE CMAKE_SYSTEM_NAME)
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -r OUTPUT_VARIABLE CMAKE_SYSTEM_VERSION)
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -s 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_SYSTEM_NAME)
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -r 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_SYSTEM_VERSION)
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -p 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR
|
|
|
|
|
RETURN_VALUE val)
|
|
|
|
|
IF("${val}" GREATER 0)
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -m 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -s OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_NAME)
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION)
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -s 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_NAME)
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -r 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION)
|
|
|
|
|
IF(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -m 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
|
|
|
|
RETURN_VALUE val)
|
|
|
|
|
ENDIF("${val}" GREATER 0)
|
|
|
|
|
IF("${val}" GREATER 0)
|
|
|
|
|
ELSE(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -p 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
|
|
|
|
RETURN_VALUE val)
|
|
|
|
|
IF("${val}" GREATER 0)
|
|
|
|
|
- EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
|
|
|
|
+ EXEC_PROGRAM(uname ARGS -m 2>/dev/null | cat OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR
|
|
|
|
|
RETURN_VALUE val)
|
|
|
|
|
ENDIF("${val}" GREATER 0)
|
|
|
|
|
ENDIF(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
|