summaryrefslogtreecommitdiff
path: root/system/percona-xtrabackup
diff options
context:
space:
mode:
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 16d07989e6..333e3b7b94 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