[arch-commits] Commit in xtrabackup/trunk (PKGBUILD build.patch)

Massimiliano Torromeo mtorromeo at nymeria.archlinux.org
Thu Feb 13 14:06:10 UTC 2014


    Date: Thursday, February 13, 2014 @ 15:06:09
  Author: mtorromeo
Revision: 105672

upgpkg: xtrabackup 2.1.7-3

Rebuild with xtradb56, removed link from xtrabackup_55 to xtrabackup (xtrabackup is for mysql 5.1 and shouldn't be called directly anyway. the command to use is innobackupex)

Added:
  xtrabackup/trunk/build.patch
Modified:
  xtrabackup/trunk/PKGBUILD

-------------+
 PKGBUILD    |   25 +++++++++++++++----------
 build.patch |   11 +++++++++++
 2 files changed, 26 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-02-13 11:03:29 UTC (rev 105671)
+++ PKGBUILD	2014-02-13 14:06:09 UTC (rev 105672)
@@ -1,9 +1,10 @@
 # $Id$
 # Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
 
 pkgname=xtrabackup
 pkgver=2.1.7
-pkgrel=2
+pkgrel=3
 pkgdesc='Non-blocking backup tool for MySQL'
 arch=('i686' 'x86_64')
 url='http://www.percona.com/software/percona-xtrabackup/'
@@ -10,13 +11,17 @@
 license=('GPL')
 depends=('libaio' 'libgcrypt' 'openssl')
 makedepends=('cmake' 'python-sphinx' 'zlib')
-source=(http://percona.com/redir/downloads/XtraBackup/XtraBackup-$pkgver/source/percona-xtrabackup-$pkgver.tar.gz)
-md5sums=('cce4ad2e6e1481a98cd403563fd989dc')
+source=(http://percona.com/redir/downloads/XtraBackup/XtraBackup-$pkgver/source/percona-xtrabackup-$pkgver.tar.gz
+        build.patch)
 
 build() {
   cd percona-xtrabackup-$pkgver
-  utils/build.sh innodb55
 
+  utils/build.sh xtradb55
+  cp src/xtrabackup_55 src/xbstream src/xbcrypt .
+  utils/build.sh xtradb56
+  cp src/xtrabackup_56 .
+
   cd doc
   make man
 }
@@ -24,15 +29,15 @@
 package() {
   cd percona-xtrabackup-$pkgver
 
-  install -D innobackupex "$pkgdir"/usr/bin/innobackupex
-  install -D src/xtrabackup_innodb55 "$pkgdir"/usr/bin/xtrabackup_55
-  install -D src/xbcrypt "$pkgdir"/usr/bin/xbcrypt
-  install -D src/xbstream "$pkgdir"/usr/bin/xbstream
+  for file in innobackupex xtrabackup_55 xtrabackup_56 xbcrypt xbstream; do
+    install -Dm0755 $file "$pkgdir"/usr/bin/$file
+  done
 
-  ln -s /usr/bin/xtrabackup_55 "$pkgdir"/usr/bin/xtrabackup
-
   cd doc/build/man
   for file in *.1; do
     install -Dm0644 $file "$pkgdir"/usr/share/man/man1/$file
   done
 }
+
+sha256sums=('b0a89dd805fe25d1fd00c3f84b43d59e88173a19e2075d444a116118e2623587'
+            'e6f329c061c921be6e44e16fd64d79bcca8c61ea1ce4a1d2f923408d30318b25')

Added: build.patch
===================================================================
--- build.patch	                        (rev 0)
+++ build.patch	2014-02-13 14:06:09 UTC (rev 105672)
@@ -0,0 +1,11 @@
+--- utils/build.sh.orig 2014-01-24 10:37:41.206535420 +0100
++++ utils/build.sh      2014-01-24 10:44:00.841407894 +0100
+@@ -167,6 +167,9 @@
+     tar xzf $top_dir/$1
+     cd $dirname
+     patch -p1 < $top_dir/patches/$2
++    sed 's|srv_buf_size|srv_sort_buf_size|g' -i \
++        sql/sql_planner.cc \
++        storage/innobase/row/row0log.cc
+     cd -
+ }




More information about the arch-commits mailing list