void-packages/srcpkgs/cmake-bootstrap/patches/no-cpack.patch

133 lines
4.2 KiB
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -247,15 +247,13 @@ macro(CMAKE_SETUP_TESTING)
if(CMake_TEST_EXTERNAL_CMAKE)
set(CMAKE_CTEST_COMMAND "${CMake_TEST_EXTERNAL_CMAKE}/ctest")
set(CMAKE_CMAKE_COMMAND "${CMake_TEST_EXTERNAL_CMAKE}/cmake")
- set(CMAKE_CPACK_COMMAND "${CMake_TEST_EXTERNAL_CMAKE}/cpack")
- foreach(exe IN ITEMS cmake ctest cpack)
+ foreach(exe IN ITEMS cmake ctest)
add_executable(${exe} IMPORTED)
set_property(TARGET ${exe} PROPERTY IMPORTED_LOCATION ${CMake_TEST_EXTERNAL_CMAKE}/${exe})
endforeach()
else()
set(CMAKE_CTEST_COMMAND "${CMake_BIN_DIR}/ctest")
set(CMAKE_CMAKE_COMMAND "${CMake_BIN_DIR}/cmake")
- set(CMAKE_CPACK_COMMAND "${CMake_BIN_DIR}/cpack")
endif()
endif()
@@ -467,7 +465,6 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE)
add_custom_target(uninstall
"${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
- include(CMakeCPack.cmake)
endif()
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -1126,6 +1126,7 @@ endif()
#
# Build CPackLib
#
+if(FALSE)
add_library(
CPackLib
CPack/cmCPackArchiveGenerator.cxx
@@ -1158,9 +1159,10 @@ target_include_directories(
"${CMAKE_CURRENT_BINARY_DIR}/CPack"
)
target_link_libraries(CPackLib PUBLIC CMakeLib)
+endif()
option(CPACK_ENABLE_FREEBSD_PKG "Add FreeBSD pkg(8) generator to CPack." OFF)
-if(UNIX)
+if(FALSE)
target_sources(
CPackLib
PRIVATE
@@ -1278,11 +1280,6 @@ add_executable(ctest ctest.cxx)
target_link_libraries(ctest PRIVATE CTestLib ManifestLib)
list(APPEND _tools ctest)
-# Build CPack executable
-add_executable(cpack CPack/cpack.cxx)
-target_link_libraries(cpack PRIVATE CPackLib ManifestLib)
-list(APPEND _tools cpack)
-
# Curses GUI
if(BUILD_CursesDialog)
add_subdirectory(CursesDialog)
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -147,7 +147,6 @@ if(BUILD_TESTING)
endif()
# Look for git to use for tests.
- find_program(GIT_EXECUTABLE NAMES git)
# Look for rpmbuild to use for tests.
# The tool does not work with spaces in the path.
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -908,9 +908,6 @@ add_RunCMake_test(file-GET_RUNTIME_DEPEN
-DCMAKE_C_COMPILER_ID=${CMAKE_C_COMPILER_ID}
)
-add_RunCMake_test(CPackCommandLine)
-add_RunCMake_test(CPackConfig)
-add_RunCMake_test(CPackInstallProperties)
if(XCODE_VERSION)
set(ExternalProject_ARGS -DXCODE_VERSION=${XCODE_VERSION})
endif()
@@ -932,9 +929,6 @@ add_RunCMake_test(CTestCommandLine -DTES
add_RunCMake_test(CacheNewline)
# Only run this test on unix platforms that support
# symbolic links
-if(UNIX)
- add_RunCMake_test(CPackSymlinks)
-endif()
set(IfacePaths_INCDIRS_ARGS -DTEST_PROP=INCLUDE_DIRECTORIES)
add_RunCMake_test(IfacePaths_INCDIRS TEST_DIR IfacePaths)
@@ -1098,8 +1092,6 @@ if(CMAKE_SYSTEM_PROCESSOR STREQUAL "e2k"
endif()
endif()
-add_RunCMake_test_group(CPack "${cpack_tests}")
-# add a test to make sure symbols are exported from a shared library
# for MSVC compilers CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS property is used
add_RunCMake_test(AutoExportDll
-DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
@@ -1143,29 +1135,6 @@ add_RunCMake_test(PrecompileHeaders -DCM
-DCMAKE_C_COMPILER_VERSION=${CMAKE_C_COMPILER_VERSION})
add_RunCMake_test(UnityBuild -DCMake_TEST_OBJC=${CMake_TEST_OBJC})
-add_RunCMake_test(CMakePresets
- -DPython_EXECUTABLE=${Python_EXECUTABLE}
- -DCMake_TEST_JSON_SCHEMA=${CMake_TEST_JSON_SCHEMA}
- )
-if(NOT CMake_TEST_E2K_BROKEN_LIBC)
- add_RunCMake_test(CMakePresetsBuild
- -DPython_EXECUTABLE=${Python_EXECUTABLE}
- -DCMake_TEST_JSON_SCHEMA=${CMake_TEST_JSON_SCHEMA}
- -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
- )
- add_RunCMake_test(CMakePresetsTest
- -DPython_EXECUTABLE=${Python_EXECUTABLE}
- -DCMake_TEST_JSON_SCHEMA=${CMake_TEST_JSON_SCHEMA}
- )
- add_RunCMake_test(CMakePresetsPackage
- -DPython_EXECUTABLE=${Python_EXECUTABLE}
- -DCMake_TEST_JSON_SCHEMA=${CMake_TEST_JSON_SCHEMA}
- )
-endif()
-add_RunCMake_test(CMakePresetsWorkflow
- -DPython_EXECUTABLE=${Python_EXECUTABLE}
- -DCMake_TEST_JSON_SCHEMA=${CMake_TEST_JSON_SCHEMA}
- )
add_RunCMake_test(VerifyHeaderSets)
add_RunCMake_test(set_tests_properties)