summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-10-09 18:22:24 +0200
committerSergei Golubchik <serg@mariadb.org>2017-10-09 18:24:43 +0200
commit9749568deb8b48aebcf8045dc6bdd288bef66121 (patch)
tree6ae294a1c65edba08e6b25c8eda95fcba7473b5e /cmake
parent9b11956e86d930a3c90b890b2d353f3c19e9d89c (diff)
downloadmariadb-git-9749568deb8b48aebcf8045dc6bdd288bef66121.tar.gz
MDEV-13946 Server RPMs have dependency on "which"
SLES11 doesn't have a dedicated package for "which", it's part of the "util-linux" package
Diffstat (limited to 'cmake')
-rw-r--r--cmake/cpack_rpm.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/cmake/cpack_rpm.cmake b/cmake/cpack_rpm.cmake
index e886cea1cc1..e80fb199f03 100644
--- a/cmake/cpack_rpm.cmake
+++ b/cmake/cpack_rpm.cmake
@@ -168,9 +168,14 @@ SETA(CPACK_RPM_server_PACKAGE_REQUIRES
"MariaDB-client")
IF(WITH_WSREP)
-SETA(CPACK_RPM_server_PACKAGE_REQUIRES
- "galera" "rsync" "lsof" "grep" "gawk" "iproute"
- "coreutils" "findutils" "tar" "which")
+ SETA(CPACK_RPM_server_PACKAGE_REQUIRES
+ "galera" "rsync" "lsof" "grep" "gawk" "iproute"
+ "coreutils" "findutils" "tar")
+ IF (RPM MATCHES "sles11")
+ SETA(CPACK_RPM_server_PACKAGE_REQUIRES "util-linux")
+ ELSE()
+ SETA(CPACK_RPM_server_PACKAGE_REQUIRES "which")
+ ENDIF()
ENDIF()
SET(CPACK_RPM_server_PRE_INSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/support-files/rpm/server-prein.sh)