Percona Server 5.5.22-25.2
Closes Homebrew/homebrew#12177. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
b120b9b678
commit
cc9639123b
1 changed files with 48 additions and 34 deletions
|
@ -1,10 +1,10 @@
|
|||
require 'formula'
|
||||
|
||||
class PerconaServer < Formula
|
||||
url 'http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.15-21.0/source/Percona-Server-5.5.15-rel21.0.tar.gz'
|
||||
url 'http://www.percona.com/redir/downloads/Percona-Server-5.5/Percona-Server-5.5.22-25.2/source/Percona-Server-5.5.22-rel25.2.tar.gz'
|
||||
homepage 'http://www.percona.com'
|
||||
md5 'd04b6d1cc863f121f5d1eac8bc618331'
|
||||
version '5.5.15-21.0'
|
||||
md5 '2fc67b0e0e31c1a7949beae9399abc33'
|
||||
version '5.5.22-25.2'
|
||||
|
||||
keg_only "This brew conflicts with 'mysql'. It's safe to `brew link` if you haven't installed 'mysql'"
|
||||
|
||||
|
@ -49,7 +49,8 @@ class PerconaServer < Formula
|
|||
"-DWITH_SSL=yes",
|
||||
"-DDEFAULT_CHARSET=utf8",
|
||||
"-DDEFAULT_COLLATION=utf8_general_ci",
|
||||
"-DSYSCONFDIR=#{etc}"
|
||||
"-DSYSCONFDIR=#{etc}",
|
||||
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
||||
]
|
||||
|
||||
# To enable unit testing at build, we need to download the unit testing suite
|
||||
|
@ -158,22 +159,26 @@ end
|
|||
|
||||
|
||||
__END__
|
||||
--- old/scripts/mysqld_safe.sh 2009-09-02 04:10:39.000000000 -0400
|
||||
+++ new/scripts/mysqld_safe.sh 2009-09-02 04:52:55.000000000 -0400
|
||||
@@ -383,7 +383,7 @@
|
||||
fi
|
||||
|
||||
USER_OPTION=""
|
||||
-if test -w / -o "$USER" = "root"
|
||||
+if test -w /sbin -o "$USER" = "root"
|
||||
then
|
||||
if test "$user" != "root" -o $SET_USER = 1
|
||||
then
|
||||
diff --git a/configure.cmake b/configure.cmake
|
||||
index c3cc787..6193481 100644
|
||||
--- a/configure.cmake
|
||||
+++ b/configure.cmake
|
||||
@@ -149,7 +149,9 @@ IF(UNIX)
|
||||
SET(CMAKE_REQUIRED_LIBRARIES
|
||||
${LIBM} ${LIBNSL} ${LIBBIND} ${LIBCRYPT} ${LIBSOCKET} ${LIBDL} ${CMAKE_THREAD_LIBS_INIT} ${LIBRT})
|
||||
|
||||
- LIST(REMOVE_DUPLICATES CMAKE_REQUIRED_LIBRARIES)
|
||||
+ IF(CMAKE_REQUIRED_LIBRARIES)
|
||||
+ LIST(REMOVE_DUPLICATES CMAKE_REQUIRED_LIBRARIES)
|
||||
+ ENDIF()
|
||||
LINK_LIBRARIES(${CMAKE_THREAD_LIBS_INIT})
|
||||
|
||||
OPTION(WITH_LIBWRAP "Compile with tcp wrappers support" OFF)
|
||||
diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh
|
||||
index efc8254..8964b70 100644
|
||||
index 9296075..a600de2 100644
|
||||
--- a/scripts/mysql_config.sh
|
||||
+++ b/scripts/mysql_config.sh
|
||||
@@ -132,7 +132,8 @@ for remove in DDBUG_OFF DSAFEMALLOC USAFEMALLOC DSAFE_MUTEX \
|
||||
@@ -137,7 +137,8 @@ for remove in DDBUG_OFF DSAFE_MUTEX DUNIV_MUST_NOT_INLINE DFORCE_INIT_OF_VARS \
|
||||
DEXTRA_DEBUG DHAVE_purify O 'O[0-9]' 'xO[0-9]' 'W[-A-Za-z]*' \
|
||||
'mtune=[-A-Za-z0-9]*' 'mcpu=[-A-Za-z0-9]*' 'march=[-A-Za-z0-9]*' \
|
||||
Xa xstrconst "xc99=none" AC99 \
|
||||
|
@ -183,20 +188,29 @@ index efc8254..8964b70 100644
|
|||
do
|
||||
# The first option we might strip will always have a space before it because
|
||||
# we set -I$pkgincludedir as the first option
|
||||
diff --git a/configure.cmake b/configure.cmake
|
||||
index 0014c1d..21fe471 100644
|
||||
--- a/configure.cmake
|
||||
+++ b/configure.cmake
|
||||
@@ -391,7 +391,11 @@ CHECK_FUNCTION_EXISTS (pthread_attr_setscope HAVE_PTHREAD_ATTR_SETSCOPE)
|
||||
CHECK_FUNCTION_EXISTS (pthread_attr_setstacksize HAVE_PTHREAD_ATTR_SETSTACKSIZE)
|
||||
CHECK_FUNCTION_EXISTS (pthread_condattr_create HAVE_PTHREAD_CONDATTR_CREATE)
|
||||
CHECK_FUNCTION_EXISTS (pthread_condattr_setclock HAVE_PTHREAD_CONDATTR_SETCLOCK)
|
||||
-CHECK_FUNCTION_EXISTS (pthread_init HAVE_PTHREAD_INIT)
|
||||
+
|
||||
+IF (NOT CMAKE_OSX_SYSROOT)
|
||||
+ CHECK_FUNCTION_EXISTS (pthread_init HAVE_PTHREAD_INIT)
|
||||
+ENDIF (NOT CMAKE_OSX_SYSROOT)
|
||||
+
|
||||
CHECK_FUNCTION_EXISTS (pthread_key_delete HAVE_PTHREAD_KEY_DELETE)
|
||||
CHECK_FUNCTION_EXISTS (pthread_rwlock_rdlock HAVE_PTHREAD_RWLOCK_RDLOCK)
|
||||
CHECK_FUNCTION_EXISTS (pthread_sigmask HAVE_PTHREAD_SIGMASK)
|
||||
diff --git a/scripts/mysqld_safe.sh b/scripts/mysqld_safe.sh
|
||||
index 37e0e35..38ad6c8 100644
|
||||
--- a/scripts/mysqld_safe.sh
|
||||
+++ b/scripts/mysqld_safe.sh
|
||||
@@ -558,7 +558,7 @@ else
|
||||
fi
|
||||
|
||||
USER_OPTION=""
|
||||
-if test -w / -o "$USER" = "root"
|
||||
+if test -w /sbin -o "$USER" = "root"
|
||||
then
|
||||
if test "$user" != "root" -o $SET_USER = 1
|
||||
then
|
||||
diff --git a/storage/innobase/buf/buf0buf.c b/storage/innobase/buf/buf0buf.c
|
||||
index 6a71b7b..47ee988 100644
|
||||
--- a/storage/innobase/buf/buf0buf.c
|
||||
+++ b/storage/innobase/buf/buf0buf.c
|
||||
@@ -57,7 +57,7 @@ Created 11/5/1995 Heikki Tuuri
|
||||
/* prototypes for new functions added to ha_innodb.cc */
|
||||
trx_t* innobase_get_trx();
|
||||
|
||||
-inline void _increment_page_get_statistics(buf_block_t* block, trx_t* trx)
|
||||
+static inline void _increment_page_get_statistics(buf_block_t* block, trx_t* trx)
|
||||
{
|
||||
ulint block_hash;
|
||||
ulint block_hash_byte;
|
||||
|
|
Loading…
Reference in a new issue