aboutsummaryrefslogtreecommitdiff
path: root/system/percona-xtrabackup
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2013-02-10 10:26:15 -0500
committerdsomero <xgizzmo@slackbuilds.org>2013-02-13 19:33:45 -0500
commit1035fa1d2296492712891ad4760879abb0c8fc8f (patch)
treeeab4e16c8c7cbbbe64bd08c3f7829d53b47c4580 /system/percona-xtrabackup
parent8bf7ff734b12dd6386019fd23a6e631c5414c08b (diff)
system/percona-xtrabackup: Fixed CFLAGS and innobackupex script.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/percona-xtrabackup')
-rw-r--r--system/percona-xtrabackup/percona-xtrabackup.SlackBuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/system/percona-xtrabackup/percona-xtrabackup.SlackBuild b/system/percona-xtrabackup/percona-xtrabackup.SlackBuild
index 16d07989e6c8..333e3b7b946e 100644
--- a/system/percona-xtrabackup/percona-xtrabackup.SlackBuild
+++ b/system/percona-xtrabackup/percona-xtrabackup.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=percona-xtrabackup
VERSION=2.0.4
PERCONA_VERSION=5.5.16-rel22.0
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -115,14 +115,14 @@ cd -
# build xtrabackup
cd src
LIBS="-lrt" \
+ CFLAGS="$SLKCFLAGS" \
make \
- CFLAGS="$SLKCFLAGS" \
MYSQL_ROOT_DIR="$TMP/Percona-Server-$PERCONA_VERSION" \
clean
LIBS="-lrt" \
+ CFLAGS="$SLKCFLAGS" \
make \
- CFLAGS="$SLKCFLAGS" \
MYSQL_ROOT_DIR="$TMP/Percona-Server-$PERCONA_VERSION" \
XTRABACKUP_VERSION=$VERSION \
xtradb55
@@ -134,6 +134,9 @@ install -m 755 src/xbstream $PKG/usr/bin/
install -m 755 innobackupex $PKG/usr/bin/
install -m 644 doc/xtrabackup.1 $PKG/usr/man/man1/
+# Fix xtrabackup usage in innobackupex
+sed -i "s/xtrabackup_55/xtrabackup/g" $PKG/usr/bin/innobackupex
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true