~longbow/test/xtrabackup-tests

« back to all changes in this revision

Viewing changes to utils/build.sh

  • Committer: Alexey Kopytov
  • Date: 2010-12-01 20:43:33 UTC
  • Revision ID: akopytov@gmail.com-20101201204333-c5egho7tvq0im8ai
LP bug#683507: xtrabackup should be updated to use the latest 5.1, 5.5
and XtraDB releases

Updated xtrabackup's Makefile and the 5.5 patch so that they are now
based on MySQL 5.5.7.

In addition, to simplify maintenance the parallel transfer functionality
was changed to use os_mutex_* API rather than the mutex_* one because
the last one was changed in 5.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
        $MAKE_CMD
79
79
        ;;
80
80
"5.5")
81
 
        mysql_version=5.5.6-rc
 
81
        mysql_version=5.5.7-rc
82
82
        reqs="mysql-$mysql_version.tar.gz libtar-1.2.11.tar.gz"
83
83
        for i in $reqs
84
84
        do
110
110
 
111
111
        echo "Compile MySQL"
112
112
        cd $top_dir/mysql-$mysql_version
 
113
        # We do not support CMake at the moment
 
114
        export HAVE_CMAKE=no
 
115
        # We need to build with partitioning due to MySQL bug #58632
113
116
        ./configure --enable-local-infile \
114
117
            --enable-thread-safe-client \
115
 
            --with-plugins=innobase \
 
118
            --with-plugins=innobase,partition \
116
119
            --with-zlib-dir=bundled \
117
120
            --enable-shared \
118
121
            --with-extra-charsets=complex --disable-dtrace
177
180
        ./configure
178
181
        $MAKE_CMD
179
182
        ;;
180
 
"5.5")
181
 
        mysql_version=5.5.6-rc
182
 
        reqs="mysql-$mysql_version.tar.gz libtar-1.2.11.tar.gz"
183
 
        for i in $reqs
184
 
        do
185
 
                if ! test -f $i
186
 
                then
187
 
                        if [ "$AUTO_DOWNLOAD" = "yes" ]
188
 
                        then
189
 
                                wget "$MASTER_SITE"/$i
190
 
                        else
191
 
                                echo "Put $i in $top_dir or set environment variable AUTO_DOWNLOAD to \"yes\""
192
 
                                exit -1
193
 
                        fi
194
 
                fi
195
 
        done
196
 
        test -d mysql-$mysql_version && rm -r mysql-$mysql_version
197
 
        
198
 
        echo "Prepare sources"
199
 
        tar zxf mysql-$mysql_version.tar.gz
200
 
        cd $top_dir/mysql-$mysql_version/
201
 
        patch -p1 < $top_dir/fix_innodb_for_backup55.patch
202
 
 
203
 
        cd $top_dir/mysql-$mysql_version
204
 
        tar zxf $top_dir/libtar-1.2.11.tar.gz
205
 
        cd $top_dir/mysql-$mysql_version/libtar-1.2.11
206
 
        patch -p1 < $top_dir/tar4ibd_libtar-1.2.11.patch
207
 
 
208
 
        mkdir $top_dir/mysql-$mysql_version/storage/innobase/xtrabackup
209
 
        cp $top_dir/Makefile $top_dir/xtrabackup.c $top_dir/innobackupex-1.5.1 $top_dir/mysql-$mysql_version/storage/innobase/xtrabackup
210
 
 
211
 
        echo "Compile MySQL"
212
 
        cd $top_dir/mysql-$mysql_version
213
 
        ./configure --enable-local-infile \
214
 
            --enable-thread-safe-client \
215
 
            --with-plugins=innobase \
216
 
            --with-zlib-dir=bundled \
217
 
            --enable-shared \
218
 
            --with-extra-charsets=complex
219
 
        $MAKE_CMD all
220
 
        
221
 
        echo "Compile XtraBackup"
222
 
        cd $top_dir/mysql-$mysql_version/storage/innobase/xtrabackup
223
 
        $MAKE_CMD 5.5
224
 
        
225
 
        echo "Compile tar4ibd"
226
 
        cd $top_dir/mysql-$mysql_version/libtar-1.2.11
227
 
        ./configure
228
 
        $MAKE_CMD
229
 
        ;;
230
183
"xtradb")
231
184
        mysql_version=5.1.47
232
185
        xtradb_version=11