diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-db/percona-xtrabackup |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-db/percona-xtrabackup')
6 files changed, 315 insertions, 0 deletions
diff --git a/dev-db/percona-xtrabackup/Manifest b/dev-db/percona-xtrabackup/Manifest new file mode 100644 index 000000000000..b8a1341bf6aa --- /dev/null +++ b/dev-db/percona-xtrabackup/Manifest @@ -0,0 +1,8 @@ +AUX percona-xtrabackup-2.4.6-fix-gcc6-isystem.patch 3801 SHA256 15bbcf88ff8945295805f2f1b641f020001f3cae5e9d3143ab39202b4197ed43 SHA512 8ab3cb41092f3ce324213917842d0cf72d2b501c60238007b57702458c572ea0d7faa159dec10367bfef97584b0b2dfc0a153bba5f13ac9efebeae2f1e2c7a39 WHIRLPOOL 8b48af01fe42c9c9115958a6d92b8004994d7e800709c72ab3c37baa57eb955d938d62a4516b59b7769e03f3f2b22c5149adc7f00d37e02d351cc91b990551b9 +AUX percona-xtrabackup-2.4.6-remove-boost-version-check.patch 485 SHA256 b2480ebdbfbc8f5ba678932ebb9e67f2892f06a50302d17aee0ffd133713cd71 SHA512 31277d6bef14a6b642ce425ce9f2c92fe49f905c42c720a583cb45406c1ee18ccbf2bef224b9b89bb02de18aecc1ec48576f5ca0c9bfef0cc683d78218506906 WHIRLPOOL 3c61ff5ce7e7b33ef37ab2f5c0424d5d7ef32bf6d11e2be837c1bdfd352ed1dc1d88edd2ec2c7127bd87a439a023ae0227cca4ee22048151e480591166fe0338 +DIST percona-xtrabackup-2.4.7.tar.gz 54119422 SHA256 261567a4f0bdde0df7eefeb4f651ad39b4752984bbaabd68245e0e5ee368871a SHA512 7aaf82975cd4c0b7af119902eddf96b8ce75c0fbcbd6835991e33f1f89347361fbe3c9040762c9989df5d53199b628aa6b2b45004ef440bb46e2415fbab13009 WHIRLPOOL 768749471ac987a24f86d07b330988cb679042be5a8affd264f1195eeeacaa8e403370d558316708a056acb4b0ad78083e195f31a4f2a58bc497bf301be2ddb1 +DIST percona-xtrabackup-2.4.8.tar.gz 57965576 SHA256 66a9cb73ce03c8a0b125998d464190288cb400cc6c22a766798ed4b24cceab91 SHA512 a613c41169c6ebdba27c6cb8111d388ff656d4daf0e69b52e401b293a6ac6499d81d0f028afd805fa60018ad5f2007e70db7a9ba931d6829272f0ce273ba9739 WHIRLPOOL c6b8d93abade6f8a4586c6d01db6e569eafad9cc21827af6d36b91e58fcb0352e0cba0221031b4c582b372744360a97b296b868006e9d9b6f591cfa07cf22918 +EBUILD percona-xtrabackup-2.4.7.ebuild 1757 SHA256 4330e29a3d14ba3fc7cf705ba97369bbadde51fe206b8bf63bdf7ee92e643c05 SHA512 12837447a0a2f63db110d93b7f736658e6c34aaf478bf1d94589ef48d881fea24085b55c1a71aeea85a315ac3843309292ef35a95d566b19dbf2971f62d8bf48 WHIRLPOOL f07e0366d7e48ab8887911593cc932bfba56394452df28044fedb1ba13c7eb7c23dc55ac2629e7faf3cef4ec012c4bae9eef62baf14d737a7594efe2091ed5d6 +EBUILD percona-xtrabackup-2.4.8.ebuild 1806 SHA256 4b9d5cffdbe5d5ffdf5f686eeea48345e101243984ff78b5bedf1fbdd2cd122f SHA512 7c735c4e95b154b58b796a02ac7ea25586d480874b5268d39f72f2592d2e9bf7b84ef92696e0df311d54dd5afbd952def07b21783a50755fc35daaaf0477e2e6 WHIRLPOOL cef83ff051c413272a64d04a0760b3b3e6f5fb2b2ca5bca3fd54a21f8b6752bce1660de37bafcb40f469e7ef19aaa3c448d3f464405e9156d5e44b13d6d87a7d +MISC ChangeLog 1334 SHA256 51107538cea464b0750237424322e3c54ec738f25bdc0a6677bf63a8ba0942fa SHA512 6e3e203a7855df7db424cb790da735b3ab5a7a83eda65b1027d23bcf731e5ada2c7a683a4ebed0f5191b521a7f7e49a253f3d2d231598a39c7b09a2efb8297fc WHIRLPOOL 656748a7337f8dfc5f0c67258b75736a729111920b0c3b903a519d95c1dfaf646afb1a07ad49bc2aae2178f3abcd8de652fcc3b5794dcff2ed405c2f03c2b294 +MISC metadata.xml 563 SHA256 486a4fbe1025f330bf051dfec480bd58780e2dcc1f26bac7bd390512225af405 SHA512 050e1a78c8c7f4b024b207754005dcec28188697b3be2d93c30f800f8a91da1a3376b4501a4a6e061dcd096a958a9a4cba62251f5003b2056dfadee5bfda6716 WHIRLPOOL 3aa3246de6ff6ed3f036b3a86d3665100c54933bd599a8a735af5277902857f5ca1df4429236f62c6820e41094503253e362849286af9084355c67fd575827f0 diff --git a/dev-db/percona-xtrabackup/files/percona-xtrabackup-2.4.6-fix-gcc6-isystem.patch b/dev-db/percona-xtrabackup/files/percona-xtrabackup-2.4.6-fix-gcc6-isystem.patch new file mode 100644 index 000000000000..6418e34a8d6b --- /dev/null +++ b/dev-db/percona-xtrabackup/files/percona-xtrabackup-2.4.6-fix-gcc6-isystem.patch @@ -0,0 +1,112 @@ +Do not use -isystem to add headers, as they break GCC 6's header wrapping. +See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129 + +--- a/client/base/CMakeLists.txt ++++ b/client/base/CMakeLists.txt +@@ -49,7 +49,7 @@ + mutex.cc + mysql_query_runner.cc + show_variable_query_extractor.cc +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + + TARGET_LINK_LIBRARIES(client_base mysqlclient) +--- a/client/CMakeLists.txt ++++ b/client/CMakeLists.txt +@@ -52,7 +52,7 @@ + upgrade/program.cc + ) + ADD_COMPILE_FLAGS( +- upgrade/program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ upgrade/program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + TARGET_LINK_LIBRARIES(mysql_upgrade mysqlclient client_base mysqlcheck_core) + ADD_DEPENDENCIES(mysql_upgrade GenFixPrivs GenSysSchema) +--- a/client/dump/CMakeLists.txt ++++ b/client/dump/CMakeLists.txt +@@ -68,7 +68,7 @@ + ADD_COMPILE_FLAGS( + ${BOOST_LIB_SOURCES} + ${BOOST_THREAD_SOURCES} +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + + IF(HAVE_clock_gettime_IN_rt) +@@ -163,7 +163,7 @@ + + ADD_COMPILE_FLAGS( + ${MYSQLPUMP_LIB_SOURCES} +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + + # Files that use Boost sources that trigger compilation warnings +@@ -199,7 +199,7 @@ + ) + MYSQL_ADD_EXECUTABLE(mysqlpump program.cc) + ADD_COMPILE_FLAGS( +- program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ program.cc COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + + TARGET_LINK_LIBRARIES(mysqlpump mysqlpump_lib ${LOCAL_BOOST_LIB}) +--- a/libmysqld/CMakeLists.txt ++++ b/libmysqld/CMakeLists.txt +@@ -115,7 +115,7 @@ + ../sql/item_geofunc_setops.cc + ../sql/item_json_func.cc + ../sql/spatial.cc +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + + # Fixes "C1128: number of sections exceeded object file format limit" in MSVC /MD +--- a/sql/CMakeLists.txt ++++ b/sql/CMakeLists.txt +@@ -309,7 +309,7 @@ + item_geofunc_setops.cc + item_json_func.cc + spatial.cc +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + + # Fixes "C1128: number of sections exceeded object file format limit" in MSVC /MD +--- a/storage/innobase/xtrabackup/src/CMakeLists.txt ++++ b/storage/innobase/xtrabackup/src/CMakeLists.txt +@@ -68,7 +68,7 @@ + ../../../../plugin/keyring/keyring_key.cc + ../../../../plugin/keyring/buffered_file_io.cc + ../../../../plugin/keyring/keys_container.cc +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + + ADD_COMPILE_FLAGS( +--- a/unittest/gunit/CMakeLists.txt ++++ b/unittest/gunit/CMakeLists.txt +@@ -378,7 +378,7 @@ + ENDIF() + ADD_COMPILE_FLAGS( + ${MERGE_SMALL_TESTS} +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) + +@@ -453,11 +453,11 @@ + ENDIF() + ADD_COMPILE_FLAGS( + bounded_queue-t.cc +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + ADD_COMPILE_FLAGS( + pump_object_filter-t.cc +- COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -isystem ${BOOST_INCLUDE_DIR} ++ COMPILE_FLAGS -I${BOOST_PATCHES_DIR} -I${BOOST_INCLUDE_DIR} + ) + + FOREACH(test ${SERVER_TESTS}) diff --git a/dev-db/percona-xtrabackup/files/percona-xtrabackup-2.4.6-remove-boost-version-check.patch b/dev-db/percona-xtrabackup/files/percona-xtrabackup-2.4.6-remove-boost-version-check.patch new file mode 100644 index 000000000000..48a7fcc783f0 --- /dev/null +++ b/dev-db/percona-xtrabackup/files/percona-xtrabackup-2.4.6-remove-boost-version-check.patch @@ -0,0 +1,19 @@ +Remove Boost version check which makes using the +system boost libraries close to impossible. + +--- a/cmake/boost.cmake ++++ b/cmake/boost.cmake +@@ -262,13 +262,6 @@ + COULD_NOT_FIND_BOOST() + ENDIF() + +-IF(NOT BOOST_MINOR_VERSION EQUAL 59) +- MESSAGE(WARNING "Boost minor version found is ${BOOST_MINOR_VERSION} " +- "we need 59" +- ) +- COULD_NOT_FIND_BOOST() +-ENDIF() +- + MESSAGE(STATUS "BOOST_INCLUDE_DIR ${BOOST_INCLUDE_DIR}") + + # We have a limited set of patches/bugfixes here: diff --git a/dev-db/percona-xtrabackup/metadata.xml b/dev-db/percona-xtrabackup/metadata.xml new file mode 100644 index 000000000000..927d7f85fdf7 --- /dev/null +++ b/dev-db/percona-xtrabackup/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>hydrapolic@gmail.com</email> + <name>Tomáš Mózes</name> + </maintainer> + <maintainer type="person"> + <email>manwe@manwe.pl</email> + <name>Michał Zając</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <upstream> + <remote-id type="github">percona/percona-xtrabackup</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.7.ebuild b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.7.ebuild new file mode 100644 index 000000000000..7a3720c1107d --- /dev/null +++ b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.7.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic + +DESCRIPTION="Hot backup utility for MySQL based servers" +HOMEPAGE="https://www.percona.com/software/mysql-database/percona-xtrabackup" +SRC_URI="https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/source/tarball/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=" + app-arch/lz4:0= + app-editors/vim-core + <dev-libs/boost-1.65.0:= + dev-libs/libaio + <dev-libs/libedit-20170329.3.1 + dev-libs/libev + dev-libs/libevent:0= + dev-libs/libgcrypt:0= + dev-libs/libgpg-error + dev-python/sphinx + net-misc/curl + sys-libs/zlib" +RDEPEND="${DEPEND} + !dev-db/xtrabackup-bin + dev-perl/DBD-mysql" + +PATCHES=( + "${FILESDIR}"/${PN}-2.4.6-remove-boost-version-check.patch + "${FILESDIR}"/${PN}-2.4.6-fix-gcc6-isystem.patch +) + +src_prepare() { + cmake-utils_src_prepare + + # remove bundled lz4, boost, libedit, libevent, zlib + # just to be safe... + rm -r extra/lz4 include/boost_1_59_0 \ + cmd-line-utils/libedit libevent zlib || die +} + +src_configure() { + # Needed, due to broken handling of CMAKE_BUILD_TYPE leading to + # + # error: 'fts_ast_node_type_get' was not declared in this scope + # + append-cppflags -DDBUG_OFF + + local mycmakeargs=( + -DBUILD_CONFIG=xtrabackup_release + -DWITH_EDITLINE=system + -DWITH_LIBEVENT=system + -DWITH_LZ4=system + -DWITH_SSL=bundled # uses yassl, which isn't packaged + -DWITH_ZLIB=system + -DWITH_PIC=ON + ) + cmake-utils_src_configure +} + +src_install() { + local p="${BUILD_DIR}/storage/innobase/xtrabackup" + + dobin "${p}"/src/{xbcloud,xbcrypt,xbstream,xtrabackup} + dosym xtrabackup /usr/bin/innobackupex + + einstalldocs + doman "${p}"/doc/source/build/man/* +} diff --git a/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.8.ebuild b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.8.ebuild new file mode 100644 index 000000000000..9230fcab15d9 --- /dev/null +++ b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.8.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils flag-o-matic + +DESCRIPTION="Hot backup utility for MySQL based servers" +HOMEPAGE="https://www.percona.com/software/mysql-database/percona-xtrabackup" +SRC_URI="https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/source/tarball/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + app-arch/lz4:0= + app-editors/vim-core + <dev-libs/boost-1.65.0:= + dev-libs/libaio + <dev-libs/libedit-20170329.3.1 + dev-libs/libev + dev-libs/libevent:0= + dev-libs/libgcrypt:0= + dev-libs/libgpg-error + dev-python/sphinx + net-misc/curl + sys-libs/zlib" + +RDEPEND=" + ${DEPEND} + !dev-db/xtrabackup-bin + dev-perl/DBD-mysql" + +PATCHES=( + "${FILESDIR}"/${PN}-2.4.6-remove-boost-version-check.patch + "${FILESDIR}"/${PN}-2.4.6-fix-gcc6-isystem.patch +) + +src_prepare() { + cmake-utils_src_prepare + + # remove bundled lz4, boost, libedit, libevent, zlib + # just to be safe... + rm -rv \ + extra/lz4 \ + include/boost_1_59_0 \ + cmd-line-utils/libedit \ + libevent \ + zlib || die +} + +src_configure() { + # Needed, due to broken handling of CMAKE_BUILD_TYPE leading to + # + # error: 'fts_ast_node_type_get' was not declared in this scope + # + append-cppflags -DDBUG_OFF + + local mycmakeargs=( + -DBUILD_CONFIG=xtrabackup_release + -DWITH_EDITLINE=system + -DWITH_LIBEVENT=system + -DWITH_LZ4=system + -DWITH_SSL=bundled # uses yassl, which isn't packaged + -DWITH_ZLIB=system + -DWITH_PIC=ON + ) + + local CMAKE_BUILD_TYPE="Release" + cmake-utils_src_configure +} + +src_install() { + local p="${BUILD_DIR}/storage/innobase/xtrabackup" + + dobin "${p}"/src/{xbcloud,xbcrypt,xbstream,xtrabackup} + dosym xtrabackup /usr/bin/innobackupex + + einstalldocs + doman "${p}"/doc/source/build/man/* +} |