[arch-commits] Commit in mariadb/trunk (2 files)
Christian Hesse
eworm at archlinux.org
Tue Aug 23 08:22:31 UTC 2016
Date: Tuesday, August 23, 2016 @ 08:22:30
Author: eworm
Revision: 274604
upgpkg: mariadb 10.1.16-2
* fix crash with wsrep initialization (FS#48724)
Added:
mariadb/trunk/0001-remove-const-qualifier-and-fix-crash-with-wsrep-init.patch
Modified:
mariadb/trunk/PKGBUILD
-----------------------------------------------------------------+
0001-remove-const-qualifier-and-fix-crash-with-wsrep-init.patch | 30 ++++++++++
PKGBUILD | 8 ++
2 files changed, 37 insertions(+), 1 deletion(-)
Added: 0001-remove-const-qualifier-and-fix-crash-with-wsrep-init.patch
===================================================================
--- 0001-remove-const-qualifier-and-fix-crash-with-wsrep-init.patch (rev 0)
+++ 0001-remove-const-qualifier-and-fix-crash-with-wsrep-init.patch 2016-08-23 08:22:30 UTC (rev 274604)
@@ -0,0 +1,30 @@
+From 82691c53c7d84f79116b3f94cbe5fd7d7006d5e4 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail at eworm.de>
+Date: Tue, 23 Aug 2016 09:43:14 +0200
+Subject: [PATCH 1/1] remove const qualifier and fix crash with wsrep
+ initialization
+
+Compiling MariaDB with GCC 6.x makes it crash in wsrep/galera
+initialization. This fixes the crash.
+
+Signed-off-by: Christian Hesse <mail at eworm.de>
+---
+ sql/wsrep_mysqld.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc
+index 823a2a7..8760a11 100644
+--- a/sql/wsrep_mysqld.cc
++++ b/sql/wsrep_mysqld.cc
+@@ -169,7 +169,7 @@ static PSI_file_info wsrep_files[]=
+
+ my_bool wsrep_inited = 0; // initialized ?
+
+-static const wsrep_uuid_t cluster_uuid = WSREP_UUID_UNDEFINED;
++static wsrep_uuid_t cluster_uuid = WSREP_UUID_UNDEFINED;
+ static char cluster_uuid_str[40]= { 0, };
+ static const char* cluster_status_str[WSREP_VIEW_MAX] =
+ {
+--
+2.9.3
+
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-08-23 07:40:30 UTC (rev 274603)
+++ PKGBUILD 2016-08-23 08:22:30 UTC (rev 274604)
@@ -6,7 +6,7 @@
pkgname=('libmariadbclient' 'mariadb-clients' 'mytop' 'mariadb')
pkgver=10.1.16
_pkgver=${pkgver/.a/a}
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
license=('GPL')
url='http://mariadb.org/'
@@ -13,11 +13,13 @@
makedepends=('cmake' 'zlib' 'libaio' 'libxml2' 'openssl' 'pcre' 'jemalloc'
'lz4' 'boost' 'libevent' 'systemd')
source=(http://ftp.heanet.ie/mirrors/mariadb/mariadb-$pkgver/source/mariadb-$pkgver.tar.gz{,.asc}
+ 0001-remove-const-qualifier-and-fix-crash-with-wsrep-init.patch
mariadb-sysusers.conf
mariadb-tmpfile.conf)
validpgpkeys=('199369E5404BD5FC7D2FE43BCBCB082A1BB943DB') # MariaDB Package Signing Key <package-signing-key at mariadb.org>
md5sums=('2a26b8d6560693cfc51031e76522cb78'
'SKIP'
+ 'e20903f4749af55fa4bf82f7d61be3b0'
'97364065dd980909e04f97821a037ab0'
'2fa6e456964d4ff5e6d4f9ff0126aed6')
@@ -28,6 +30,10 @@
sed -i -e '/^Alias/d' \
-e '/^PrivateTmp/c PrivateTmp=true' \
$pkgbase-$_pkgver/support-files/mariadb{,@}.service.in
+
+ cd $pkgbase-$_pkgver
+
+ patch -Np1 < "${srcdir}/0001-remove-const-qualifier-and-fix-crash-with-wsrep-init.patch"
}
build() {
More information about the arch-commits
mailing list