Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/percona-xtrabackup/
Date: Sat, 02 Dec 2017 22:53:22
Message-Id: 1512255175.0c3989f188e56a8fd76db967cf9a583db0d1c510.monsieurp@gentoo
1 commit: 0c3989f188e56a8fd76db967cf9a583db0d1c510
2 Author: Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Fri Dec 1 15:16:59 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 2 22:52:55 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c3989f1
7
8 dev-db/percona-xtrabackup: version bump to 2.4.9.
9
10 Package-Manager: Portage-2.3.16, Repoman-2.3.6
11 Closes: https://github.com/gentoo/gentoo/pull/6371
12
13 dev-db/percona-xtrabackup/Manifest | 3 +-
14 .../percona-xtrabackup-2.4.9.ebuild | 82 ++++++++++++++++++++++
15 2 files changed, 84 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-db/percona-xtrabackup/Manifest b/dev-db/percona-xtrabackup/Manifest
18 index e297ce3c752..d15584c9422 100644
19 --- a/dev-db/percona-xtrabackup/Manifest
20 +++ b/dev-db/percona-xtrabackup/Manifest
21 @@ -1,2 +1,3 @@
22 DIST percona-xtrabackup-2.4.7.tar.gz 54119422 SHA256 261567a4f0bdde0df7eefeb4f651ad39b4752984bbaabd68245e0e5ee368871a SHA512 7aaf82975cd4c0b7af119902eddf96b8ce75c0fbcbd6835991e33f1f89347361fbe3c9040762c9989df5d53199b628aa6b2b45004ef440bb46e2415fbab13009 WHIRLPOOL 768749471ac987a24f86d07b330988cb679042be5a8affd264f1195eeeacaa8e403370d558316708a056acb4b0ad78083e195f31a4f2a58bc497bf301be2ddb1
23 -DIST percona-xtrabackup-2.4.8.tar.gz 57965576 SHA256 66a9cb73ce03c8a0b125998d464190288cb400cc6c22a766798ed4b24cceab91 SHA512 a613c41169c6ebdba27c6cb8111d388ff656d4daf0e69b52e401b293a6ac6499d81d0f028afd805fa60018ad5f2007e70db7a9ba931d6829272f0ce273ba9739 WHIRLPOOL c6b8d93abade6f8a4586c6d01db6e569eafad9cc21827af6d36b91e58fcb0352e0cba0221031b4c582b372744360a97b296b868006e9d9b6f591cfa07cf22918
24 +DIST percona-xtrabackup-2.4.8.tar.gz 57965576 BLAKE2B 5cca947549181413ef68bcc7a5fd935404ebf2aaccc2e8de42221cbc0007371ca3499e26f2ab312b7fb94fe74a7079c48a11405df18cc3c809329403a83840cd SHA512 a613c41169c6ebdba27c6cb8111d388ff656d4daf0e69b52e401b293a6ac6499d81d0f028afd805fa60018ad5f2007e70db7a9ba931d6829272f0ce273ba9739
25 +DIST percona-xtrabackup-2.4.9.tar.gz 58001052 BLAKE2B d2a25a5ca2190ccf82a600245a0e21848abd9a33ea937a81b2ba9c7e518b24291080a3d3c4b8e6d02f51523e5cf2e78680e4b351c4f2bcd8f122c58f62c14418 SHA512 913431f0fa648731efa2e9bc87c9431a28816b0eca12e1c6df6e7ab04a4148ddd8fa03c9792335ad152b05bede5b9fe64ce94a393b5e4e37d4b18f4989b0ccdb
26
27 diff --git a/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.9.ebuild b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.9.ebuild
28 new file mode 100644
29 index 00000000000..9230fcab15d
30 --- /dev/null
31 +++ b/dev-db/percona-xtrabackup/percona-xtrabackup-2.4.9.ebuild
32 @@ -0,0 +1,82 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +inherit cmake-utils flag-o-matic
39 +
40 +DESCRIPTION="Hot backup utility for MySQL based servers"
41 +HOMEPAGE="https://www.percona.com/software/mysql-database/percona-xtrabackup"
42 +SRC_URI="https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/source/tarball/${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +
48 +DEPEND="
49 + app-arch/lz4:0=
50 + app-editors/vim-core
51 + <dev-libs/boost-1.65.0:=
52 + dev-libs/libaio
53 + <dev-libs/libedit-20170329.3.1
54 + dev-libs/libev
55 + dev-libs/libevent:0=
56 + dev-libs/libgcrypt:0=
57 + dev-libs/libgpg-error
58 + dev-python/sphinx
59 + net-misc/curl
60 + sys-libs/zlib"
61 +
62 +RDEPEND="
63 + ${DEPEND}
64 + !dev-db/xtrabackup-bin
65 + dev-perl/DBD-mysql"
66 +
67 +PATCHES=(
68 + "${FILESDIR}"/${PN}-2.4.6-remove-boost-version-check.patch
69 + "${FILESDIR}"/${PN}-2.4.6-fix-gcc6-isystem.patch
70 +)
71 +
72 +src_prepare() {
73 + cmake-utils_src_prepare
74 +
75 + # remove bundled lz4, boost, libedit, libevent, zlib
76 + # just to be safe...
77 + rm -rv \
78 + extra/lz4 \
79 + include/boost_1_59_0 \
80 + cmd-line-utils/libedit \
81 + libevent \
82 + zlib || die
83 +}
84 +
85 +src_configure() {
86 + # Needed, due to broken handling of CMAKE_BUILD_TYPE leading to
87 + #
88 + # error: 'fts_ast_node_type_get' was not declared in this scope
89 + #
90 + append-cppflags -DDBUG_OFF
91 +
92 + local mycmakeargs=(
93 + -DBUILD_CONFIG=xtrabackup_release
94 + -DWITH_EDITLINE=system
95 + -DWITH_LIBEVENT=system
96 + -DWITH_LZ4=system
97 + -DWITH_SSL=bundled # uses yassl, which isn't packaged
98 + -DWITH_ZLIB=system
99 + -DWITH_PIC=ON
100 + )
101 +
102 + local CMAKE_BUILD_TYPE="Release"
103 + cmake-utils_src_configure
104 +}
105 +
106 +src_install() {
107 + local p="${BUILD_DIR}/storage/innobase/xtrabackup"
108 +
109 + dobin "${p}"/src/{xbcloud,xbcrypt,xbstream,xtrabackup}
110 + dosym xtrabackup /usr/bin/innobackupex
111 +
112 + einstalldocs
113 + doman "${p}"/doc/source/build/man/*
114 +}