[arch-commits] Commit in mariadb/trunk (3 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sat Jun 6 19:48:01 UTC 2015


    Date: Saturday, June 6, 2015 @ 21:48:01
  Author: bpiotrowski
Revision: 240383

upgpkg: mariadb 10.0.19-1

Run 'systemd-tmpfiles' only if systemd is installed. (FS#44862)

Modified:
  mariadb/trunk/PKGBUILD
  mariadb/trunk/mariadb.install
Deleted:
  mariadb/trunk/mariadb-10.0.18-MDEV-8115.patch

---------------------------------+
 PKGBUILD                        |   19 +++--------
 mariadb-10.0.18-MDEV-8115.patch |   61 --------------------------------------
 mariadb.install                 |    6 ++-
 3 files changed, 10 insertions(+), 76 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-06 18:55:19 UTC (rev 240382)
+++ PKGBUILD	2015-06-06 19:48:01 UTC (rev 240383)
@@ -3,30 +3,23 @@
 
 pkgbase=mariadb
 pkgname=('libmariadbclient' 'mariadb-clients' 'mytop' 'mariadb')
-pkgver=10.0.18
+pkgver=10.0.19
 _pkgver=${pkgver/.a/a}
-pkgrel=2
+pkgrel=1
 arch=('i686' 'x86_64')
 license=('GPL')
 url='http://mariadb.org/'
 makedepends=('cmake' 'openssl' 'zlib' 'libaio' 'libxml2' 'openssl' 'pcre'
              'jemalloc' 'lz4')
-source=(https://downloads.mariadb.org/interstitial/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz
+source=(http://mariadb.kisiek.net/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz
         mariadb.service
         mariadb-post.sh
-        mariadb-tmpfile.conf
-        mariadb-10.0.18-MDEV-8115.patch)
-md5sums=('eab4f9303883d33558c0059af9e30aa4'
+        mariadb-tmpfile.conf)
+md5sums=('aeaf101c688515dc8f73a5250e6c1df9'
          'd488fffa9f62f9949c4aa1bb6e6db692'
          'b79e65a5aa536e6b5bc60988eb0b78a2'
-         '2fa6e456964d4ff5e6d4f9ff0126aed6'
-         '4be445c305df3cca61aa9a40a1886964')
+         '2fa6e456964d4ff5e6d4f9ff0126aed6')
 
-prepare() {
-  cd $pkgbase-$pkgver
-  patch -p1 -i ../mariadb-10.0.18-MDEV-8115.patch
-}
-
 build() {
   mkdir build
   cd build

Deleted: mariadb-10.0.18-MDEV-8115.patch
===================================================================
--- mariadb-10.0.18-MDEV-8115.patch	2015-06-06 18:55:19 UTC (rev 240382)
+++ mariadb-10.0.18-MDEV-8115.patch	2015-06-06 19:48:01 UTC (rev 240383)
@@ -1,61 +0,0 @@
-From 0014bdc7eef141dcd66930e853242b3be4960831 Mon Sep 17 00:00:00 2001
-From: Sergei Golubchik <serg at mariadb.org>
-Date: Thu, 7 May 2015 22:18:34 +0200
-Subject: [PATCH] MDEV-8115 mysql_upgrade crashes the server with REPAIR VIEW
-
-on REPAIR don't do table-specific stuff for views
-(because even if the view has a temp table opened for it,
-it's not opened all the way down the engine. In particular,
-Aria crashes in maria_status() because MARIA_HA* info - that is
-table->table->file->file - is NULL)
----
- mysql-test/r/repair.result | 7 +++++++
- mysql-test/t/repair.test   | 9 +++++++++
- sql/sql_admin.cc           | 2 +-
- 3 files changed, 17 insertions(+), 1 deletion(-)
-
-diff --git a/mysql-test/r/repair.result b/mysql-test/r/repair.result
-index 52ae9c3..51c3374 100644
---- a/mysql-test/r/repair.result
-+++ b/mysql-test/r/repair.result
-@@ -207,3 +207,10 @@ check table t1;
- Table	Op	Msg_type	Msg_text
- test.t1	check	status	OK
- drop table t1;
-+create table t1 (a blob);
-+create view v1 as select * from t1;
-+repair view v1;
-+Table	Op	Msg_type	Msg_text
-+test.v1	repair	status	OK
-+drop view v1;
-+drop table t1;
-diff --git a/mysql-test/t/repair.test b/mysql-test/t/repair.test
-index 337b73f..f625965 100644
---- a/mysql-test/t/repair.test
-+++ b/mysql-test/t/repair.test
-@@ -208,3 +208,12 @@ repair table t1 use_frm;
- select count(*) from t1;
- check table t1;
- drop table t1;
-+
-+#
-+# MDEV-8115 mysql_upgrade crashes the server with REPAIR VIEW
-+#
-+create table t1 (a blob);
-+create view v1 as select * from t1;
-+repair view v1;
-+drop view v1;
-+drop table t1;
-diff --git a/sql/sql_admin.cc b/sql/sql_admin.cc
-index 44057b6..9827c67 100644
---- a/sql/sql_admin.cc
-+++ b/sql/sql_admin.cc
-@@ -901,7 +901,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
-         break;
-       }
-     }
--    if (table->table)
-+    if (table->table && !table->view)
-     {
-       if (table->table->s->tmp_table)
-       {

Modified: mariadb.install
===================================================================
--- mariadb.install	2015-06-06 18:55:19 UTC (rev 240382)
+++ mariadb.install	2015-06-06 19:48:01 UTC (rev 240383)
@@ -1,12 +1,14 @@
 post_install(){
   groupadd -g 89 mysql &>/dev/null
-  useradd -u 89 -g mysql -d /var/lib/mysql -s /bin/false mysql &>/dev/null
+  useradd -u 89 -g 89 -d /var/lib/mysql -s /bin/false mysql &>/dev/null
 
   echo ":: You need to initialize the MariaDB data directory prior to starting"
   echo "   the service. This can be done with mysql_install_db command, e.g.:"
   echo "   mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql"
 
-  usr/bin/systemd-tmpfiles --create mysql.conf
+  if hash systemd-tmpfiles &> /dev/null; then
+    systemd-tmpfiles --create mysql.conf
+  fi
 }
 
 post_upgrade(){



More information about the arch-commits mailing list