Merge lp:~percona-core/percona-xtrabackup/release-2.2.1-alpha1 into lp:percona-xtrabackup/2.2
- release-2.2.1-alpha1
- Merge into 2.2
Proposed by
Tomislav Plavcic
Status: | Merged |
---|---|
Approved by: | Alexey Kopytov |
Approved revision: | no longer in the source branch. |
Merged at revision: | 4968 |
Proposed branch: | lp:~percona-core/percona-xtrabackup/release-2.2.1-alpha1 |
Merge into: | lp:percona-xtrabackup/2.2 |
Diff against target: |
648 lines (+176/-257) 9 files modified
XB_VERSION (+2/-2) storage/innobase/xtrabackup/utils/build-binary.sh (+10/-7) storage/innobase/xtrabackup/utils/build-dpkg.sh (+2/-2) storage/innobase/xtrabackup/utils/build-rpm.sh (+80/-67) storage/innobase/xtrabackup/utils/debian/changelog (+6/-95) storage/innobase/xtrabackup/utils/debian/control (+10/-9) storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-22-test.install (+1/-1) storage/innobase/xtrabackup/utils/debian/rules (+5/-5) storage/innobase/xtrabackup/utils/percona-xtrabackup.spec (+60/-69) |
To merge this branch: | bzr merge lp:~percona-core/percona-xtrabackup/release-2.2.1-alpha1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexey Kopytov (community) | Approve | ||
Review via email: mp+218554@code.launchpad.net |
Commit message
Description of the change
Release 2.2.1-alpha1
To post a comment you must log in.
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 'XB_VERSION' |
2 | --- XB_VERSION 2014-03-21 13:05:10 +0000 |
3 | +++ XB_VERSION 2014-05-07 06:34:56 +0000 |
4 | @@ -1,4 +1,4 @@ |
5 | XB_VERSION_MAJOR=2 |
6 | XB_VERSION_MINOR=2 |
7 | -XB_VERSION_PATCH=0 |
8 | -XB_VERSION_EXTRA= |
9 | +XB_VERSION_PATCH=1 |
10 | +XB_VERSION_EXTRA=-alpha1 |
11 | |
12 | === modified file 'storage/innobase/xtrabackup/utils/build-binary.sh' |
13 | --- storage/innobase/xtrabackup/utils/build-binary.sh 2014-03-05 07:13:02 +0000 |
14 | +++ storage/innobase/xtrabackup/utils/build-binary.sh 2014-05-07 06:34:56 +0000 |
15 | @@ -83,8 +83,9 @@ |
16 | XTRABACKUP_VERSION="${XB_VERSION_MAJOR}.${XB_VERSION_MINOR}.${XB_VERSION_PATCH}${XB_VERSION_EXTRA}" |
17 | |
18 | # Build information |
19 | -REVISION="$(cd "$SOURCEDIR"; bzr revno 2>/dev/null || cat REVNO)" |
20 | - |
21 | +if [ -z "${REVISION:-}" ]; then |
22 | + REVISION="$(cd "$SOURCEDIR"; bzr revno 2>/dev/null || cat REVNO)" |
23 | +fi |
24 | # Compilation flags |
25 | export CC=${CC:-gcc} |
26 | export CXX=${CXX:-g++} |
27 | @@ -94,7 +95,7 @@ |
28 | |
29 | # Create a temporary working directory |
30 | BASEINSTALLDIR="$(cd "$WORKDIR" && TMPDIR="$WORKDIR_ABS" mktemp -d xtrabackup-build.XXXXXX)" |
31 | -INSTALLDIR="$WORKDIR_ABS/$BASEINSTALLDIR/percona-xtrabackup-$XTRABACKUP_VERSION-`uname -s`-`arch`" # Make it absolute |
32 | +INSTALLDIR="$WORKDIR_ABS/$BASEINSTALLDIR/percona-xtrabackup-$XTRABACKUP_VERSION-$(uname -s)-$(uname -m)" # Make it absolute |
33 | |
34 | mkdir "$INSTALLDIR" |
35 | |
36 | @@ -108,7 +109,9 @@ |
37 | |
38 | # Install the files |
39 | mkdir -p "$INSTALLDIR" |
40 | - cmake -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX="$INSTALLDIR" . && make $MAKE_JFLAG |
41 | + cmake -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX="$INSTALLDIR" \ |
42 | + -DINSTALL_MYSQLTESTDIR=percona-xtrabackup-${XB_VERSION_MAJOR}.${XB_VERSION_MINOR}-test . |
43 | + make $MAKE_JFLAG |
44 | make install |
45 | |
46 | ) |
47 | @@ -116,13 +119,13 @@ |
48 | |
49 | if test "x$exit_value" = "x0" |
50 | then |
51 | - $TAR czf "percona-xtrabackup-$XTRABACKUP_VERSION-$REVISION-`uname -s`-`arch`.tar.gz" \ |
52 | + $TAR czf "percona-xtrabackup-$XTRABACKUP_VERSION-$REVISION-$(uname -s)-$(uname -m).tar.gz" \ |
53 | --owner=0 --group=0 -C "$INSTALLDIR/../" \ |
54 | - "percona-xtrabackup-$XTRABACKUP_VERSION-`uname -s`-`arch`" |
55 | + "percona-xtrabackup-$XTRABACKUP_VERSION-$(uname -s)-$(uname -m)" |
56 | fi |
57 | |
58 | # Clean up build dir |
59 | - rm -rf "percona-xtrabackup-$XTRABACKUP_VERSION-`uname -s`-`arch`" |
60 | + rm -rf "percona-xtrabackup-$XTRABACKUP_VERSION-$(uname -s)-$(uname -m)" |
61 | |
62 | exit $exit_value |
63 | |
64 | |
65 | === modified file 'storage/innobase/xtrabackup/utils/build-dpkg.sh' |
66 | --- storage/innobase/xtrabackup/utils/build-dpkg.sh 2014-03-05 07:13:02 +0000 |
67 | +++ storage/innobase/xtrabackup/utils/build-dpkg.sh 2014-05-07 06:34:56 +0000 |
68 | @@ -94,12 +94,12 @@ |
69 | make DUMMY="$DUMMY" dist |
70 | # Create the original tarball |
71 | mv "${TMPDIR}/percona-xtrabackup-$XTRABACKUP_VERSION.tar.gz" \ |
72 | - "$WORKDIR/percona-xtrabackup_$XTRABACKUP_VERSION-$REVISION.orig.tar.gz" |
73 | + "$WORKDIR/percona-xtrabackup-${XB_VERSION_MAJOR}${XB_VERSION_MINOR}_$XTRABACKUP_VERSION-$REVISION.orig.tar.gz" |
74 | rm -fr ${TMPDIR} |
75 | # |
76 | cd "$WORKDIR" |
77 | rm -fr percona-xtrabackup-$XTRABACKUP_VERSION |
78 | - tar xzf percona-xtrabackup_$XTRABACKUP_VERSION-$REVISION.orig.tar.gz |
79 | + tar xzf percona-xtrabackup-${XB_VERSION_MAJOR}${XB_VERSION_MINOR}_$XTRABACKUP_VERSION-$REVISION.orig.tar.gz |
80 | cd percona-xtrabackup-$XTRABACKUP_VERSION |
81 | cp -a storage/innobase/xtrabackup/utils/debian . |
82 | |
83 | |
84 | === modified file 'storage/innobase/xtrabackup/utils/build-rpm.sh' |
85 | --- storage/innobase/xtrabackup/utils/build-rpm.sh 2014-03-05 07:13:02 +0000 |
86 | +++ storage/innobase/xtrabackup/utils/build-rpm.sh 2014-05-07 06:34:56 +0000 |
87 | @@ -26,68 +26,68 @@ |
88 | # Check if we have got a functional getopt(1) |
89 | if ! getopt --test |
90 | then |
91 | - go_out="$(getopt --options="iKtn" --longoptions=i686,nosign,test,dummy \ |
92 | - --name="$(basename "$0")" -- "$@")" |
93 | - test $? -eq 0 || exit 1 |
94 | - eval set -- $go_out |
95 | + go_out="$(getopt --options="iKtn" --longoptions=i686,nosign,test,dummy \ |
96 | + --name="$(basename "$0")" -- "$@")" |
97 | + test $? -eq 0 || exit 1 |
98 | + eval set -- $go_out |
99 | fi |
100 | |
101 | for arg |
102 | do |
103 | - case "$arg" in |
104 | + case "$arg" in |
105 | -- ) shift; break;; |
106 | -i | --i686 ) |
107 | - shift |
108 | - TARGET="--target i686" |
109 | - TARGET_CFLAGS="-m32 -march=i686" |
110 | - TARGET_ARG='i686' |
111 | - ;; |
112 | + shift |
113 | + TARGET="--target i686" |
114 | + TARGET_CFLAGS="-m32 -march=i686" |
115 | + TARGET_ARG='i686' |
116 | + ;; |
117 | -K | --nosign ) |
118 | - shift |
119 | - SIGN='' |
120 | - ;; |
121 | + shift |
122 | + SIGN='' |
123 | + ;; |
124 | -t | --test ) |
125 | - shift |
126 | - TEST='yes' |
127 | - ;; |
128 | + shift |
129 | + TEST='yes' |
130 | + ;; |
131 | -n | --dummy ) |
132 | - shift |
133 | - DUMMY='--define=dummy=1' |
134 | - ;; |
135 | - esac |
136 | + shift |
137 | + DUMMY='--define=dummy=1' |
138 | + ;; |
139 | + esac |
140 | done |
141 | |
142 | # Working directory |
143 | if test "$#" -eq 0 |
144 | then |
145 | - WORKDIR="$(pwd)" |
146 | - |
147 | - # Check that the current directory is not empty |
148 | - if test "x$(echo *)" != "x*" |
149 | - then |
150 | - echo >&2 \ |
151 | - "Current directory is not empty. Use $0 . to force build in ." |
152 | - exit 1 |
153 | - fi |
154 | - |
155 | - WORKDIR_ABS="$(cd "$WORKDIR"; pwd)" |
156 | + WORKDIR="$(pwd)" |
157 | + |
158 | + # Check that the current directory is not empty |
159 | + if test "x$(echo *)" != "x*" |
160 | + then |
161 | + echo >&2 \ |
162 | + "Current directory is not empty. Use $0 . to force build in ." |
163 | + exit 1 |
164 | + fi |
165 | + |
166 | + WORKDIR_ABS="$(cd "$WORKDIR"; pwd)" |
167 | |
168 | elif test "$#" -eq 1 |
169 | then |
170 | - WORKDIR="$1" |
171 | - |
172 | - # Check that the provided directory exists and is a directory |
173 | - if ! test -d "$WORKDIR" |
174 | - then |
175 | - echo >&2 "$WORKDIR is not a directory" |
176 | - exit 1 |
177 | - fi |
178 | - |
179 | - WORKDIR_ABS="$(cd "$WORKDIR"; pwd)" |
180 | + WORKDIR="$1" |
181 | + |
182 | + # Check that the provided directory exists and is a directory |
183 | + if ! test -d "$WORKDIR" |
184 | + then |
185 | + echo >&2 "$WORKDIR is not a directory" |
186 | + exit 1 |
187 | + fi |
188 | + |
189 | + WORKDIR_ABS="$(cd "$WORKDIR"; pwd)" |
190 | |
191 | else |
192 | - echo >&2 "Usage: $0 [target dir]" |
193 | - exit 1 |
194 | + echo >&2 "Usage: $0 [target dir]" |
195 | + exit 1 |
196 | |
197 | fi |
198 | |
199 | @@ -101,17 +101,20 @@ |
200 | |
201 | # Build information |
202 | REDHAT_RELEASE="$(grep -o 'release [0-9][0-9]*' /etc/redhat-release | \ |
203 | - cut -d ' ' -f 2)" |
204 | -REVISION="$(cd "$SOURCEDIR"; (bzr revno 2>/dev/null || cat REVNO))" |
205 | +cut -d ' ' -f 2)" |
206 | + |
207 | +if [ -z "${REVISION:-}" ]; then |
208 | + REVISION="$(cd "$SOURCEDIR"; (bzr revno 2>/dev/null || cat REVNO))" |
209 | +fi |
210 | |
211 | # Fix problems in rpmbuild for rhel4: _libdir and _arch are not correctly set. |
212 | if test "x$REDHAT_RELEASE" == "x4" && test "x$TARGET_ARG" == "xi686" |
213 | then |
214 | - TARGET_LIBDIR='--define=_libdir=/usr/lib' |
215 | - TARGET_ARCH='--define=_arch=i386' |
216 | + TARGET_LIBDIR='--define=_libdir=/usr/lib' |
217 | + TARGET_ARCH='--define=_arch=i386' |
218 | else |
219 | - TARGET_LIBDIR='' |
220 | - TARGET_ARCH='' |
221 | + TARGET_LIBDIR='' |
222 | + TARGET_ARCH='' |
223 | fi |
224 | |
225 | # Compilation flags |
226 | @@ -124,23 +127,33 @@ |
227 | export MYSQL_RPMBUILD_TEST="$TEST" |
228 | |
229 | ( |
230 | - cd "$WORKDIR" |
231 | - |
232 | - mkdir -p BUILD SOURCES RPMS SRPMS |
233 | - |
234 | - # Create the source archive |
235 | - (cd "$SOURCEDIR"; cmake .; make DUMMY="$DUMMY" dist) |
236 | - |
237 | - cp $SOURCEDIR/percona-xtrabackup-$XTRABACKUP_VERSION.tar.gz SOURCES/ |
238 | - cp $SOURCEDIR/storage/innobase/xtrabackup/utils/percona-xtrabackup.spec SPECS/ |
239 | - |
240 | - # Issue RPM command |
241 | - rpmbuild $SIGN $TARGET $TARGET_LIBDIR $TARGET_ARCH $DUMMY \ |
242 | - -ba --clean SPECS/percona-xtrabackup.spec \ |
243 | - --define "_topdir $WORKDIR_ABS" \ |
244 | - --define "xtrabackup_version $XTRABACKUP_VERSION" \ |
245 | - --define "xtrabackup_revision $REVISION" \ |
246 | - --define "redhat_version $REDHAT_RELEASE" \ |
247 | - --define "buildnumber $REVISION" |
248 | +cd "$WORKDIR" |
249 | + |
250 | +mkdir -p BUILD SOURCES RPMS SRPMS SPECS |
251 | + |
252 | +# Create the source archive |
253 | +(cd "$SOURCEDIR"; cmake .; make DUMMY="$DUMMY" dist) |
254 | + |
255 | +cp $SOURCEDIR/percona-xtrabackup-$XTRABACKUP_VERSION.tar.gz SOURCES/ |
256 | +cp $SOURCEDIR/storage/innobase/xtrabackup/utils/percona-xtrabackup.spec SPECS/ |
257 | +# |
258 | +if [ -z "${XB_VERSION_EXTRA:-}" ]; then |
259 | + EXTRAVER="%{nil}" |
260 | + RPM_EXTRAVER=1 |
261 | +else |
262 | + EXTRAVER=${XB_VERSION_EXTRA} |
263 | + RPM_EXTRAVER=.${XB_VERSION_EXTRA#-} |
264 | +fi |
265 | +# |
266 | + |
267 | +sed -i "s:@@XB_VERSION_EXTRA@@:${EXTRAVER}:g" SPECS/percona-xtrabackup.spec |
268 | +sed -i "s:@@XB_RPM_VERSION_EXTRA@@:${RPM_EXTRAVER}:g" SPECS/percona-xtrabackup.spec |
269 | +sed -i "s:@@XB_VERSION_MAJOR@@:${XB_VERSION_MAJOR}:g" SPECS/percona-xtrabackup.spec |
270 | +sed -i "s:@@XB_VERSION_MINOR@@:${XB_VERSION_MINOR}:g" SPECS/percona-xtrabackup.spec |
271 | +sed -i "s:@@XB_VERSION_PATCH@@:${XB_VERSION_PATCH}:g" SPECS/percona-xtrabackup.spec |
272 | +sed -i "s:@@XB_REVISION@@:${REVISION}:g" SPECS/percona-xtrabackup.spec |
273 | + |
274 | +# Issue RPM command |
275 | +rpmbuild --define "_topdir ${WORKDIR_ABS}" $SIGN $TARGET $TARGET_LIBDIR $TARGET_ARCH $DUMMY -ba --clean SPECS/percona-xtrabackup.spec |
276 | |
277 | ) |
278 | |
279 | === modified file 'storage/innobase/xtrabackup/utils/debian/changelog' |
280 | --- storage/innobase/xtrabackup/utils/debian/changelog 2014-03-11 15:24:27 +0000 |
281 | +++ storage/innobase/xtrabackup/utils/debian/changelog 2014-05-07 06:34:56 +0000 |
282 | @@ -1,96 +1,7 @@ |
283 | -percona-xtrabackup (2.1.8-1) unstable; urgency=low |
284 | - |
285 | - * Update to new upstream release Percona XtraBackup 2.1.8 |
286 | - |
287 | - -- Tomislav Plavcic <tomislav.plavcic@percona.com> Tue, 11 Mar 2014 16:22:36 +0100 |
288 | - |
289 | -percona-xtrabackup (2.1.7-1) unstable; urgency=low |
290 | - |
291 | - * Update to new upstream release Percona XtraBackup 2.1.7 |
292 | - |
293 | - -- Alexey Bychko <alexey.bychko@percona.com> Mon, 20 Dec 2013 19:31:00 +0700 |
294 | - |
295 | -percona-xtrabackup (2.1.6-3) unstable; urgency=low |
296 | - |
297 | - [ Stewart Smith ] |
298 | - * Add lsb-base as build dependency to fix URL generation in --help |
299 | - * Add Enhances: mysql-server |
300 | - |
301 | - [ Clint Byrum ] |
302 | - * Bumped standards version to 3.9.5 - No changes necessary. |
303 | - |
304 | - -- Stewart Smith <stewart.smith@percona.com> Wed, 11 Dec 2013 12:00:29 +1100 |
305 | - |
306 | -percona-xtrabackup (2.1.6-2) unstable; urgency=low |
307 | - |
308 | - * Update to new upstream release Percona XtraBackup 2.1.6 |
309 | - * Integrate packaging updates from upstream and Debian. |
310 | - |
311 | - -- Stewart Smith <stewart@flamingspork.com> Wed, 27 Nov 2013 15:15:17 +1100 |
312 | - |
313 | -percona-xtrabackup (2.1.5-1) unstable; urgency=low |
314 | - |
315 | - * Update to new upstream release Percona XtraBackup 2.1.5 |
316 | - |
317 | - -- Stewart Smith <stewart@flamingspork.com> Tue, 29 Oct 2013 14:56:54 +1100 |
318 | - |
319 | -percona-xtrabackup (2.1.3-618-1) unstable; urgency=low |
320 | - |
321 | - [ Stewart Smith ] |
322 | - * Initial packaging for Debian (Closes: #620824) |
323 | - |
324 | - [ Clint Byrum ] |
325 | - * Remove inaccurate Vcs-* fields. |
326 | - * Remove MAKE_J setting as it is handled by dpkg build tools. |
327 | - * Remove unnecesssary debian/percona-xtrabackup.dirs |
328 | - * Updating standards to 3.9.4, no changes necessary. |
329 | - * Add embedded-library libmysqlclient to |
330 | - percona-xtrabackup.lintian-overrides. |
331 | - |
332 | - -- Stewart Smith <stewart.smith@percona.com> Fri, 19 Jul 2013 16:18:36 +1000 |
333 | - |
334 | -percona-xtrabackup (2.1.0) unstable; urgency=low |
335 | - |
336 | - * Update compat level to 7 |
337 | - * Update Standards-Version to 3.9.1. |
338 | - * Use dh targets and overrides. |
339 | - * Remove the obsolete debian/info file |
340 | - * Move the /usr/share/percona-xtrabackup-test directory to |
341 | - the percona-xtrabackup-test package. |
342 | - * Update the copyright file to a machine-readable format. |
343 | - |
344 | - -- Ignacio Nin <ignacio.nin@percona.com> Mon, 22 Apr 2013 16:14:20 -0300 |
345 | - |
346 | -percona-xtrabackup (2.0.0) lucid; urgency=low |
347 | - |
348 | - * General polishing of debian/ directory |
349 | - * Add correct copyright info |
350 | - * Move rules for installing files (binaries and test) from rules to |
351 | - .install and .links files |
352 | - * Create per-package .dirs and .docs files |
353 | - * Add a lintian-overrides files |
354 | - |
355 | - -- Ignacio Nin <ignacio.nin@percona.com> Wed, 18 Apr 2012 02:34:40 +0000 |
356 | - |
357 | -percona-xtrabackup (1.9.1) unstable; urgency=low |
358 | - |
359 | - * Change package name to percona-xtrabackup |
360 | - |
361 | - -- Ignacio Nin <ignacio.nin@percona.com> Wed, 14 Mar 2012 16:52:34 -0300 |
362 | - |
363 | -xtrabackup (1.2) unstable; urgency=low |
364 | - |
365 | - * XtraBackup is based on XtraDB 10 |
366 | - |
367 | - -- Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com> Wed, 07 Mar 2010 23:45:00 +0200 |
368 | -xtrabackup (1.1) unstable; urgency=low |
369 | - |
370 | - * XtraBackup is ported to InnoDB plugin |
371 | - |
372 | - -- Aleksandr Kuzminsky <aleksandr.kuzminsky@percona.com> Mon, 15 Mar 2010 07:00:00 +0200 |
373 | -xtrabackup (1.0) unstable; urgency=low |
374 | - |
375 | - * Initial release |
376 | - |
377 | - -- Alex <aleksandr.kuzminsky@percona.com> Sun, 28 Jun 2009 14:20:17 -0700 |
378 | +percona-xtrabackup-22 (2.2.1) unstable; urgency=low |
379 | + |
380 | + * Update to new upstream alpha Percona XtraBackup 2.2.1 |
381 | + |
382 | + -- Alexey Bychko <alexey.bychko@percona.com> Thu, 27 Mar 2014 16:54:36 +0700 |
383 | + |
384 | |
385 | |
386 | === modified file 'storage/innobase/xtrabackup/utils/debian/control' |
387 | --- storage/innobase/xtrabackup/utils/debian/control 2014-03-05 07:13:02 +0000 |
388 | +++ storage/innobase/xtrabackup/utils/debian/control 2014-05-07 06:34:56 +0000 |
389 | @@ -1,4 +1,4 @@ |
390 | -Source: percona-xtrabackup |
391 | +Source: percona-xtrabackup-22 |
392 | Section: database |
393 | Priority: extra |
394 | Maintainer: Debian MySQL Maintainers <pkg-mysql-maint@lists.alioth.debian.org> |
395 | @@ -18,7 +18,7 @@ |
396 | Standards-Version: 3.9.5 |
397 | Homepage: http://www.percona.com/software/percona-xtrabackup |
398 | |
399 | -Package: percona-xtrabackup |
400 | +Package: percona-xtrabackup-22 |
401 | Architecture: any |
402 | Depends: libdbd-mysql-perl, ${misc:Depends}, ${shlibs:Depends} |
403 | Provides: xtrabackup |
404 | @@ -31,27 +31,28 @@ |
405 | InnoDB, XtraDB and MyISAM tables on MySQL/Percona Server 5.1 and |
406 | 5.5 servers, and has many advanced features. |
407 | |
408 | -Package: percona-xtrabackup-dbg |
409 | +Package: percona-xtrabackup-22-dbg |
410 | Section: debug |
411 | Architecture: any |
412 | -Depends: percona-xtrabackup (= ${binary:Version}), ${misc:Depends} |
413 | +Depends: percona-xtrabackup-22 (= ${binary:Version}), ${misc:Depends} |
414 | Description: Debug symbols for Percona XtraBackup |
415 | Debug symbols for the binaries in percona-xtrabackup. Install this |
416 | package if you need to run any of those with gdb. |
417 | |
418 | -Package: percona-xtrabackup-test |
419 | +Package: percona-xtrabackup-22-test |
420 | Architecture: any |
421 | -Depends: mysql-client, percona-xtrabackup, python, ${misc:Depends} |
422 | +Depends: mysql-client, percona-xtrabackup-22, python, ${misc:Depends} |
423 | Description: Test suite for Percona XtraBackup |
424 | Test suite for Percona XtraBackup. Install this package if you intend |
425 | to run XtraBackup's test suite. |
426 | |
427 | -Package: xtrabackup |
428 | +Package: xtrabackup-22 |
429 | Architecture: all |
430 | Section: oldlibs |
431 | -Depends: percona-xtrabackup, ${misc:Depends} |
432 | +Depends: percona-xtrabackup-22, ${misc:Depends} |
433 | Description: Transitional package for percona-xtrabackup |
434 | - In 2.0.0, the XtraBackup package name was rebranded to |
435 | + In 2.2.x, the XtraBackup package name was rebranded to |
436 | percona-xtrabackup. This package is an empty dummy package |
437 | that depends on percona-xtrabackup, and replaces older versions of |
438 | xtrabackup (2.0.0). It is not intended to be installed manually. |
439 | + |
440 | |
441 | === renamed file 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-test.install' => 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-22-test.install' |
442 | --- storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-test.install 2014-03-05 07:13:02 +0000 |
443 | +++ storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-22-test.install 2014-05-07 06:34:56 +0000 |
444 | @@ -1,1 +1,1 @@ |
445 | -/usr/share/percona-xtrabackup-test |
446 | +/usr/share/percona-xtrabackup-22-test |
447 | |
448 | === renamed file 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-test.lintian-overrides' => 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-22-test.lintian-overrides' |
449 | === renamed file 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup.docs' => 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-22.docs' |
450 | === renamed file 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup.install' => 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-22.install' |
451 | === renamed file 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup.links' => 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-22.links' |
452 | === renamed file 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup.lintian-overrides' => 'storage/innobase/xtrabackup/utils/debian/percona-xtrabackup-22.lintian-overrides' |
453 | === modified file 'storage/innobase/xtrabackup/utils/debian/rules' |
454 | --- storage/innobase/xtrabackup/utils/debian/rules 2014-03-05 07:13:02 +0000 |
455 | +++ storage/innobase/xtrabackup/utils/debian/rules 2014-05-07 06:34:56 +0000 |
456 | @@ -3,6 +3,7 @@ |
457 | |
458 | #export DH_VERBOSE=1 |
459 | |
460 | +NCPU=$(shell grep -c processor /proc/cpuinfo) |
461 | |
462 | # These are used for cross-compiling and for saving the configure script |
463 | # from having to guess our platform (since we know it already) |
464 | @@ -16,12 +17,9 @@ |
465 | |
466 | override_dh_auto_configure: |
467 | |
468 | - |
469 | -override_dh_auto_build: |
470 | - |
471 | ifeq "$(DEB_DUMMY)" "" |
472 | cmake -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX=/usr \ |
473 | - -DINSTALL_MYSQLTESTDIR=/usr/share/percona-xtrabackup-test . |
474 | + -DINSTALL_MYSQLTESTDIR=/usr/share/percona-xtrabackup-22-test . |
475 | else |
476 | # Dummy binaries that avoid compilation |
477 | echo 'main() { return 300; }' | gcc -x c - -o xtrabackup |
478 | @@ -32,9 +30,11 @@ |
479 | endif |
480 | |
481 | #docbook-to-man debian/xtrabackup.sgml > xtrabackup.1 |
482 | +override_dh_auto_build: |
483 | + make -j$(NCPU) |
484 | |
485 | override_dh_strip: |
486 | - dh_strip --dbg-package=percona-xtrabackup-dbg |
487 | + dh_strip --dbg-package=percona-xtrabackup-22-dbg |
488 | |
489 | %: |
490 | dh $@ |
491 | |
492 | === modified file 'storage/innobase/xtrabackup/utils/percona-xtrabackup.spec' |
493 | --- storage/innobase/xtrabackup/utils/percona-xtrabackup.spec 2014-03-21 13:02:28 +0000 |
494 | +++ storage/innobase/xtrabackup/utils/percona-xtrabackup.spec 2014-05-07 06:34:56 +0000 |
495 | @@ -1,93 +1,84 @@ |
496 | -# |
497 | -# rpm spec for xtrabackup |
498 | -# |
499 | -%{!?redhat_version:%define redhat_version 5} |
500 | -%{!?buildnumber:%define buildnumber 1} |
501 | -%define distribution el%{redhat_version} |
502 | -%define release %{buildnumber}.%{distribution} |
503 | -%{!?xtrabackup_revision:%define xtrabackup_revision undefined} |
504 | - |
505 | -%define __os_install_post /usr/lib/rpm/brp-compress |
506 | - |
507 | -Summary: XtraBackup online backup for MySQL / InnoDB |
508 | -Name: percona-xtrabackup |
509 | -Version: %{xtrabackup_version} |
510 | -Release: %{release} |
511 | -Group: Server/Databases |
512 | -License: GPLv2 |
513 | -Packager: Percona Development Team <mysql-dev@percona.com> |
514 | -URL: http://www.percona.com/software/percona-xtrabackup/ |
515 | -Source: percona-xtrabackup-%{xtrabackup_version}.tar.gz |
516 | -BuildRoot: %{_tmppath}/%{name}-%{version}-root |
517 | -Provides: xtrabackup |
518 | -Obsoletes: xtrabackup |
519 | -BuildRequires: libaio-devel, libgcrypt-devel |
520 | -Requires: perl(DBD::mysql) |
521 | +%define xb_version_major @@XB_VERSION_MAJOR@@ |
522 | +%define xb_version_minor @@XB_VERSION_MINOR@@ |
523 | +%define xb_version_patch @@XB_VERSION_PATCH@@ |
524 | +%define xb_version_extra @@XB_VERSION_EXTRA@@ |
525 | +%define xb_rpm_version_extra @@XB_RPM_VERSION_EXTRA@@ |
526 | +%define xb_revision @@XB_REVISION@@ |
527 | + |
528 | +##################################### |
529 | +Name: percona-xtrabackup-%{xb_version_major}%{xb_version_minor} |
530 | +Version: %{xb_version_major}.%{xb_version_minor}.%{xb_version_patch} |
531 | +Release: %{xb_revision}%{xb_rpm_version_extra}%{?dist} |
532 | +Summary: XtraBackup online backup for MySQL / InnoDB |
533 | + |
534 | +Group: Applications/Databases |
535 | +License: GPLv2 |
536 | +URL: http://www.percona.com/software/percona-xtrabackup |
537 | +Source: percona-xtrabackup-%{version}%{xb_version_extra}.tar.gz |
538 | + |
539 | +BuildRequires: cmake, libaio-devel, libgcrypt-devel, ncurses-devel, readline-devel |
540 | +Requires: perl(DBD::mysql) |
541 | +BuildRoot: %{_tmppath}/%{name}-%{version}-root |
542 | |
543 | %description |
544 | -Percona XtraBackup is OpenSource online (non-blockable) backup solution for InnoDB and XtraDB engines. |
545 | - |
546 | -%package test |
547 | -Summary: Test suite for Percona Xtrabackup |
548 | -Group: Applications/Databases |
549 | -Requires: percona-xtrabackup |
550 | -AutoReqProv: no |
551 | -Requires: /usr/bin/mysql |
552 | - |
553 | -%description test |
554 | -This package contains the test suite for Percona Xtrabackup |
555 | - |
556 | - |
557 | -%changelog |
558 | - |
559 | +Percona XtraBackup is OpenSource online (non-blockable) backup solution for InnoDB and XtraDB engines |
560 | + |
561 | +%package -n percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} |
562 | +Summary: Test suite for Percona XtraBackup |
563 | +Group: Applications/Databases |
564 | +Requires: percona-xtrabackup-%{xb_version_major}%{xb_version_minor} = %{version}-%{release} |
565 | +Requires: /usr/bin/mysql |
566 | +AutoReqProv: no |
567 | + |
568 | +%description -n percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} |
569 | +This package contains the test suite for Percona XtraBackup %{version} |
570 | |
571 | %prep |
572 | -%setup -q |
573 | +%setup -q -n percona-xtrabackup-%{version}%{xb_version_extra} |
574 | |
575 | +%bcond_with dummy |
576 | |
577 | %build |
578 | -set -ue |
579 | -%if %{undefined dummy} |
580 | -export CC=${CC-"gcc"} |
581 | -export CXX=${CXX-"g++"} |
582 | -export CFLAGS="$CFLAGS -DXTRABACKUP_VERSION=\\\"%{xtrabackup_version}\\\" -DXTRABACKUP_REVISION=\\\"%{xtrabackup_revision}\\\"" |
583 | -export CXXFLAGS="$CXXFLAGS -DXTRABACKUP_VERSION=\\\"%{xtrabackup_version}\\\" -DXTRABACKUP_REVISION=\\\"%{xtrabackup_revision}\\\"" |
584 | # |
585 | - |
586 | -cmake -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
587 | - -DINSTALL_MYSQLTESTDIR=%{_datadir}/percona-xtrabackup-test . |
588 | -%{__make} %{?_smp_mflags} |
589 | - |
590 | -%else |
591 | +%if %{with dummy} |
592 | # Dummy binaries that avoid compilation |
593 | echo 'main() { return 300; }' | gcc -x c - -o storage/innobase/xtrabackup/src/xtrabackup |
594 | echo 'main() { return 300; }' | gcc -x c - -o storage/innobase/xtrabackup/src/xbstream |
595 | echo 'main() { return 300; }' | gcc -x c - -o storage/innobase/xtrabackup/src/xbcrypt |
596 | +# |
597 | +%else |
598 | +# |
599 | +export CC=${CC-"gcc"} |
600 | +export CXX=${CXX-"g++"} |
601 | +export CFLAGS="$CFLAGS -DXTRABACKUP_VERSION=\\\"%{xtrabackup_version}\\\" -DXTRABACKUP_REVISION=\\\"%{xtrabackup_revision}\\\"" |
602 | +export CXXFLAGS="$CXXFLAGS -DXTRABACKUP_VERSION=\\\"%{xtrabackup_version}\\\" -DXTRABACKUP_REVISION=\\\"%{xtrabackup_revision}\\\"" |
603 | +# |
604 | +cmake -DBUILD_CONFIG=xtrabackup_release -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
605 | + -DINSTALL_MYSQLTESTDIR=%{_datadir}/percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} . |
606 | +# |
607 | +make %{?_smp_mflags} |
608 | +# |
609 | %endif |
610 | - |
611 | +# |
612 | %install |
613 | -[ "%{buildroot}" != '/' ] && rm -rf %{buildroot} |
614 | - |
615 | -%makeinstall |
616 | -%{__make} install DESTDIR=$RPM_BUILD_ROOT |
617 | - |
618 | +rm -rf $RPM_BUILD_ROOT |
619 | +make install DESTDIR=$RPM_BUILD_ROOT |
620 | |
621 | %clean |
622 | -[ "%{buildroot}" != '/' ] && rm -rf %{buildroot} |
623 | +rm -rf $RPM_BUILD_ROOT |
624 | |
625 | %files |
626 | -%defattr(-,root,root) |
627 | +%defattr(-,root,root,-) |
628 | %{_bindir}/innobackupex |
629 | %{_bindir}/xtrabackup |
630 | %{_bindir}/xbstream |
631 | %{_bindir}/xbcrypt |
632 | %doc COPYING |
633 | |
634 | -%files -n percona-xtrabackup-test |
635 | -%{_datadir}/percona-xtrabackup-test |
636 | - |
637 | -### |
638 | -### eof |
639 | -### |
640 | - |
641 | - |
642 | +%files -n percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} |
643 | +%defattr(-,root,root,-) |
644 | +%{_datadir}/percona-xtrabackup-test-%{xb_version_major}%{xb_version_minor} |
645 | + |
646 | +%changelog |
647 | +* Wed Mar 26 2014 Alexey Bychko <alexey.bychko@percona.com> |
648 | +- initial alpha release for 2.2 (2.2.1-alpha1) |