mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Back merges from 6.0.8
- Removed some copy/paste between debug and normal build in RPM spec - Removed "mysql_upgrade_shell" from RPM build - Removed use of "grep -q" in "configure.in", not portable - Improved test to disable ABI check not to accidently run for icc Other changes - Added make file test targets 'test-bt-fast' and 'test-bt-debug-fast' - Reenabled "jp" test suite run
This commit is contained in:
21
Makefile.am
21
Makefile.am
@ -159,6 +159,8 @@ test-bt:
|
|||||||
@PERL@ ./mysql-test-run.pl --force --comment=partitions --suite=parts
|
@PERL@ ./mysql-test-run.pl --force --comment=partitions --suite=parts
|
||||||
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
|
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
|
||||||
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
|
@PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
|
||||||
-if [ -d mysql-test/suite/nist ] ; then \
|
-if [ -d mysql-test/suite/nist ] ; then \
|
||||||
cd mysql-test ; MTR_BUILD_THREAD=auto \
|
cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
@PERL@ ./mysql-test-run.pl --comment=nist --force --suite=nist ; \
|
@PERL@ ./mysql-test-run.pl --comment=nist --force --suite=nist ; \
|
||||||
@ -175,15 +177,28 @@ test-bt:
|
|||||||
echo "no program found for 'embedded' tests - skipped testing" ; \
|
echo "no program found for 'embedded' tests - skipped testing" ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Re-enable the "jp" suite when bug#28563 is fixed
|
test-bt-fast:
|
||||||
# -cd mysql-test ; MTR_BUILD_THREAD=auto \
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
# @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
|
@PERL@ ./mysql-test-run.pl --comment=ps --force --timer \
|
||||||
|
--skip-ndbcluster --ps-protocol
|
||||||
|
-if [ -e bin/ndbd -o -e storage/ndb/src/kernel/ndbd ] ; then \
|
||||||
|
cd mysql-test ; \
|
||||||
|
MTR_BUILD_THREAD=auto \
|
||||||
|
@PERL@ ./mysql-test-run.pl --comment=ndb --force --timer \
|
||||||
|
--with-ndbcluster-only ; \
|
||||||
|
else \
|
||||||
|
echo "no program found for 'ndbcluster' tests - skipped testing" ; \
|
||||||
|
fi
|
||||||
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
|
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
|
||||||
|
|
||||||
test-bt-debug:
|
test-bt-debug:
|
||||||
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
@PERL@ ./mysql-test-run.pl --comment=debug --force --timer \
|
@PERL@ ./mysql-test-run.pl --comment=debug --force --timer \
|
||||||
--skip-ndbcluster --skip-rpl --report-features
|
--skip-ndbcluster --skip-rpl --report-features
|
||||||
|
|
||||||
|
test-bt-debug-fast:
|
||||||
|
|
||||||
# Keep these for a while
|
# Keep these for a while
|
||||||
test-pl: test
|
test-pl: test
|
||||||
test-full-pl: test-full
|
test-full-pl: test-full
|
||||||
|
@ -280,7 +280,7 @@ AC_DEFUN([MYSQL_SETUP_NDBCLUSTER], [
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# libndbclient versioning when linked with GNU ld.
|
# libndbclient versioning when linked with GNU ld.
|
||||||
if $LD --version 2>/dev/null|grep -q GNU; then
|
if $LD --version 2>/dev/null|grep GNU >/dev/null 2>&1 ; then
|
||||||
NDB_LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/storage/ndb/src/libndb.ver"
|
NDB_LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/storage/ndb/src/libndb.ver"
|
||||||
AC_CONFIG_FILES(storage/ndb/src/libndb.ver)
|
AC_CONFIG_FILES(storage/ndb/src/libndb.ver)
|
||||||
fi
|
fi
|
||||||
|
@ -377,7 +377,7 @@ fi
|
|||||||
MYSQL_PROG_AR
|
MYSQL_PROG_AR
|
||||||
|
|
||||||
# libmysqlclient versioning when linked with GNU ld.
|
# libmysqlclient versioning when linked with GNU ld.
|
||||||
if $LD --version 2>/dev/null|grep -q GNU; then
|
if $LD --version 2>/dev/null| grep GNU >/dev/null 2>&1; then
|
||||||
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/libmysql/libmysql.ver"
|
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/libmysql/libmysql.ver"
|
||||||
AC_CONFIG_FILES(libmysql/libmysql.ver)
|
AC_CONFIG_FILES(libmysql/libmysql.ver)
|
||||||
fi
|
fi
|
||||||
@ -449,11 +449,11 @@ AC_SUBST(PERL5)
|
|||||||
|
|
||||||
# Enable the abi_check rule only if gcc is available
|
# Enable the abi_check rule only if gcc is available
|
||||||
|
|
||||||
if expr "$CC" : ".*gcc.*"
|
if test "$GCC" != "yes" || expr "$CC" : ".*icc.*"
|
||||||
then
|
then
|
||||||
ABI_CHECK="abi_check"
|
|
||||||
else
|
|
||||||
ABI_CHECK=""
|
ABI_CHECK=""
|
||||||
|
else
|
||||||
|
ABI_CHECK="abi_check"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(ABI_CHECK)
|
AC_SUBST(ABI_CHECK)
|
||||||
|
@ -279,7 +279,20 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
|
|||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--enable-thread-safe-client \
|
--enable-thread-safe-client \
|
||||||
--with-readline \
|
--with-readline \
|
||||||
"
|
--with-innodb \
|
||||||
|
%if %{CLUSTER_BUILD}
|
||||||
|
--with-ndbcluster \
|
||||||
|
%else
|
||||||
|
--without-ndbcluster \
|
||||||
|
%endif
|
||||||
|
--with-archive-storage-engine \
|
||||||
|
--with-csv-storage-engine \
|
||||||
|
--with-blackhole-storage-engine \
|
||||||
|
--with-federated-storage-engine \
|
||||||
|
--with-partition \
|
||||||
|
--with-big-tables \
|
||||||
|
--enable-shared \
|
||||||
|
"
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,6 +319,8 @@ mkdir -p $RBR%{_libdir}/mysql
|
|||||||
PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
|
PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
|
# Build the Debug binary.
|
||||||
|
|
||||||
# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
|
# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
|
||||||
# including exceptions into the code
|
# including exceptions into the code
|
||||||
if [ -z "$CXX" -a -z "$CC" ]
|
if [ -z "$CXX" -a -z "$CC" ]
|
||||||
@ -333,20 +348,8 @@ CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip /
|
|||||||
cd mysql-debug-%{mysql_version} &&
|
cd mysql-debug-%{mysql_version} &&
|
||||||
CFLAGS=\"$CFLAGS\" \
|
CFLAGS=\"$CFLAGS\" \
|
||||||
CXXFLAGS=\"$CXXFLAGS\" \
|
CXXFLAGS=\"$CXXFLAGS\" \
|
||||||
BuildMySQL "--enable-shared \
|
BuildMySQL "\
|
||||||
--with-debug \
|
--with-debug \
|
||||||
--with-innodb \
|
|
||||||
%if %{CLUSTER_BUILD}
|
|
||||||
--with-ndbcluster \
|
|
||||||
%else
|
|
||||||
--without-ndbcluster \
|
|
||||||
%endif
|
|
||||||
--with-archive-storage-engine \
|
|
||||||
--with-csv-storage-engine \
|
|
||||||
--with-blackhole-storage-engine \
|
|
||||||
--with-federated-storage-engine \
|
|
||||||
--with-partition \
|
|
||||||
--with-big-tables \
|
|
||||||
--with-comment=\"MySQL Community Server - Debug (GPL)\"")
|
--with-comment=\"MySQL Community Server - Debug (GPL)\"")
|
||||||
|
|
||||||
# We might want to save the config log file
|
# We might want to save the config log file
|
||||||
@ -366,20 +369,8 @@ fi
|
|||||||
(cd mysql-release-%{mysql_version} &&
|
(cd mysql-release-%{mysql_version} &&
|
||||||
CFLAGS=\"$CFLAGS\" \
|
CFLAGS=\"$CFLAGS\" \
|
||||||
CXXFLAGS=\"$CXXFLAGS\" \
|
CXXFLAGS=\"$CXXFLAGS\" \
|
||||||
BuildMySQL "--enable-shared \
|
BuildMySQL "\
|
||||||
--with-innodb \
|
|
||||||
%if %{CLUSTER_BUILD}
|
|
||||||
--with-ndbcluster \
|
|
||||||
%else
|
|
||||||
--without-ndbcluster \
|
|
||||||
%endif
|
|
||||||
--with-archive-storage-engine \
|
|
||||||
--with-csv-storage-engine \
|
|
||||||
--with-blackhole-storage-engine \
|
|
||||||
--with-federated-storage-engine \
|
|
||||||
--with-partition \
|
|
||||||
--with-embedded-server \
|
--with-embedded-server \
|
||||||
--with-big-tables \
|
|
||||||
--with-comment=\"MySQL Community Server (GPL)\"")
|
--with-comment=\"MySQL Community Server (GPL)\"")
|
||||||
# We might want to save the config log file
|
# We might want to save the config log file
|
||||||
if test -n "$MYSQL_CONFLOG_DEST"
|
if test -n "$MYSQL_CONFLOG_DEST"
|
||||||
@ -700,7 +691,6 @@ fi
|
|||||||
%attr(755, root, root) %{_bindir}/msql2mysql
|
%attr(755, root, root) %{_bindir}/msql2mysql
|
||||||
%attr(755, root, root) %{_bindir}/mysql
|
%attr(755, root, root) %{_bindir}/mysql
|
||||||
%attr(755, root, root) %{_bindir}/mysql_find_rows
|
%attr(755, root, root) %{_bindir}/mysql_find_rows
|
||||||
%attr(755, root, root) %{_bindir}/mysql_upgrade_shell
|
|
||||||
%attr(755, root, root) %{_bindir}/mysql_waitpid
|
%attr(755, root, root) %{_bindir}/mysql_waitpid
|
||||||
%attr(755, root, root) %{_bindir}/mysqlaccess
|
%attr(755, root, root) %{_bindir}/mysqlaccess
|
||||||
%attr(755, root, root) %{_bindir}/mysqladmin
|
%attr(755, root, root) %{_bindir}/mysqladmin
|
||||||
@ -840,6 +830,11 @@ fi
|
|||||||
# itself - note that they must be ordered by date (important when
|
# itself - note that they must be ordered by date (important when
|
||||||
# merging BK trees)
|
# merging BK trees)
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
|
||||||
|
|
||||||
|
- Removed "mysql_upgrade_shell"
|
||||||
|
- Removed some copy/paste between debug and normal build
|
||||||
|
|
||||||
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
|
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
|
||||||
|
|
||||||
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
|
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
|
||||||
|
Reference in New Issue
Block a user