diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cbbd6c0571..ceaf7d17df9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -350,6 +350,12 @@ CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/sql/sql_builtin.cc.in CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/cmake/info_macros.cmake.in ${CMAKE_BINARY_DIR}/info_macros.cmake @ONLY) +IF(DEB) + CONFIGURE_FILE( + ${CMAKE_SOURCE_DIR}/debian/mariadb-server-5.5.files.in + ${CMAKE_SOURCE_DIR}/debian/mariadb-server-5.5.files) +ENDIF(DEB) + # Handle the "INFO_*" files. INCLUDE(${CMAKE_BINARY_DIR}/info_macros.cmake) # Source: This can be done during the cmake phase, all information is diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index ec725d419c2..3ee877af482 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -15,7 +15,7 @@ set -e # Buildbot, running the test suite from installed .debs on a clean VM. export DEB_BUILD_OPTIONS="nocheck" -export MARIADB_OPTIONAL_DEBS="tokudb-engine" +#export MARIADB_OPTIONAL_DEBS="tokudb-engine" # Find major.minor version. # diff --git a/debian/dist/Debian/control b/debian/dist/Debian/control index 38868478abd..2b4c419ea8e 100644 --- a/debian/dist/Debian/control +++ b/debian/dist/Debian/control @@ -190,12 +190,13 @@ Depends: mariadb-client-5.5 (>= ${source:Version}), libdbi-perl, perl (>= 5.6), Provides: mariadb-server, mysql-server, virtual-mysql-server Conflicts: mariadb-server (<< ${source:Version}), mysql-server (<< ${source:Version}), mysql-server-4.1, mysql-server-5.0, mysql-server-5.1, mysql-server-5.5, - mariadb-server-5.1, mariadb-server-5.2, mariadb-server-5.3 + mariadb-server-5.1, mariadb-server-5.2, mariadb-server-5.3, + mariadb-tokudb-engine-5.5 Replaces: mariadb-server (<< ${source:Version}), mysql-server (<< ${source:Version}), mysql-server-4.1, mysql-server-5.0, mysql-server-5.1, mysql-server-5.5, mariadb-server-5.1, mariadb-server-5.2, mariadb-server-5.3, - libmariadbclient16 (<< 5.3.4), - libmariadbclient-dev (<< 5.5.0) + libmariadbclient16 (<< 5.3.4), libmariadbclient-dev (<< 5.5.0), + mariadb-tokudb-engine-5.5 Description: MariaDB database server binaries MariaDB is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query @@ -239,11 +240,3 @@ Description: MariaDB database regression test suite (metapackage depending on th mariadb-test (currently mariadb-test-5.5), as determined by the MariaDB maintainers. -Package: mariadb-tokudb-engine-5.5 -Section: database -Architecture: any -Depends: mariadb-server-5.5 -Description: TokuDB storage engine for MariaDB - TokuDB is a highly scalable, zero maintenance downtime, ACID and MVCC - compliant MariaDB Storage Engine that offers powerful indexing-based query - acceleration. http://www.tokutek.com/products/tokudb-for-mysql/ diff --git a/debian/dist/Debian/mariadb-server-5.5.files b/debian/dist/Debian/mariadb-server-5.5.files.in similarity index 99% rename from debian/dist/Debian/mariadb-server-5.5.files rename to debian/dist/Debian/mariadb-server-5.5.files.in index 15206865d4f..eb9ba7a9a2c 100644 --- a/debian/dist/Debian/mariadb-server-5.5.files +++ b/debian/dist/Debian/mariadb-server-5.5.files.in @@ -71,3 +71,4 @@ usr/share/mysql/mysql_system_tables_data.sql usr/share/mysql/mysql_system_tables.sql usr/share/mysql/mysql_performance_tables.sql usr/share/mysql/mysql_test_data_timezone.sql +@TOKUDB_DEB_FILES@ diff --git a/debian/dist/Ubuntu/control b/debian/dist/Ubuntu/control index de7b2405676..a4e25565944 100644 --- a/debian/dist/Ubuntu/control +++ b/debian/dist/Ubuntu/control @@ -184,12 +184,13 @@ Depends: mariadb-client-5.5 (>= ${source:Version}), libdbi-perl, perl (>= 5.6), Provides: mariadb-server, mysql-server, virtual-mysql-server Conflicts: mariadb-server (<< ${source:Version}), mysql-server (<< ${source:Version}), mysql-server-4.1, mysql-server-5.0, mysql-server-5.1, mysql-server-5.5, - mariadb-server-5.1, mariadb-server-5.2, mariadb-server-5.3 + mariadb-server-5.1, mariadb-server-5.2, mariadb-server-5.3, + mariadb-tokudb-engine-5.5 Replaces: mariadb-server (<< ${source:Version}), mysql-server (<< ${source:Version}), mysql-server-4.1, mysql-server-5.0, mysql-server-5.1, mysql-server-5.5, mariadb-server-5.1, mariadb-server-5.2, mariadb-server-5.3, - libmariadbclient16 (<< 5.3.4), - libmariadbclient-dev (<< 5.5.0) + libmariadbclient16 (<< 5.3.4), libmariadbclient-dev (<< 5.5.0), + mariadb-tokudb-engine-5.5 Description: MariaDB database server binaries MariaDB is a fast, stable and true multi-user, multi-threaded SQL database server. SQL (Structured Query Language) is the most popular database query @@ -233,11 +234,3 @@ Description: MariaDB database regression test suite (metapackage depending on th mariadb-test (currently mariadb-test-5.5), as determined by the MariaDB maintainers. -Package: mariadb-tokudb-engine-5.5 -Section: database -Architecture: any -Depends: mariadb-server-5.5 -Description: TokuDB storage engine for MariaDB - TokuDB is a highly scalable, zero maintenance downtime, ACID and MVCC - compliant MariaDB Storage Engine that offers powerful indexing-based query - acceleration. http://www.tokutek.com/products/tokudb-for-mysql/ diff --git a/debian/dist/Ubuntu/mariadb-server-5.5.files b/debian/dist/Ubuntu/mariadb-server-5.5.files.in similarity index 99% rename from debian/dist/Ubuntu/mariadb-server-5.5.files rename to debian/dist/Ubuntu/mariadb-server-5.5.files.in index c747d4d64db..4921d3fa267 100644 --- a/debian/dist/Ubuntu/mariadb-server-5.5.files +++ b/debian/dist/Ubuntu/mariadb-server-5.5.files.in @@ -73,3 +73,4 @@ usr/share/mysql/mysql_system_tables_data.sql usr/share/mysql/mysql_system_tables.sql usr/share/mysql/mysql_performance_tables.sql usr/share/mysql/mysql_test_data_timezone.sql +@TOKUDB_DEB_FILES@ diff --git a/debian/mariadb-tokudb-engine-5.5.files b/debian/mariadb-tokudb-engine-5.5.files deleted file mode 100644 index 2dc9f22d77a..00000000000 --- a/debian/mariadb-tokudb-engine-5.5.files +++ /dev/null @@ -1,5 +0,0 @@ -etc/mysql/conf.d/tokudb.cnf -usr/bin/tokuftdump -usr/lib/mysql/plugin/ha_tokudb.so -usr/share/doc/mariadb-tokudb-engine-5.5/README-TOKUDB -usr/share/doc/mariadb-tokudb-engine-5.5/README.md diff --git a/storage/tokudb/CMakeLists.txt b/storage/tokudb/CMakeLists.txt index 527d77996ff..26955370084 100644 --- a/storage/tokudb/CMakeLists.txt +++ b/storage/tokudb/CMakeLists.txt @@ -15,6 +15,7 @@ IF(NOT TOKUDB_OK) ENDIF() SET(ENV{TOKUDB_VERSION} "7.0.4") +SET(TOKUDB_DEB_FILES "usr/lib/mysql/plugin/ha_tokudb.so\netc/mysql/conf.d/tokudb.cnf\nusr/bin/tokuftdump\nusr/share/doc/mariadb-server-5.5/README-TOKUDB\nusr/share/doc/mariadb-server-5.5/README.md" PARENT_SCOPE) SET(USE_BDB OFF CACHE BOOL "") SET(USE_VALGRIND OFF CACHE BOOL "") SET(BUILD_TESTING OFF CACHE BOOL "") @@ -45,12 +46,13 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index/toku_include) SET(TOKUDB_PLUGIN_DYNAMIC "ha_tokudb") SET(TOKUDB_SOURCES ha_tokudb.cc) MYSQL_ADD_PLUGIN(tokudb ${TOKUDB_SOURCES} STORAGE_ENGINE MODULE_ONLY - COMPONENT "tokudb-engine" LINK_LIBRARIES tokufractaltree_static tokuportability_static ${ZLIB_LIBRARY} stdc++) SET(CMAKE_MODULE_LINKER_FLAGS_RELEASE "${CMAKE_MODULE_LINKER_FLAGS_RELEASE} -flto -fuse-linker-plugin") +SET(CPACK_RPM_server_PACKAGE_OBSOLETES + "${CPACK_RPM_server_PACKAGE_OBSOLETES} MariaDB-tokudb-engine < 5.5.34" PARENT_SCOPE) + IF (INSTALL_SYSCONF2DIR) - INSTALL(FILES tokudb.cnf DESTINATION ${INSTALL_SYSCONF2DIR} COMPONENT tokudb-engine) - SET(CPACK_RPM_tokudb-engine_USER_FILELIST ${ignored} "%config(noreplace) ${INSTALL_SYSCONF2DIR}/*" PARENT_SCOPE) + INSTALL(FILES tokudb.cnf DESTINATION ${INSTALL_SYSCONF2DIR} COMPONENT Server) ENDIF(INSTALL_SYSCONF2DIR) diff --git a/storage/tokudb/ft-index/CMakeLists.txt b/storage/tokudb/ft-index/CMakeLists.txt index 41e3116b16d..87c04be75e5 100644 --- a/storage/tokudb/ft-index/CMakeLists.txt +++ b/storage/tokudb/ft-index/CMakeLists.txt @@ -57,7 +57,7 @@ add_subdirectory(include) add_subdirectory(toku_include) #add_subdirectory(examples) -INSTALL_DOCUMENTATION(README.md README-TOKUDB COMPONENT "tokudb-engine") +INSTALL_DOCUMENTATION(README.md README-TOKUDB COMPONENT Server) ## build tags #include(TokuBuildTagDatabases) diff --git a/storage/tokudb/ft-index/ft/CMakeLists.txt b/storage/tokudb/ft-index/ft/CMakeLists.txt index 748e501f922..c773f4b3391 100644 --- a/storage/tokudb/ft-index/ft/CMakeLists.txt +++ b/storage/tokudb/ft-index/ft/CMakeLists.txt @@ -103,7 +103,7 @@ target_link_libraries(ftverify m) install( TARGETS tokuftdump - COMPONENT "tokudb-engine" + COMPONENT Server DESTINATION ${INSTALL_BINDIR} )