Merge lp:~laurynas-biveinis/percona-xtrabackup/bug1142229-2.0 into lp:percona-xtrabackup/2.0

Proposed by Alexey Kopytov
Status: Merged
Approved by: Alexey Kopytov
Approved revision: no longer in the source branch.
Merged at revision: 503
Proposed branch: lp:~laurynas-biveinis/percona-xtrabackup/bug1142229-2.0
Merge into: lp:percona-xtrabackup/2.0
Diff against target: 85 lines (+28/-7)
1 file modified
utils/build.sh (+28/-7)
To merge this branch: bzr merge lp:~laurynas-biveinis/percona-xtrabackup/bug1142229-2.0
Reviewer Review Type Date Requested Status
Alexey Kopytov (community) Approve
Review via email: mp+151412@code.launchpad.net
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 'utils/build.sh'
2--- utils/build.sh 2013-02-20 10:19:08 +0000
3+++ utils/build.sh 2013-03-04 04:58:20 +0000
4@@ -10,8 +10,30 @@
5 AUTO_DOWNLOAD=${AUTO_DOWNLOAD:-no}
6 MASTER_SITE="http://s3.amazonaws.com/percona.com/downloads/community"
7
8+# Set the build type and resolve synonyms
9+case "$1" in
10+"5.0" )
11+ type="innodb50"
12+ ;;
13+"5.1" )
14+ type="innodb51_builtin"
15+ ;;
16+"plugin" )
17+ type="innodb51"
18+ ;;
19+"5.5" )
20+ type="innodb55"
21+ ;;
22+"xtradb" )
23+ type="xtradb51"
24+ ;;
25+*)
26+ type=$1
27+ ;;
28+esac
29+
30 # Percona Server 5.5 does not build with -Werror, so ignore DEBUG for now
31-if [ -n "$DEBUG" -a "$1" != "galera55" -a "$1" != "xtradb55" -a "$1" != "xtradb51" -a "$1" != "xtradb" ]
32+if [ -n "$DEBUG" -a "$type" != "galera55" -a "$type" != "xtradb55" -a "$type" != "xtradb51" ]
33 then
34 # InnoDB extra debug flags
35 innodb_extra_debug="-DUNIV_DEBUG -DUNIV_SYNC_DEBUG -DUNIV_MEM_DEBUG \
36@@ -30,7 +52,7 @@
37 extra_config_55=
38 fi
39
40-if [ "$1" = "innodb51_builtin" -o "$1" = "innodb50" ]
41+if [ "$type" = "innodb51_builtin" -o "$type" = "innodb50" ]
42 then
43 # include/*.ic in pre-5.1-plugin InnoDB do not compile well in C++.
44 export CXXFLAGS="$CXXFLAGS -fpermissive"
45@@ -188,12 +210,11 @@
46 usage
47 fi
48
49-type=$1
50 top_dir=`pwd`
51
52
53 case "$type" in
54-"innodb51_builtin" | "5.1" | "innodb50" | "5.0")
55+"innodb51_builtin" | "innodb50")
56 mysql_version=$MYSQL_51_VERSION
57 server_patch=innodb51_builtin.patch
58 innodb_name=innobase
59@@ -208,7 +229,7 @@
60 build_all
61 ;;
62
63-"innodb51" | "plugin")
64+"innodb51")
65 mysql_version=$MYSQL_51_VERSION
66 server_patch=innodb51.patch
67 innodb_name=innodb_plugin
68@@ -222,7 +243,7 @@
69
70 build_all
71 ;;
72-"innodb55" | "5.5")
73+"innodb55")
74 mysql_version=$MYSQL_55_VERSION
75 server_patch=innodb55.patch
76 innodb_name=innobase
77@@ -239,7 +260,7 @@
78 build_all
79 ;;
80
81-"xtradb51" | "xtradb" | "mariadb51" | "mariadb52" | "mariadb53")
82+"xtradb51" | "mariadb51" | "mariadb52" | "mariadb53")
83 server_dir=$top_dir/Percona-Server
84 branch_dir=percona-server-5.1-xtrabackup
85 innodb_dir=$server_dir/storage/innodb_plugin

Subscribers

People subscribed via source and target branches