File percona-xtrabackup-2.0.2-nodoc.patch of Package xtrabackup
The rpm spec file extracts the MySQL sources during %setup,
make the build script work with that.
Index: utils/build.sh
===================================================================
--- utils/build.sh.orig 2012-08-07 17:04:50.000000000 +0100
+++ utils/build.sh 2012-08-14 19:18:52.000000000 +0100
@@ -80,7 +80,6 @@ AUTO_DOWNLOAD to \"yes\""
################################################################################
function unpack_and_patch()
{
- tar xzf $top_dir/$1
cd `basename "$1" ".tar.gz"`
patch -p1 < $top_dir/patches/$2
cd ..
@@ -160,9 +159,6 @@ function build_all()
server_tarball=mysql-$mysql_version.tar.gz
innodb_dir=$server_dir/storage/$innodb_name
- echo "Downloading sources"
- auto_download $server_tarball
-
test -d $server_dir && rm -r $server_dir
echo "Preparing sources"