Merge lp:~abychko/percona-xtrabackup/bug1095972-2.1 into lp:percona-xtrabackup/2.1

Proposed by Alexey Bychko
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 521
Proposed branch: lp:~abychko/percona-xtrabackup/bug1095972-2.1
Merge into: lp:percona-xtrabackup/2.1
Diff against target: 60 lines (+4/-8)
2 files modified
src/Makefile (+1/-1)
utils/xtrabackup.spec (+3/-7)
To merge this branch: bzr merge lp:~abychko/percona-xtrabackup/bug1095972-2.1
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+152816@code.launchpad.net

Description of the change

fix for bug 1095972
[*] changed dependency from abstract mysql to real /usr/bin/mysql file because rpm packages from Oracle no longer satisfy "mysql" which is required by the xtrabackup rpms

To post a comment you must log in.
Revision history for this message
Alexey Kopytov (akopytov) wrote :

As mentioned in the bug report in 2.1 we do not need a dependency on the mysql client for percona-xtrabackup. However, the test suite in 2.1 still depends on the mysql client. Which means the 2.1 MP should add a dependency on /usr/bin/mysql to percona-xtrabackup-test rather than percona-xtrabackup.

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) wrote :

We removed support for built-in InnoDB (i.e. the "5.1" target) in 2.1. Which means any references to "5.1" and "xtrabackup_51" are just remnants and should be removed as well, rather than changed to innodb51/xtrabackup_plugin.

review: Needs Fixing
Revision history for this message
Alexey Bychko (abychko) wrote :

fixed. removed support for built-in InnoDB (5.1)

Revision history for this message
Alexey Kopytov (akopytov) wrote :

I see no reasons to comment out that code instead of literally removing it?

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) wrote :

And what is xbstream-related stuff being removed/commented out?

Revision history for this message
Alexey Bychko (abychko) wrote :

xbstream and xtrabackup_plugin are related to innodb51 only. once 5.1 build was disabled - there is no xtrabackup_plugin or xbstream anymore

Revision history for this message
Alexey Kopytov (akopytov) wrote :

No, xbstream is not related to innodb51 and should stay. It is built regardless of arguments to build.sh, but resulting binaries are the same functionality-wise. So it doesn't matter which build configuration is used to produce xbstream for packaging.

Revision history for this message
Alexey Kopytov (akopytov) wrote :

Conflicts.

review: Needs Fixing
Revision history for this message
Alexey Kopytov (akopytov) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Makefile'
2--- src/Makefile 2013-03-11 19:11:29 +0000
3+++ src/Makefile 2013-03-19 11:56:22 +0000
4@@ -213,4 +213,4 @@
5 $(LIBARCHIVE_A) -o $(TARGET)
6
7 clean:
8- rm -f $(XTRABACKUPCCOBJS) $(XTRABACKUPCOBJS) $(XBSTREAMOBJS) xtrabackup xtrabackup_*
9+ rm -f $(XTRABACKUPCCOBJS) $(XTRABACKUPCOBJS) $(XBSTREAMOBJS) $(XBCRYPTOBJS) xtrabackup xtrabackup_*
10
11=== modified file 'utils/xtrabackup.spec'
12--- utils/xtrabackup.spec 2013-03-11 19:11:29 +0000
13+++ utils/xtrabackup.spec 2013-03-19 11:56:22 +0000
14@@ -19,7 +19,6 @@
15 URL: http://www.percona.com/software/percona-xtrabackup/
16 Source: percona-xtrabackup-%{xtrabackup_version}.tar.gz
17 BuildRoot: %{_tmppath}/%{name}-%{version}-root
18-Requires: mysql
19 Provides: xtrabackup
20 Obsoletes: xtrabackup
21 BuildRequires: libaio-devel
22@@ -32,6 +31,7 @@
23 Group: Applications/Databases
24 Requires: percona-xtrabackup
25 AutoReqProv: no
26+Requires: /usr/bin/mysql
27
28 %description test
29 This package contains the test suite for Percona Xtrabackup
30@@ -61,12 +61,10 @@
31 export CXX=$CC
32 export CFLAGS="$CFLAGS -DXTRABACKUP_VERSION=\\\"%{xtrabackup_version}\\\" -DXTRABACKUP_REVISION=\\\"%{xtrabackup_revision}\\\""
33 export CXXFLAGS="$CXXFLAGS -DXTRABACKUP_VERSION=\\\"%{xtrabackup_version}\\\" -DXTRABACKUP_REVISION=\\\"%{xtrabackup_revision}\\\" -fno-exceptions"
34-AUTO_DOWNLOAD=yes ./utils/build.sh 5.1
35-cp src/xtrabackup_51 src/xbstream src/xbcrypt .
36 AUTO_DOWNLOAD=yes ./utils/build.sh xtradb
37-cp src/xtrabackup .
38+cp src/xtrabackup .
39 AUTO_DOWNLOAD=yes ./utils/build.sh xtradb55
40-cp src/xtrabackup_55 .
41+cp src/xtrabackup_55 src/xbstream src/xbcrypt .
42
43 %install
44 [ "%{buildroot}" != '/' ] && rm -rf %{buildroot}
45@@ -78,7 +76,6 @@
46 install -m 755 xtrabackup_55 %{buildroot}%{_bindir}
47 install -m 755 innobackupex %{buildroot}%{_bindir}
48 ln -s innobackupex %{buildroot}%{_bindir}/innobackupex-1.5.1
49-install -m 755 xtrabackup_51 %{buildroot}%{_bindir}
50 install -m 755 xbstream %{buildroot}%{_bindir}
51 install -m 755 xbcrypt %{buildroot}%{_bindir}
52 cp -R test %{buildroot}%{_datadir}/percona-xtrabackup-test
53@@ -91,7 +88,6 @@
54 %{_bindir}/innobackupex
55 %{_bindir}/innobackupex-1.5.1
56 %{_bindir}/xtrabackup
57-%{_bindir}/xtrabackup_51
58 %{_bindir}/xtrabackup_55
59 %{_bindir}/xbstream
60 %{_bindir}/xbcrypt

Subscribers

People subscribed via source and target branches