--- mariadb-10.5.4/CMakeLists.txt.orig 2020-06-23 11:10:16.000000000 -0400 +++ mariadb-10.5.4/CMakeLists.txt 2020-07-31 09:49:11.108988430 -0400 @@ -533,7 +533,11 @@ # ${CMAKE_BINARY_DIR}/Docs/INFO_BIN) IF(UNIX) - INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY Docs/README-wsrep COMPONENT Readme) + IF(WITH_WSREP) + INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY Docs/README-wsrep COMPONENT Readme) + ELSE() + INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY COMPONENT Readme) + ENDIF() ENDIF() INCLUDE(build_depends) --- mariadb-10.5.4/man/CMakeLists.txt.orig 2020-06-23 11:10:16.000000000 -0400 +++ mariadb-10.5.4/man/CMakeLists.txt 2020-07-31 09:35:54.886006788 -0400 @@ -23,12 +23,16 @@ mysqld_multi.1 mysqld_safe.1 mysqldumpslow.1 mysqlhotcopy.1 perror.1 replace.1 resolve_stack_dump.1 resolveip.1 mariadb-service-convert.1 - mysqld_safe_helper.1 wsrep_sst_common.1 - wsrep_sst_mysqldump.1 wsrep_sst_rsync.1 + mysqld_safe_helper.1 galera_recovery.1 galera_new_cluster.1 mysql_ldb.1 myrocks_hotbackup.1 - wsrep_sst_mariabackup.1 mbstream.1 mariabackup.1 + mbstream.1 mariabackup.1) +IF(WITH_WSREP) +LIST(APPEND MAN1_SERVER wsrep_sst_common.1 + wsrep_sst_mysqldump.1 wsrep_sst_rsync.1 + wsrep_sst_mariabackup.1 wsrep_sst_rsync_wan.1) +ENDIF() SET(MAN8_SERVER mysqld.8) SET(MAN1_CLIENT msql2mysql.1 mysql.1 mysql_find_rows.1 mysql_waitpid.1 mysqlaccess.1 mysqladmin.1 mysqlbinlog.1 mysqlcheck.1 --- mariadb-10.5.4/support-files/CMakeLists.txt.orig 2020-06-23 11:10:18.000000000 -0400 +++ mariadb-10.5.4/support-files/CMakeLists.txt 2020-07-31 09:40:37.795087873 -0400 @@ -50,7 +50,12 @@ IF(UNIX) SET(prefix ${CMAKE_INSTALL_PREFIX}) - FOREACH(script mysqld_multi.server mysql-log-rotate binary-configure wsrep_notify) + IF(WITH_WSREP) + SET(SCRIPTS mysqld_multi.server mysql-log-rotate binary-configure wsrep_notify) + ELSE() + SET(SCRIPTS mysqld_multi.server mysql-log-rotate binary-configure) + ENDIF() + FOREACH(script ${SCRIPTS}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${script}.sh ${CMAKE_CURRENT_BINARY_DIR}/${script} @ONLY ) INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${script}