mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
icinga2: rebuild for boost-1.80
This commit is contained in:
parent
beff6b0bee
commit
5faeee98e3
2 changed files with 46 additions and 1 deletions
45
srcpkgs/icinga2/patches/cmake-3.15.patch
Normal file
45
srcpkgs/icinga2/patches/cmake-3.15.patch
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
CMake 3.15 Boost_VERSION to Boost_VERSION_MACRO
|
||||||
|
and define Boost_VERSION to have dot
|
||||||
|
--- a/third-party/cmake/BoostTestTargets.cmake
|
||||||
|
+++ b/third-party/cmake/BoostTestTargets.cmake
|
||||||
|
@@ -47,11 +47,11 @@ set(BOOST_TEST_TARGET_PREFIX "boosttest"
|
||||||
|
if(NOT Boost_FOUND)
|
||||||
|
find_package(Boost 1.34.0 QUIET)
|
||||||
|
endif()
|
||||||
|
-if("${Boost_VERSION}0" LESS "1034000")
|
||||||
|
+if("${Boost_VERSION_MACRO}0" LESS "1034000")
|
||||||
|
set(_shared_msg
|
||||||
|
"NOTE: boost::test-based targets and tests cannot "
|
||||||
|
"be added: boost >= 1.34.0 required but not found. "
|
||||||
|
- "(found: '${Boost_VERSION}'; want >=103400) ")
|
||||||
|
+ "(found: '${Boost_VERSION_MACRO}'; want >=103400) ")
|
||||||
|
if(BUILD_TESTING)
|
||||||
|
message(FATAL_ERROR
|
||||||
|
${_shared_msg}
|
||||||
|
@@ -67,7 +67,7 @@ endif()
|
||||||
|
include(GetForceIncludeDefinitions)
|
||||||
|
include(CopyResourcesToBuildTree)
|
||||||
|
|
||||||
|
-if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
|
||||||
|
+if(Boost_FOUND AND NOT "${Boost_VERSION_MACRO}0" LESS "1034000")
|
||||||
|
set(_boosttesttargets_libs)
|
||||||
|
set(_boostConfig "BoostTestTargetsIncluded.h")
|
||||||
|
if(NOT Boost_UNIT_TEST_FRAMEWORK_LIBRARY)
|
||||||
|
@@ -144,7 +144,7 @@ function(add_boost_test _name)
|
||||||
|
"Syntax error in use of add_boost_test: at least one source file required!")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
- if(Boost_FOUND AND NOT "${Boost_VERSION}0" LESS "1034000")
|
||||||
|
+ if(Boost_FOUND AND NOT "${Boost_VERSION_MACRO}0" LESS "1034000")
|
||||||
|
|
||||||
|
include_directories(${Boost_INCLUDE_DIRS})
|
||||||
|
|
||||||
|
@@ -236,7 +236,7 @@ function(add_boost_test _name)
|
||||||
|
set(_test_command ${_target_name})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
- if(TESTS AND "${Boost_VERSION}" VERSION_GREATER "103799")
|
||||||
|
+ if(TESTS AND "${Boost_VERSION_MACRO}" VERSION_GREATER "103799")
|
||||||
|
foreach(_test ${TESTS})
|
||||||
|
add_test(NAME
|
||||||
|
${_name}-${_test}
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'icinga2'
|
# Template file for 'icinga2'
|
||||||
pkgname=icinga2
|
pkgname=icinga2
|
||||||
version=2.9.3
|
version=2.9.3
|
||||||
revision=6
|
revision=7
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
build_helper="qemu"
|
build_helper="qemu"
|
||||||
configure_args="-DCMAKE_INSTALL_SYSCONFDIR=/etc
|
configure_args="-DCMAKE_INSTALL_SYSCONFDIR=/etc
|
||||||
|
|
Loading…
Add table
Reference in a new issue