Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532110 - dev-db/xtrabackup-bin-2.2.12 version bump
Summary: dev-db/xtrabackup-bin-2.2.12 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-10 05:07 UTC by Tomáš Mózes
Modified: 2015-09-10 08:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2014-12-10 05:07:07 UTC
New Features:

    Percona XtraBackup now reads server options from SHOW VARIABLES rather than my.cnf configuration file.
    Percona XtraBackup now has more verbose output during initial table scan (it will now print a diagnostic message before performing a tablespace scan, which may take a long time on systems with large numbers of tablespaces) and before starting a backup/apply-log/copy-back operation in innobackupex (it will now print a diagnostic message with a timestamp to make it easier for users to get duration of the operation.)

Bugs Fixed:

    innobackupex didn’t take the default datadir, which caused backups to fail if the datadir wasn’t specified in the my.cnf configuration file. Bug fixed #936934.
    innobackupex will now fail with an error when innobackupex –slave-info is used on a multi-threaded non-GTID slave, because Exec_Master_Log_Pos cannot be trusted for a multi-threaded slave. Bug fixed #1372679.
    InnoDB log scanning failure (bug #60788) would cause backups to fail. Fixed by porting the fix from MySQL 5.7. Bug fixed #1375383.
    Options --apply-log and --decompress weren’t marked as mutually exclusive, ie. if they were both specified, only --decompress would work, which could lead to MySQL instance being started with an unprepared backup. Fixed by making mutually exclusive categories of options: 1. --decompress, --decrypt; 2. --copy-back; 3. --move-back; 4. --apply-log. Bug fixed #1376874.
    innobackupex wasn’t creating directories specified in innodb_data_home_dir and innodb_log_group_home_dir when --copy-back option was used. Bug fixed #1382347.
    Percona XtraBackup now supports all option modifiers supported by upstream MySQL: skip, disable, enable, maximum, loose. Bug fixed #664128.
    Percona XtraBackup would fail to perform a full backup on Percona Server 5.5 if innodb_log_file_size variable wasn’t set in the [mysqld] section of my.cnf. Bug fixed #1334062.

Other bugs fixed: #1379905, #1386013, #1072695, #1375241, #1182841, and #1343722.
Comment 1 Tomáš Mózes 2014-12-10 07:42:02 UTC
--- /usr/portage/dev-db/xtrabackup-bin/xtrabackup-bin-2.2.5.ebuild      2014-10-19 11:57:03.000000000 +0200
+++ xtrabackup-bin-2.2.6.ebuild 2014-12-10 06:05:57.181663715 +0100
@@ -5,7 +5,7 @@
 EAPI=5
 
 MY_PN="percona-${PN/-bin}"
-MY_PVR="${PV}-5027"
+MY_PVR="${PV}-5042"
 MY_P="${MY_PN}-${PV}"
 MY_PF="${MY_PN}-${MY_PVR}"
Comment 2 Tomáš Mózes 2014-12-10 12:34:24 UTC
I've just tested the version with MariaDB 10.0, master-slave replication with Tungsten replicator. I've done a consistency checking on all data (10GB), both the same.
Comment 3 MrSnivvel 2015-03-16 17:08:50 UTC
--- /usr/portage/dev-db/xtrabackup-bin/xtrabackup-bin-2.2.5.ebuild	2015-02-25 10:01:05.000000000 -0600
+++ xtrabackup-bin-2.2.9.ebuild	2015-03-16 12:04:58.854139244 -0500
@@ -5,7 +5,7 @@
 EAPI=5
 
 MY_PN="percona-${PN/-bin}"
-MY_PVR="${PV}-5027"
+MY_PVR="${PV}-5067"
 MY_P="${MY_PN}-${PV}"
 MY_PF="${MY_PN}-${MY_PVR}"
 
@@ -16,10 +16,10 @@
 HOMEPAGE="http://www.percona.com/software/percona-xtrabackup"
 SRC_URI="
 	amd64? (
-		http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_PF}-Linux-x86_64.tar.gz
+		http://www.percona.com/downloads/XtraBackup/XtraBackup-${PV}/binary/tarball/${MY_PF}-Linux-x86_64.tar.gz
 	)
 	x86? (
-		http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_PF}-Linux-i686.tar.gz
+		http://www.percona.com/downloads/XtraBackup/XtraBackup-${PV}/binary/tarball/${MY_PF}-Linux-i686.tar.gz
 	)"
 
 LICENSE="GPL-2"
