Patch24: %{name}-cmake.patch
Patch25: %{name}-readline.patch
Patch26: mysqldumpslow-clusters.patch
+Patch27: x32.patch
URL: http://www.mysql.com/products/community/
BuildRequires: bison >= 1.875
BuildRequires: cmake >= 2.6
%patch24 -p1
%patch25 -p1
%patch26 -p1
+%patch27 -p1
# to get these files rebuild
[ -f sql/sql_yacc.cc ] && %{__rm} sql/sql_yacc.cc
--- /dev/null
+--- percona-server-5.6.21-70.1/include/m_string.h~ 2014-12-28 15:51:15.000000000 +0000
++++ percona-server-5.6.21-70.1/include/m_string.h 2014-12-28 17:47:02.185659146 +0000
+@@ -252,7 +252,7 @@
+ @return the last non-space character
+ */
+
+-#ifdef __x86_64__
++#if defined(__x86_64__) && !defined(__ILP32__)
+
+ #if SIZEOF_LONG != 8
+ # error "SIZEOF_LONG != 8"