Merge the changes of the 5.5.3-m3 release build
back into the development branches.
This commit is contained in:
commit
8dcbf6e20c
@ -2,6 +2,11 @@
|
|||||||
# Choose whether to use autoconf created configure
|
# Choose whether to use autoconf created configure
|
||||||
# of perl script that calls cmake.
|
# of perl script that calls cmake.
|
||||||
|
|
||||||
|
# # This is a temporary hack to build 5.5.3-m3:
|
||||||
|
# # The "cmake" way still shows issues in our release build environment.
|
||||||
|
# # Block it temporarily, but in a way that can easily be undone.
|
||||||
|
# HAVE_CMAKE=no
|
||||||
|
|
||||||
# Ensure cmake and perl are there
|
# Ensure cmake and perl are there
|
||||||
cmake -P cmake/check_minimal_version.cmake >/dev/null 2>&1 || HAVE_CMAKE=no
|
cmake -P cmake/check_minimal_version.cmake >/dev/null 2>&1 || HAVE_CMAKE=no
|
||||||
perl --version >/dev/null 2>&1 || HAVE_CMAKE=no
|
perl --version >/dev/null 2>&1 || HAVE_CMAKE=no
|
||||||
|
@ -1365,7 +1365,7 @@ static void DbugVfprintf(FILE *stream, const char* format, va_list args)
|
|||||||
{
|
{
|
||||||
char cvtbuf[1024];
|
char cvtbuf[1024];
|
||||||
size_t len;
|
size_t len;
|
||||||
// Do not use my_vsnprintf, it does not support "%g".
|
/* Do not use my_vsnprintf, it does not support "%g". */
|
||||||
len = vsnprintf(cvtbuf, sizeof(cvtbuf), format, args);
|
len = vsnprintf(cvtbuf, sizeof(cvtbuf), format, args);
|
||||||
(void) fprintf(stream, "%s\n", cvtbuf);
|
(void) fprintf(stream, "%s\n", cvtbuf);
|
||||||
}
|
}
|
||||||
|
@ -18,6 +18,11 @@
|
|||||||
#ifndef _global_h
|
#ifndef _global_h
|
||||||
#define _global_h
|
#define _global_h
|
||||||
|
|
||||||
|
/* Client library users on Windows need this macro defined here. */
|
||||||
|
#if !defined(__WIN__) && defined(_WIN32)
|
||||||
|
#define __WIN__
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
InnoDB depends on some MySQL internals which other plugins should not
|
InnoDB depends on some MySQL internals which other plugins should not
|
||||||
need. This is because of InnoDB's foreign key support, "safe" binlog
|
need. This is because of InnoDB's foreign key support, "safe" binlog
|
||||||
@ -1089,10 +1094,14 @@ typedef long long my_ptrdiff_t;
|
|||||||
#define HUGE_PTR
|
#define HUGE_PTR
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(__IBMC__) || defined(__IBMCPP__)
|
|
||||||
/* This was _System _Export but caused a lot of warnings on _AIX43 */
|
#ifdef STDCALL
|
||||||
#define STDCALL
|
#undef STDCALL
|
||||||
#elif !defined( STDCALL)
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define STDCALL __stdcall
|
||||||
|
#else
|
||||||
#define STDCALL
|
#define STDCALL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -354,11 +354,11 @@ my_ulonglong find_set_from_flags(const TYPELIB *lib, uint default_name,
|
|||||||
!(value= parse_name(&on_off_default_typelib, &pos, end)))
|
!(value= parse_name(&on_off_default_typelib, &pos, end)))
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
if (value == 1) // this is '=off'
|
if (value == 1) /* this is '=off' */
|
||||||
flags_to_clear|= bit;
|
flags_to_clear|= bit;
|
||||||
else if (value == 2) // this is '=on'
|
else if (value == 2) /* this is '=on' */
|
||||||
flags_to_set|= bit;
|
flags_to_set|= bit;
|
||||||
else // this is '=default'
|
else /* this is '=default' */
|
||||||
{
|
{
|
||||||
if (default_set & bit)
|
if (default_set & bit)
|
||||||
flags_to_set|= bit;
|
flags_to_set|= bit;
|
||||||
|
@ -261,7 +261,7 @@ IF(WIN32)
|
|||||||
SET(PLIN_FILES mysql_config mysql_secure_installation)
|
SET(PLIN_FILES mysql_config mysql_secure_installation)
|
||||||
# Input files with .sh extension
|
# Input files with .sh extension
|
||||||
|
|
||||||
SET(SH_FILES mysql_convert_table_format mysqld_multi mysqldumpslow
|
SET(SH_FILES mysql_convert_table_format mysqld_multi mysqldumpslow
|
||||||
mysqlhotcopy)
|
mysqlhotcopy)
|
||||||
|
|
||||||
FOREACH(file ${PLIN_FILES})
|
FOREACH(file ${PLIN_FILES})
|
||||||
|
@ -249,6 +249,7 @@ cp include/mysql.h \
|
|||||||
include/decimal.h \
|
include/decimal.h \
|
||||||
include/errmsg.h \
|
include/errmsg.h \
|
||||||
include/my_global.h \
|
include/my_global.h \
|
||||||
|
include/my_config.h \
|
||||||
include/my_net.h \
|
include/my_net.h \
|
||||||
include/my_getopt.h \
|
include/my_getopt.h \
|
||||||
include/sslopt-longopts.h \
|
include/sslopt-longopts.h \
|
||||||
@ -395,15 +396,15 @@ cp scripts/*.sql $DESTDIR/share/
|
|||||||
# Clean up from possibly copied SCCS directories
|
# Clean up from possibly copied SCCS directories
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
rm -rf `find $DISTDIR -type d -name SCCS -print`
|
rm -rf `find $DESTDIR -type d -name SCCS -print`
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
# Copy other files specified on command line DEST=SOURCE
|
# Copy other files specified on command line DEST=SOURCE
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
for arg do
|
for arg do
|
||||||
dst=`echo $arg | sed 's/=.*$//'`
|
dst=`echo $arg | sed -n 's/=.*$//p'`
|
||||||
src=`echo $arg | sed 's/^.*=//'`
|
src=`echo $arg | sed -n 's/^.*=//p'`
|
||||||
|
|
||||||
if [ x"$dst" = x"" -o x"$src" = x"" ] ; then
|
if [ x"$dst" = x"" -o x"$src" = x"" ] ; then
|
||||||
echo "Invalid specification of what to copy"
|
echo "Invalid specification of what to copy"
|
||||||
|
@ -2350,8 +2350,8 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
|
|||||||
(unix_socket || mysql_unix_port) &&
|
(unix_socket || mysql_unix_port) &&
|
||||||
(!host || !strcmp(host,LOCAL_HOST)))
|
(!host || !strcmp(host,LOCAL_HOST)))
|
||||||
{
|
{
|
||||||
DBUG_PRINT("info", ("Using socket"));
|
|
||||||
my_socket sock= socket(AF_UNIX, SOCK_STREAM, 0);
|
my_socket sock= socket(AF_UNIX, SOCK_STREAM, 0);
|
||||||
|
DBUG_PRINT("info", ("Using socket"));
|
||||||
if (sock == SOCKET_ERROR)
|
if (sock == SOCKET_ERROR)
|
||||||
{
|
{
|
||||||
set_mysql_extended_error(mysql, CR_SOCKET_CREATE_ERROR,
|
set_mysql_extended_error(mysql, CR_SOCKET_CREATE_ERROR,
|
||||||
|
@ -15,6 +15,14 @@
|
|||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
|
#if defined(__IBMC__) || defined(__IBMCPP__)
|
||||||
|
/* Further down, "next_in_lock" and "next_in_context" have the same type,
|
||||||
|
and in "sql_plist.h" this leads to an identical signature, which causes
|
||||||
|
problems in function overloading.
|
||||||
|
*/
|
||||||
|
#pragma namemangling(v5)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "sql_plist.h"
|
#include "sql_plist.h"
|
||||||
#include <my_sys.h>
|
#include <my_sys.h>
|
||||||
|
@ -28,11 +28,18 @@ table cache" for later retrieval.
|
|||||||
Created July 17, 2007 Vasil Dimov
|
Created July 17, 2007 Vasil Dimov
|
||||||
*******************************************************/
|
*******************************************************/
|
||||||
|
|
||||||
|
/* Found during the build of 5.5.3 on Linux 2.4 and early 2.6 kernels:
|
||||||
|
The includes "univ.i" -> "my_global.h" cause a different path
|
||||||
|
to be taken further down with pthread functions and types,
|
||||||
|
so they must come first.
|
||||||
|
From the symptoms, this is related to bug#46587 in the MySQL bug DB.
|
||||||
|
*/
|
||||||
|
#include "univ.i"
|
||||||
|
|
||||||
#include <mysql/plugin.h>
|
#include <mysql/plugin.h>
|
||||||
|
|
||||||
#include "mysql_addons.h"
|
#include "mysql_addons.h"
|
||||||
|
|
||||||
#include "univ.i"
|
|
||||||
#include "buf0buf.h"
|
#include "buf0buf.h"
|
||||||
#include "dict0dict.h"
|
#include "dict0dict.h"
|
||||||
#include "ha0storage.h"
|
#include "ha0storage.h"
|
||||||
|
@ -430,6 +430,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
|
|||||||
--with-plugin-archive \
|
--with-plugin-archive \
|
||||||
--with-plugin-blackhole \
|
--with-plugin-blackhole \
|
||||||
--with-plugin-federated \
|
--with-plugin-federated \
|
||||||
|
--with-perfschema \
|
||||||
--without-plugin-daemon_example \
|
--without-plugin-daemon_example \
|
||||||
--without-plugin-ftexample \
|
--without-plugin-ftexample \
|
||||||
%if %{EMBEDDED_BUILD}
|
%if %{EMBEDDED_BUILD}
|
||||||
@ -565,10 +566,10 @@ install -d $RBR%{_sbindir}
|
|||||||
mkdir $RBR/tmp-debug-plugin $MBD/plugin/debug
|
mkdir $RBR/tmp-debug-plugin $MBD/plugin/debug
|
||||||
( cd $RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/plugin
|
( cd $RPM_BUILD_DIR/mysql-%{mysql_version}/mysql-debug-%{mysql_version}/plugin
|
||||||
make install DESTDIR=$RBR/tmp-debug-plugin
|
make install DESTDIR=$RBR/tmp-debug-plugin
|
||||||
mv $RBR/tmp-debug-plugin/usr/local/mysql/lib/mysql/plugin/* $MBD/plugin/debug/
|
mv $RBR/tmp-debug-plugin/usr/lib*/mysql/plugin/* $MBD/plugin/debug/
|
||||||
# From here, the install hook in "plugin/Makefile.am" will do the rest.
|
# From here, the install hook in "plugin/Makefile.am" will do the rest.
|
||||||
)
|
)
|
||||||
rmdir -p $RBR/tmp-debug-plugin/usr/local/mysql/lib/mysql/plugin
|
rmdir -p $RBR/tmp-debug-plugin/usr/lib*/mysql/plugin || true
|
||||||
|
|
||||||
# Install all binaries
|
# Install all binaries
|
||||||
(cd $MBD && make install DESTDIR=$RBR testroot=%{_datadir})
|
(cd $MBD && make install DESTDIR=$RBR testroot=%{_datadir})
|
||||||
@ -605,8 +606,8 @@ ln -s %{_sysconfdir}/init.d/mysql $RBR%{_sbindir}/rcmysql
|
|||||||
touch $RBR%{_sysconfdir}/my.cnf
|
touch $RBR%{_sysconfdir}/my.cnf
|
||||||
|
|
||||||
%if %{WITH_TCMALLOC}
|
%if %{WITH_TCMALLOC}
|
||||||
# Even though this is a shared library, put it under /usr/lib/mysql, so it
|
# Even though this is a shared library, put it under /usr/lib*/mysql, so it
|
||||||
# doesn't conflict with possible shared lib by the same name in /usr/lib. See
|
# doesn't conflict with possible shared lib by the same name in /usr/lib*. See
|
||||||
# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
|
# `mysql_config --variable=pkglibdir` and mysqld_safe for how this is used.
|
||||||
install -m 644 "%{malloc_lib_source}" "$RBR%{_libdir}/mysql/%{malloc_lib_target}"
|
install -m 644 "%{malloc_lib_source}" "$RBR%{_libdir}/mysql/%{malloc_lib_target}"
|
||||||
%endif
|
%endif
|
||||||
@ -873,10 +874,8 @@ fi
|
|||||||
%attr(755, root, root) %{_sbindir}/mysqld
|
%attr(755, root, root) %{_sbindir}/mysqld
|
||||||
%attr(755, root, root) %{_sbindir}/mysqld-debug
|
%attr(755, root, root) %{_sbindir}/mysqld-debug
|
||||||
%attr(755, root, root) %{_sbindir}/rcmysql
|
%attr(755, root, root) %{_sbindir}/rcmysql
|
||||||
%attr(755, root, root) %{_libdir}/mysql/plugin/ha_example.so*
|
|
||||||
%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_master.so*
|
%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_master.so*
|
||||||
%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_slave.so*
|
%attr(755, root, root) %{_libdir}/mysql/plugin/semisync_slave.so*
|
||||||
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/ha_example.so*
|
|
||||||
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_master.so*
|
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_master.so*
|
||||||
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_slave.so*
|
%attr(755, root, root) %{_libdir}/mysql/plugin/debug/semisync_slave.so*
|
||||||
|
|
||||||
@ -1007,14 +1006,10 @@ fi
|
|||||||
%{_libdir}/mysql/libvio.a
|
%{_libdir}/mysql/libvio.a
|
||||||
%{_libdir}/mysql/libz.a
|
%{_libdir}/mysql/libz.a
|
||||||
%{_libdir}/mysql/libz.la
|
%{_libdir}/mysql/libz.la
|
||||||
%{_libdir}/mysql/plugin/ha_example.a
|
|
||||||
%{_libdir}/mysql/plugin/ha_example.la
|
|
||||||
%{_libdir}/mysql/plugin/semisync_master.a
|
%{_libdir}/mysql/plugin/semisync_master.a
|
||||||
%{_libdir}/mysql/plugin/semisync_master.la
|
%{_libdir}/mysql/plugin/semisync_master.la
|
||||||
%{_libdir}/mysql/plugin/semisync_slave.a
|
%{_libdir}/mysql/plugin/semisync_slave.a
|
||||||
%{_libdir}/mysql/plugin/semisync_slave.la
|
%{_libdir}/mysql/plugin/semisync_slave.la
|
||||||
%{_libdir}/mysql/plugin/debug/ha_example.a
|
|
||||||
%{_libdir}/mysql/plugin/debug/ha_example.la
|
|
||||||
%{_libdir}/mysql/plugin/debug/semisync_master.a
|
%{_libdir}/mysql/plugin/debug/semisync_master.a
|
||||||
%{_libdir}/mysql/plugin/debug/semisync_master.la
|
%{_libdir}/mysql/plugin/debug/semisync_master.la
|
||||||
%{_libdir}/mysql/plugin/debug/semisync_slave.a
|
%{_libdir}/mysql/plugin/debug/semisync_slave.a
|
||||||
@ -1054,6 +1049,20 @@ fi
|
|||||||
# merging BK trees)
|
# merging BK trees)
|
||||||
##############################################################################
|
##############################################################################
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 24 2010 Joerg Bruehe <joerg.bruehe@sun.com>
|
||||||
|
|
||||||
|
- Add "--with-perfschema" to the configure options.
|
||||||
|
|
||||||
|
* Mon Mar 22 2010 Joerg Bruehe <joerg.bruehe@sun.com>
|
||||||
|
|
||||||
|
- User "usr/lib*" to allow for both "usr/lib" and "usr/lib64",
|
||||||
|
mask "rmdir" return code 1.
|
||||||
|
- Remove "ha_example.*" files from the list, they aren't built.
|
||||||
|
|
||||||
|
* Wed Mar 17 2010 Joerg Bruehe <joerg.bruehe@sun.com>
|
||||||
|
|
||||||
|
- Fix a wrong path name in handling the debug plugins.
|
||||||
|
|
||||||
* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
|
* Wed Mar 10 2010 Joerg Bruehe <joerg.bruehe@sun.com>
|
||||||
|
|
||||||
- Take the result of the debug plugin build and put it into the optimized tree,
|
- Take the result of the debug plugin build and put it into the optimized tree,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user