Comment 4 Tomáš Mózes 2015-04-22 11:30:30 UTC
--- /usr/portage/dev-db/xtrabackup-bin/xtrabackup-bin-2.2.5.ebuild      2015-02-25 17:01:05.000000000 +0100
+++ xtrabackup-bin-2.2.10.ebuild        2015-04-22 13:29:57.811544678 +0200
@@ -1,13 +1,10 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/xtrabackup-bin/xtrabackup-bin-2.2.5.ebuild,v 1.3 2015/02/25 15:45:24 ago Exp $
 
 EAPI=5
 
 MY_PN="percona-${PN/-bin}"
-MY_PVR="${PV}-5027"
 MY_P="${MY_PN}-${PV}"
-MY_PF="${MY_PN}-${MY_PVR}"
 
 inherit eutils
 
@@ -16,15 +13,15 @@
 HOMEPAGE="http://www.percona.com/software/percona-xtrabackup"
 SRC_URI="
        amd64? (
-               http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_PF}-Linux-x86_64.tar.gz
+               http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-x86_64.tar.gz
        )
        x86? (
-               http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_PF}-Linux-i686.tar.gz
+               http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-i686.tar.gz
        )"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 x86"
+KEYWORDS="~amd64 ~x86"
 IUSE=""
 
 DEPEND=""
Comment 5 Pascal Jufer 2015-06-10 15:57:00 UTC
Tested with 2.2.11 and the tool is working properly so far:

xtrabackup-bin-2.2.11.ebuild:

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/xtrabackup-bin/xtrabackup-bin-2.2.5.ebuild,v 1.3 2015/02/25 15:45:24 ago Exp $

EAPI=5

MY_PN="percona-${PN/-bin}"
MY_P="${MY_PN}-${PV}"

inherit eutils

DESCRIPTION="MySQL hot backup software that performs non-blocking backups for
InnoDB and XtraDB databases"
HOMEPAGE="http://www.percona.com/software/percona-xtrabackup"
SRC_URI="
	amd64? (
		http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-x86_64.tar.gz
	)
	x86? (
		http://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PV}/binary/tarball/${MY_P}-Linux-i686.tar.gz
	)"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="dev-libs/libaio
	|| ( dev-libs/libgcrypt:0/11 dev-libs/libgcrypt:11/11 )
	dev-libs/libgpg-error
	dev-perl/DBD-mysql
	sys-libs/zlib"

if use amd64; then
	S="${WORKDIR}/${MY_P}-Linux-x86_64"
elif use x86; then
	S="${WORKDIR}/${MY_P}-Linux-i686"
fi

src_prepare() {
	# bug 501904 - CVE-2014-2029
	epatch "${FILESDIR}/${PN}-2.2.11-no-versioncheck.patch"
}

src_install() {
	for bin in innobackupex xbcrypt xbstream xtrabackup; do
		dobin bin/${bin}
	done
}

pkg_postinst() {
	einfo "xtrabackup 2.2.x is for MySQL/MariaDB 5.6 only"
}


files/xtrabackup-bin-2.2.11-no-versioncheck.patch:

diff --git a/bin/innobackupex b/bin/innobackupex
index a3b4602..c6dd153 100755
--- a/bin/innobackupex
+++ b/bin/innobackupex
@@ -148,7 +148,7 @@ my $option_rebuild_threads = 0;
 
 my $option_debug_sleep_before_unlock = '';
 
-my $option_version_check = '1';
+my $option_version_check = '0';
 
 my $option_force_non_empty_dirs = '';
Comment 6 Steffen Weber 2015-09-09 20:14:50 UTC
On August 3rd, I installed XtraBackup 2.2.12 using the ebuild provided in this bug report. Has been working fine so far!
Comment 7 Christian Ruppert (idl0r) gentoo-dev 2015-09-10 08:25:21 UTC
2.2.12 has just been added. Thanks!

Please always attach patches as attachments. Thanks!