# API and build change and fix summaries. Doc correctsions
# and/or changes are not mentioned here; see the commit messages.
+2020 March 19; version 3.6.1
+ Fix problem with RPM package install
+
2020 March 18; version 3.6.0
Add message types to support traffic steering
set( major_version "3" ) # should be automatically populated from git tag later, but until CI process sets a tag we use this
set( minor_version "6" )
-set( patch_level "0" )
+set( patch_level "1" )
set( install_root "${CMAKE_INSTALL_PREFIX}" )
set( install_inc "include/rmr" )
SOVERSION ${major_version}
VERSION ${major_version}.${minor_version}.${patch_level} )
-# we only build/export the static archive (.a) if generating a dev package
-if( DEV_PKG )
- add_library( rmr_si_static STATIC "$<TARGET_OBJECTS:rmr_si_objects>;$<TARGET_OBJECTS:common_objects>" )
- set_target_properties( rmr_si_static
- PROPERTIES
- OUTPUT_NAME "rmr_si"
- SOVERSION ${major_version}
- VERSION ${major_version}.${minor_version}.${patch_level} )
-endif()
+# even if not generating a development package we still need to generate the .a so that health check
+# can link against it to avoid RPM install issues.
+#
+add_library( rmr_si_static STATIC "$<TARGET_OBJECTS:rmr_si_objects>;$<TARGET_OBJECTS:common_objects>" )
+set_target_properties( rmr_si_static
+ PROPERTIES
+ OUTPUT_NAME "rmr_si"
+ SOVERSION ${major_version}
+ VERSION ${major_version}.${minor_version}.${patch_level} )
# if externals need to be built, then we must force them to be built first by depending on them
if( need_ext )
set( CPACK_DEBIAN_PACKAGE_NAME ${deb_pkg_name} )
set( CPACK_RPM_PACKAGE_NAME ${rpm_pkg_name} )
+ # auto dependency checking makes the RPM install fail, see NOTES
+ set( CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION="/usr/local /usr/local/bin /usr/local/lib" )
+
set( CPACK_set_DESTDIR "on" )
set( CPACK_PACKAGING_INSTALL_PREFIX "${install_root}" )
set( CPACK_GENERATOR "${pkg_list}" )
# build support tools and setup for their install
add_executable( health_ck health_ck.c )
-target_link_libraries( health_ck rmr_si_shared;pthread;m )
+add_dependencies( health_ck rmr_si_static )
+target_link_libraries( health_ck rmr_si_static;pthread;m )
include_directories( ${CMAKE_SOURCE_DIR}/src/rmr/common/include )
if( NOT DEV_PKG )
install(
TARGETS health_ck
- DESTINATION ${install_root}/bin
+ DESTINATION bin
)
endif()