diff options
Diffstat (limited to 'net/kamailio/files')
| -rw-r--r-- | net/kamailio/files/extra-patch-cmake_modules-docs.cmake | 25 | ||||
| -rw-r--r-- | net/kamailio/files/extra-patch-src_CMakeLists.txt | 7 | ||||
| -rw-r--r-- | net/kamailio/files/patch-cmake_compiler-specific.cmake | 51 |
3 files changed, 68 insertions, 15 deletions
diff --git a/net/kamailio/files/extra-patch-cmake_modules-docs.cmake b/net/kamailio/files/extra-patch-cmake_modules-docs.cmake index fb390732209c..b16479e767fd 100644 --- a/net/kamailio/files/extra-patch-cmake_modules-docs.cmake +++ b/net/kamailio/files/extra-patch-cmake_modules-docs.cmake @@ -1,15 +1,16 @@ ---- cmake/modules-docs.cmake.orig 2025-01-29 11:36:50 UTC +--- cmake/modules-docs.cmake.orig 2025-11-06 09:29:38 UTC +++ cmake/modules-docs.cmake -@@ -171,12 +171,6 @@ function(docs_add_module module_name) - COMMENT "Processing target ${module_name}_man") +@@ -157,13 +157,6 @@ function(docs_add_module group_name module_name) + ) - install( -- FILES ${CMAKE_CURRENT_SOURCE_DIR}/${module_name}/README -- RENAME README.${module_name} -- DESTINATION ${CMAKE_INSTALL_DOCDIR}/modules -- COMPONENT kamailio_docs) + install( +- FILES ${CMAKE_CURRENT_SOURCE_DIR}/${module_name}/README +- RENAME README.${module_name} +- DESTINATION ${CMAKE_INSTALL_DOCDIR}/modules +- COMPONENT ${group_name} +- ) - -- install( - FILES ${CMAKE_CURRENT_SOURCE_DIR}/${module_name}/${module_name}.7 - DESTINATION ${CMAKE_INSTALL_DATADIR}/man/man7 - COMPONENT kamailio_docs +- install( + FILES ${CMAKE_CURRENT_SOURCE_DIR}/${module_name}/${module_name}.7 + DESTINATION ${CMAKE_INSTALL_DATADIR}/man/man7 + COMPONENT ${group_name} diff --git a/net/kamailio/files/extra-patch-src_CMakeLists.txt b/net/kamailio/files/extra-patch-src_CMakeLists.txt index 263c00e82a04..0abf7da63473 100644 --- a/net/kamailio/files/extra-patch-src_CMakeLists.txt +++ b/net/kamailio/files/extra-patch-src_CMakeLists.txt @@ -1,6 +1,6 @@ ---- src/CMakeLists.txt.orig 2025-01-29 11:36:50 UTC +--- src/CMakeLists.txt.orig 2025-11-06 09:29:38 UTC +++ src/CMakeLists.txt -@@ -130,12 +130,6 @@ install( +@@ -157,13 +157,6 @@ install( COMPONENT kamailio-core ) @@ -8,7 +8,8 @@ -install( - FILES ${CMAKE_SOURCE_DIR}/README ${CMAKE_SOURCE_DIR}/INSTALL - DESTINATION ${CMAKE_INSTALL_DOCDIR} -- COMPONENT kamailio-docs) +- COMPONENT kamailio-core +-) - # ---------- # Create and install the man pages for kamailio diff --git a/net/kamailio/files/patch-cmake_compiler-specific.cmake b/net/kamailio/files/patch-cmake_compiler-specific.cmake new file mode 100644 index 000000000000..77a208674511 --- /dev/null +++ b/net/kamailio/files/patch-cmake_compiler-specific.cmake @@ -0,0 +1,51 @@ +--- cmake/compiler-specific.cmake.orig 2025-11-06 09:29:38 UTC ++++ cmake/compiler-specific.cmake +@@ -149,8 +149,8 @@ elseif(TARGET_ARCH MATCHES "ppc64$") + "GCC version ${CMAKE_C_COMPILER_VERSION} is too old for ppc64. Try GCC 3.0 or newer." + ) + endif() +- # else() +- # message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for ppc64. Try GCC.") ++ else() ++ message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for ppc64. Try GCC.") + endif() + elseif(TARGET_ARCH STREQUAL "ppc") + # PowerPC 32-bit specific flags +@@ -197,7 +197,7 @@ elseif(TARGET_ARCH STREQUAL "arm7") + ) + endif() + else() +- message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm7. Try GCC.") ++ message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm7. Try GCC.") + endif() + elseif(TARGET_ARCH STREQUAL "arm6") + if(CMAKE_C_COMPILER_ID STREQUAL "GNU") +@@ -235,7 +235,7 @@ elseif(TARGET_ARCH STREQUAL "arm") + ) + endif() + else() +- message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm. Try GCC.") ++ message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for arm. Try GCC.") + endif() + elseif(TARGET_ARCH STREQUAL "sparc64") + if(CMAKE_C_COMPILER_ID STREQUAL "GNU") +@@ -269,9 +269,7 @@ elseif(TARGET_ARCH STREQUAL "sparc64") + -xc99 + ) + else() +- message( +- FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for sparc64. Try GCC or Sun." +- ) ++ message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for sparc64. Try GCC or Sun.") + endif() + elseif(TARGET_ARCH STREQUAL "sparc") + if(CMAKE_C_COMPILER_ID STREQUAL "GNU") +@@ -294,7 +292,7 @@ elseif(TARGET_ARCH STREQUAL "sparc") + common_compiler_flags INTERFACE -xO3 -xtarget=native -xmemalign=4i -fma=fused -fns=yes -xc99 + ) + else() +- message(FATAL_ERROR "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for sparc. Try GCC or Sun.") ++ message(WARNING "Unsupported compiler (${CMAKE_C_COMPILER_ID}) for sparc. Try GCC or Sun.") + endif() + elseif(TARGET_ARCH STREQUAL "mips") + if(CMAKE_C_COMPILER_ID STREQUAL "GNU") |
