Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Boost dep for CentOS 6
Our install instructions use a source build of Boost for CentOS 6, so
our packages need to be adjusted to allow for this.
  • Loading branch information
LinuxJedi committed Oct 4, 2016
1 parent a528d2c commit 6d8a177
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion cpackEngineRPM.cmake
Expand Up @@ -73,7 +73,21 @@ SETA(CPACK_RPM_libs_PACKAGE_PROVIDES "mariadb-columnstore-libs")
SETA(CPACK_RPM_platform_PACKAGE_PROVIDES "mariadb-columnstore-platform")
SETA(CPACK_RPM_storage-engine_PACKAGE_PROVIDES "mariadb-columnstore-storage-engine")

SETA(CPACK_RPM_platform_PACKAGE_REQUIRES "expect" "boost >= 1.53.0" "mariadb-columnstore-libs" "net-snmp-libs")
# Boost is a source build in CentOS 6 so don't require it as a package
SET(REDHAT_VERSION_NUMBER OFF)
IF (EXISTS "/etc/redhat-release")
file (READ "/etc/redhat-release" REDHAT_VERSION)
string(REGEX MATCH "release ([0-9]+)" CENTOS "${REDHAT_VERSION}")
set(REDHAT_VERSION_NUMBER "${CMAKE_MATCH_1}")
ENDIF ()
if (${REDHAT_VERSION_NUMBER} EQUAL 6)
SETA(CPACK_RPM_platform_PACKAGE_REQUIRES "expect" "mariadb-columnstore-libs" "net-snmp-libs")
# Disable auto require as this will also try to pull Boost via RPM
SET(CPACK_RPM_PACKAGE_AUTOREQPROV " no")
else ()
SETA(CPACK_RPM_platform_PACKAGE_REQUIRES "expect" "boost >= 1.53.0" "mariadb-columnstore-libs" "net-snmp-libs")
endif()

SETA(CPACK_RPM_storage-engine_PACKAGE_REQUIRES "mariadb-columnstore-libs")

SET(CPACK_RPM_platform_POST_INSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/build/postInstall_platform.sh)
Expand Down

0 comments on commit 6d8a177

Please sign in to comment.