Merge lp:~ignacio-nin/percona-xtradb-cluster/release-5.5.29 into lp:percona-xtradb-cluster/percona-xtradb-cluster-5.5

Proposed by Ignacio Nin
Status: Merged
Approved by: Vadim Tkachenko
Approved revision: no longer in the source branch.
Merged at revision: 381
Proposed branch: lp:~ignacio-nin/percona-xtradb-cluster/release-5.5.29
Merge into: lp:percona-xtradb-cluster/percona-xtradb-cluster-5.5
Diff against target: 12020 lines (+6281/-1224)
180 files modified
Makefile (+1/-1)
Makefile.ps (+2/-2)
Percona-Server/CMakeLists.txt (+2/-0)
Percona-Server/VERSION (+1/-1)
Percona-Server/client/mysql.cc (+89/-2)
Percona-Server/cmake/configure.pl (+10/-0)
Percona-Server/cmake/create_initial_db.cmake.in (+8/-2)
Percona-Server/cmake/info_macros.cmake.in (+5/-3)
Percona-Server/cmake/install_layout.cmake (+10/-2)
Percona-Server/cmake/mysql_version.cmake (+1/-1)
Percona-Server/cmake/package_name.cmake (+1/-1)
Percona-Server/cmake/plugin.cmake (+1/-0)
Percona-Server/cmake/wsrep.cmake (+1/-1)
Percona-Server/dbug/dbug.c (+1/-1)
Percona-Server/libmysql/libmysql.c (+1/-1)
Percona-Server/mysql-test/include/have_null_audit_plugin.inc (+22/-0)
Percona-Server/mysql-test/include/plugin.defs (+1/-0)
Percona-Server/mysql-test/include/rpl_start_server.inc (+10/-5)
Percona-Server/mysql-test/lib/mtr_cases.pm (+1/-0)
Percona-Server/mysql-test/mysql-test-run.pl (+1/-0)
Percona-Server/mysql-test/r/contributors.result (+2/-0)
Percona-Server/mysql-test/r/ctype_ucs.result (+26/-0)
Percona-Server/mysql-test/r/loaddata.result (+0/-29)
Percona-Server/mysql-test/r/percona_bug1017192.result (+10/-0)
Percona-Server/mysql-test/r/plugin_auth.result (+12/-9)
Percona-Server/mysql-test/r/show_check.result (+11/-0)
Percona-Server/mysql-test/r/sp_notembedded.result (+1/-1)
Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_innodb.test (+1/-1)
Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_myisam.test (+1/-1)
Percona-Server/mysql-test/suite/innodb/r/innodb-autoinc.result (+88/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb-zip.result (+3/-3)
Percona-Server/mysql-test/suite/innodb/r/innodb.result (+1/-1)
Percona-Server/mysql-test/suite/innodb/r/innodb_bug14704286.result (+53/-0)
Percona-Server/mysql-test/suite/innodb/r/innodb_bug53591.result (+1/-1)
Percona-Server/mysql-test/suite/innodb/r/innodb_corrupt_bit.result (+4/-4)
Percona-Server/mysql-test/suite/innodb/r/innodb_misc1.result (+1/-1)
Percona-Server/mysql-test/suite/innodb/r/innodb_prefix_index_liftedlimit.result (+1/-1)
Percona-Server/mysql-test/suite/innodb/t/innodb-autoinc.test (+39/-2)
Percona-Server/mysql-test/suite/innodb/t/innodb_bug14704286.test (+95/-0)
Percona-Server/mysql-test/suite/innodb/t/innodb_corrupt_bit.test (+3/-3)
Percona-Server/mysql-test/suite/innodb/t/innodb_prefix_index_liftedlimit.test (+1/-0)
Percona-Server/mysql-test/suite/perfschema/r/func_file_io.result (+17/-0)
Percona-Server/mysql-test/suite/perfschema/r/func_mutex.result (+25/-0)
Percona-Server/mysql-test/suite/perfschema/t/func_file_io.test (+7/-0)
Percona-Server/mysql-test/suite/perfschema/t/func_mutex.test (+13/-0)
Percona-Server/mysql-test/suite/rpl/r/rpl_semi_sync.result (+12/-11)
Percona-Server/mysql-test/suite/rpl/t/rpl_semi_sync.test (+4/-3)
Percona-Server/mysql-test/suite/sys_vars/r/innodb_change_buffering_debug_basic.result (+0/-3)
Percona-Server/mysql-test/suite/sys_vars/t/innodb_change_buffering_debug_basic.test (+3/-1)
Percona-Server/mysql-test/t/ctype_ucs.test (+32/-0)
Percona-Server/mysql-test/t/loaddata.test (+34/-30)
Percona-Server/mysql-test/t/percona_bug1017192.test (+40/-0)
Percona-Server/mysql-test/t/plugin_auth.test (+23/-9)
Percona-Server/mysql-test/t/show_check.test (+14/-0)
Percona-Server/mysql-test/t/sp_notembedded.test (+10/-8)
Percona-Server/packaging/rpm-uln/CMakeLists.txt (+38/-0)
Percona-Server/packaging/rpm-uln/README-ULN (+15/-0)
Percona-Server/packaging/rpm-uln/README.mysql-docs (+4/-0)
Percona-Server/packaging/rpm-uln/filter-requires-mysql.sh (+3/-0)
Percona-Server/packaging/rpm-uln/generate-tarball.sh (+15/-0)
Percona-Server/packaging/rpm-uln/my.cnf (+10/-0)
Percona-Server/packaging/rpm-uln/my_config.h (+29/-0)
Percona-Server/packaging/rpm-uln/mysql-5.5-errno.patch (+21/-0)
Percona-Server/packaging/rpm-uln/mysql-5.5-fix-tests.patch (+34/-0)
Percona-Server/packaging/rpm-uln/mysql-5.5-libdir.patch (+28/-0)
Percona-Server/packaging/rpm-uln/mysql-5.5-mtr1.patch (+25/-0)
Percona-Server/packaging/rpm-uln/mysql-5.5-stack-guard.patch (+140/-0)
Percona-Server/packaging/rpm-uln/mysql-5.5-testing.patch (+23/-0)
Percona-Server/packaging/rpm-uln/mysql-chain-certs.patch (+45/-0)
Percona-Server/packaging/rpm-uln/mysql-embedded-check.c (+26/-0)
Percona-Server/packaging/rpm-uln/mysql-expired-certs.patch (+555/-0)
Percona-Server/packaging/rpm-uln/mysql-install-test.patch (+33/-0)
Percona-Server/packaging/rpm-uln/mysql-strmov.patch (+32/-0)
Percona-Server/packaging/rpm-uln/mysql.init (+209/-0)
Percona-Server/packaging/rpm-uln/mysql.spec.sh (+1959/-0)
Percona-Server/packaging/rpm-uln/scriptstub.c (+32/-0)
Percona-Server/scripts/clustercheck.sh (+3/-1)
Percona-Server/scripts/mysql_install_db.pl.in (+18/-3)
Percona-Server/scripts/mysqld_multi.sh (+22/-0)
Percona-Server/scripts/mysqld_safe.sh (+59/-24)
Percona-Server/sql/CMakeLists.txt (+5/-3)
Percona-Server/sql/event_db_repository.cc (+8/-2)
Percona-Server/sql/filesort.cc (+10/-1)
Percona-Server/sql/ha_partition.cc (+175/-49)
Percona-Server/sql/ha_partition.h (+4/-0)
Percona-Server/sql/handler.cc (+38/-9)
Percona-Server/sql/handler.h (+2/-0)
Percona-Server/sql/hostname.cc (+54/-2)
Percona-Server/sql/item_cmpfunc.cc (+19/-0)
Percona-Server/sql/item_func.cc (+2/-1)
Percona-Server/sql/item_func.h (+1/-0)
Percona-Server/sql/item_subselect.cc (+22/-9)
Percona-Server/sql/log.cc (+6/-0)
Percona-Server/sql/log_event.cc (+64/-7)
Percona-Server/sql/log_event.h (+2/-2)
Percona-Server/sql/log_event_old.cc (+27/-9)
Percona-Server/sql/mysqld.cc (+10/-1)
Percona-Server/sql/opt_range.cc (+58/-12)
Percona-Server/sql/opt_sum.cc (+7/-2)
Percona-Server/sql/records.cc (+8/-2)
Percona-Server/sql/rpl_utility.cc (+1/-0)
Percona-Server/sql/sp.cc (+14/-3)
Percona-Server/sql/sp_head.cc (+27/-21)
Percona-Server/sql/sp_rcontext.cc (+3/-8)
Percona-Server/sql/sp_rcontext.h (+42/-3)
Percona-Server/sql/sql_acl.cc (+270/-136)
Percona-Server/sql/sql_connect.cc (+13/-0)
Percona-Server/sql/sql_handler.cc (+13/-12)
Percona-Server/sql/sql_help.cc (+8/-2)
Percona-Server/sql/sql_lex.cc (+1/-0)
Percona-Server/sql/sql_list.h (+9/-1)
Percona-Server/sql/sql_parse.cc (+7/-2)
Percona-Server/sql/sql_plugin.cc (+3/-2)
Percona-Server/sql/sql_priv.h (+35/-0)
Percona-Server/sql/sql_profile.cc (+19/-10)
Percona-Server/sql/sql_profile.h (+4/-2)
Percona-Server/sql/sql_select.cc (+73/-31)
Percona-Server/sql/sql_show.cc (+13/-4)
Percona-Server/sql/sql_signal.cc (+9/-3)
Percona-Server/sql/sql_table.cc (+15/-7)
Percona-Server/sql/sql_update.cc (+10/-4)
Percona-Server/sql/sql_yacc.yy (+8/-0)
Percona-Server/sql/sys_vars.cc (+1/-3)
Percona-Server/sql/tztime.cc (+14/-18)
Percona-Server/sql/uniques.cc (+6/-1)
Percona-Server/sql/wsrep_mysqld.cc (+28/-13)
Percona-Server/sql/wsrep_mysqld.h (+3/-1)
Percona-Server/sql/wsrep_var.cc (+4/-2)
Percona-Server/storage/innobase/btr/btr0btr.c (+43/-15)
Percona-Server/storage/innobase/btr/btr0cur.c (+14/-12)
Percona-Server/storage/innobase/buf/buf0buf.c (+4/-3)
Percona-Server/storage/innobase/buf/buf0lru.c (+4/-2)
Percona-Server/storage/innobase/dict/dict0dict.c (+59/-30)
Percona-Server/storage/innobase/fil/fil0fil.c (+49/-25)
Percona-Server/storage/innobase/handler/ha_innodb.cc (+27/-13)
Percona-Server/storage/innobase/handler/ha_innodb.h (+5/-4)
Percona-Server/storage/innobase/handler/handler0alter.cc (+6/-2)
Percona-Server/storage/innobase/ibuf/ibuf0ibuf.c (+34/-4)
Percona-Server/storage/innobase/include/btr0cur.h (+1/-1)
Percona-Server/storage/innobase/include/dict0dict.h (+12/-0)
Percona-Server/storage/innobase/include/dict0mem.h (+6/-1)
Percona-Server/storage/innobase/include/page0zip.h (+5/-3)
Percona-Server/storage/innobase/include/row0undo.h (+0/-7)
Percona-Server/storage/innobase/include/row0upd.ic (+3/-0)
Percona-Server/storage/innobase/include/univ.i (+19/-1)
Percona-Server/storage/innobase/log/log0online.c (+4/-4)
Percona-Server/storage/innobase/log/log0recv.c (+2/-3)
Percona-Server/storage/innobase/os/os0file.c (+13/-0)
Percona-Server/storage/innobase/page/page0cur.c (+4/-3)
Percona-Server/storage/innobase/page/page0page.c (+16/-8)
Percona-Server/storage/innobase/page/page0zip.c (+111/-46)
Percona-Server/storage/innobase/rem/rem0rec.c (+3/-2)
Percona-Server/storage/innobase/row/row0ins.c (+0/-8)
Percona-Server/storage/innobase/row/row0mysql.c (+4/-1)
Percona-Server/storage/innobase/row/row0sel.c (+20/-7)
Percona-Server/storage/innobase/row/row0umod.c (+0/-53)
Percona-Server/storage/innobase/row/row0undo.c (+0/-19)
Percona-Server/storage/innobase/row/row0upd.c (+142/-38)
Percona-Server/storage/myisam/mi_open.c (+2/-1)
Percona-Server/storage/myisam/myisamchk.c (+8/-1)
Percona-Server/support-files/mysql.spec.sh (+28/-13)
Percona-Server/tests/mysql_client_test.c (+1/-0)
WSREP-REVISION (+1/-1)
build/build-binary.sh (+50/-22)
build/build-dpkg.sh (+10/-15)
build/debian/control (+60/-103)
build/debian/patches/30_scripts__mysqld_safe.sh__signals.dpatch (+9/-14)
build/debian/percona-server-server-5.5.docs (+0/-8)
build/debian/percona-server-server-5.5.install (+0/-56)
build/debian/rules (+42/-44)
build/percona-shared-compat.spec (+1/-1)
build/percona-xtradb-cluster.spec (+2/-2)
doc-ps/source/conf.py (+5/-5)
doc-ps/source/diagnostics/slow_extended_55.rst (+33/-32)
doc-ps/source/installation/apt_repo.rst (+1/-1)
doc-ps/source/management/changed_page_tracking.rst (+13/-0)
doc-ps/source/release-notes/Percona-Server-5.5.28-29.2.rst (+4/-2)
doc-ps/source/release-notes/Percona-Server-5.5.28-29.3.rst (+32/-0)
doc-ps/source/release-notes/Percona-Server-5.5.29-29.4.rst (+14/-0)
doc-ps/source/upstream-bug-fixes.rst (+45/-15)
To merge this branch: bzr merge lp:~ignacio-nin/percona-xtradb-cluster/release-5.5.29
Reviewer Review Type Date Requested Status
Vadim Tkachenko Approve
Review via email: mp+145971@code.launchpad.net

Description of the change

Changes for release 5.5.29-23.7.1

To post a comment you must log in.
Revision history for this message
Vadim Tkachenko (vadim-tk) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file 'Makefile.pxc' => 'Makefile'
--- Makefile.pxc 2012-12-22 02:14:09 +0000
+++ Makefile 2013-01-31 20:19:36 +0000
@@ -1,6 +1,6 @@
1FETCH_CMD=wget1FETCH_CMD=wget
2MASTER_SITE=http://s3.amazonaws.com/percona.com/downloads/community2MASTER_SITE=http://s3.amazonaws.com/percona.com/downloads/community
3MYSQL_VERSION=5.5.283MYSQL_VERSION=5.5.29
4PERCONA_SERVER_VERSION=rel29.14PERCONA_SERVER_VERSION=rel29.1
5PERCONA_XTRADB_CLUSTER ?=Percona-XtraDB-Cluster-$(MYSQL_VERSION)5PERCONA_XTRADB_CLUSTER ?=Percona-XtraDB-Cluster-$(MYSQL_VERSION)
6PERCONA_SERVER ?=Percona-Server6PERCONA_SERVER ?=Percona-Server
77
=== renamed file 'Makefile' => 'Makefile.ps'
--- Makefile 2012-12-06 19:08:25 +0000
+++ Makefile.ps 2013-01-31 20:19:36 +0000
@@ -1,7 +1,7 @@
1FETCH_CMD=wget1FETCH_CMD=wget
2MASTER_SITE=http://s3.amazonaws.com/percona.com/downloads/community2MASTER_SITE=http://s3.amazonaws.com/percona.com/downloads/community
3MYSQL_VERSION=5.5.283MYSQL_VERSION=5.5.29
4PERCONA_SERVER_VERSION=rel29.24PERCONA_SERVER_VERSION=rel29.4
5PERCONA_SERVER ?=Percona-Server-$(MYSQL_VERSION)-$(PERCONA_SERVER_VERSION)5PERCONA_SERVER ?=Percona-Server-$(MYSQL_VERSION)-$(PERCONA_SERVER_VERSION)
6PERCONA_SERVER_SHORT_1 ?=Percona-Server-$(MYSQL_VERSION)6PERCONA_SERVER_SHORT_1 ?=Percona-Server-$(MYSQL_VERSION)
7PERCONA_SERVER_SHORT_2 ?=Percona-Server7PERCONA_SERVER_SHORT_2 ?=Percona-Server
88
=== modified file 'Percona-Server/CMakeLists.txt'
--- Percona-Server/CMakeLists.txt 2012-10-25 21:11:01 +0000
+++ Percona-Server/CMakeLists.txt 2013-01-31 20:19:36 +0000
@@ -19,6 +19,7 @@
19 CMAKE_POLICY(VERSION 2.8)19 CMAKE_POLICY(VERSION 2.8)
20endif()20endif()
2121
22MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}")
2223
23SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)24SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
2425
@@ -347,6 +348,7 @@
347 IF(EXISTS ${CMAKE_SOURCE_DIR}/internal/CMakeLists.txt)348 IF(EXISTS ${CMAKE_SOURCE_DIR}/internal/CMakeLists.txt)
348 ADD_SUBDIRECTORY(internal)349 ADD_SUBDIRECTORY(internal)
349 ENDIF()350 ENDIF()
351 ADD_SUBDIRECTORY(packaging/rpm-uln)
350ENDIF()352ENDIF()
351353
352INCLUDE(cmake/abi_check.cmake)354INCLUDE(cmake/abi_check.cmake)
353355
=== modified file 'Percona-Server/VERSION'
--- Percona-Server/VERSION 2012-10-25 21:11:01 +0000
+++ Percona-Server/VERSION 2013-01-31 20:19:36 +0000
@@ -1,4 +1,4 @@
1MYSQL_VERSION_MAJOR=51MYSQL_VERSION_MAJOR=5
2MYSQL_VERSION_MINOR=52MYSQL_VERSION_MINOR=5
3MYSQL_VERSION_PATCH=283MYSQL_VERSION_PATCH=29
4MYSQL_VERSION_EXTRA=4MYSQL_VERSION_EXTRA=
55
=== modified file 'Percona-Server/client/mysql.cc'
--- Percona-Server/client/mysql.cc 2012-10-25 21:11:01 +0000
+++ Percona-Server/client/mysql.cc 2013-01-31 20:19:36 +0000
@@ -250,6 +250,8 @@
250static void add_int_to_prompt(int toadd);250static void add_int_to_prompt(int toadd);
251static int get_result_width(MYSQL_RES *res);251static int get_result_width(MYSQL_RES *res);
252static int get_field_disp_length(MYSQL_FIELD * field);252static int get_field_disp_length(MYSQL_FIELD * field);
253static int normalize_dbname(const char *line, char *buff, uint buff_size);
254static int get_quote_count(const char *line);
253255
254/* A structure which contains information on the commands this program256/* A structure which contains information on the commands this program
255 can understand. */257 can understand. */
@@ -4197,8 +4199,23 @@
4197 int select_db;4199 int select_db;
41984200
4199 bzero(buff, sizeof(buff));4201 bzero(buff, sizeof(buff));
4200 strmake(buff, line, sizeof(buff) - 1);4202
4201 tmp= get_arg(buff, 0);4203 /*
4204 In case number of quotes exceed 2, we try to get
4205 the normalized db name.
4206 */
4207 if (get_quote_count(line) > 2)
4208 {
4209 if (normalize_dbname(line, buff, sizeof(buff)))
4210 return put_error(&mysql);
4211 tmp= buff;
4212 }
4213 else
4214 {
4215 strmake(buff, line, sizeof(buff) - 1);
4216 tmp= get_arg(buff, 0);
4217 }
4218
4202 if (!tmp || !*tmp)4219 if (!tmp || !*tmp)
4203 {4220 {
4204 put_info("USE must be followed by a database name", INFO_ERROR);4221 put_info("USE must be followed by a database name", INFO_ERROR);
@@ -4264,6 +4281,62 @@
4264 return 0;4281 return 0;
4265}4282}
42664283
4284/**
4285 Normalize database name.
4286
4287 @param line [IN] The command.
4288 @param buff [OUT] Normalized db name.
4289 @param buff_size [IN] Buffer size.
4290
4291 @return Operation status
4292 @retval 0 Success
4293 @retval 1 Failure
4294
4295 @note Sometimes server normilizes the database names
4296 & APIs like mysql_select_db() expect normalized
4297 database names. Since it is difficult to perform
4298 the name conversion/normalization on the client
4299 side, this function tries to get the normalized
4300 dbname (indirectly) from the server.
4301*/
4302
4303static int
4304normalize_dbname(const char *line, char *buff, uint buff_size)
4305{
4306 MYSQL_RES *res= NULL;
4307
4308 /* Send the "USE db" commmand to the server. */
4309 if (mysql_query(&mysql, line))
4310 return 1;
4311
4312 /*
4313 Now, get the normalized database name and store it
4314 into the buff.
4315 */
4316 if (!mysql_query(&mysql, "SELECT DATABASE()") &&
4317 (res= mysql_use_result(&mysql)))
4318 {
4319 MYSQL_ROW row= mysql_fetch_row(res);
4320 if (row && row[0])
4321 {
4322 size_t len= strlen(row[0]);
4323 /* Make sure there is enough room to store the dbname. */
4324 if ((len > buff_size) || ! memcpy(buff, row[0], len))
4325 {
4326 mysql_free_result(res);
4327 return 1;
4328 }
4329 }
4330 mysql_free_result(res);
4331 }
4332
4333 /* Restore the original database. */
4334 if (current_db && mysql_select_db(&mysql, current_db))
4335 return 1;
4336
4337 return 0;
4338}
4339
4267static int4340static int
4268com_warnings(String *buffer __attribute__((unused)),4341com_warnings(String *buffer __attribute__((unused)),
4269 char *line __attribute__((unused)))4342 char *line __attribute__((unused)))
@@ -4343,6 +4416,20 @@
4343 return valid_arg ? start : NullS;4416 return valid_arg ? start : NullS;
4344}4417}
43454418
4419/*
4420 Number of quotes present in the command's argument.
4421*/
4422static int
4423get_quote_count(const char *line)
4424{
4425 int quote_count;
4426 const char *ptr= line;
4427
4428 for(quote_count= 0; ptr ++ && *ptr; ptr= strpbrk(ptr, "\"\'`"))
4429 quote_count ++;
4430
4431 return quote_count;
4432}
43464433
4347static int4434static int
4348sql_real_connect(char *host,char *database,char *user,char *password,4435sql_real_connect(char *host,char *database,char *user,char *password,
43494436
=== modified file 'Percona-Server/cmake/configure.pl'
--- Percona-Server/cmake/configure.pl 2011-10-02 12:15:17 +0000
+++ Percona-Server/cmake/configure.pl 2013-01-31 20:19:36 +0000
@@ -221,6 +221,16 @@
221 $cmakeargs = $cmakeargs." -DENABLE_GCOV=ON"; 221 $cmakeargs = $cmakeargs." -DENABLE_GCOV=ON";
222 next;222 next;
223 }223 }
224 if ($option =~ /with-client-ldflags/)
225 {
226 print("configure.pl : ignoring $option\n");
227 next;
228 }
229 if ($option =~ /with-mysqld-ldflags=/)
230 {
231 print("configure.pl : ignoring $option\n");
232 next;
233 }
224234
225 $option = uc($option);235 $option = uc($option);
226 $option =~ s/-/_/g;236 $option =~ s/-/_/g;
227237
=== modified file 'Percona-Server/cmake/create_initial_db.cmake.in'
--- Percona-Server/cmake/create_initial_db.cmake.in 2011-06-30 15:46:53 +0000
+++ Percona-Server/cmake/create_initial_db.cmake.in 2013-01-31 20:19:36 +0000
@@ -69,10 +69,13 @@
69 COMMAND "@CMAKE_COMMAND@" -E echo Executing ${BOOTSTRAP_COMMAND}69 COMMAND "@CMAKE_COMMAND@" -E echo Executing ${BOOTSTRAP_COMMAND}
70)70)
71EXECUTE_PROCESS (71EXECUTE_PROCESS (
72 COMMAND "@CMAKE_COMMAND@" -E echo input file bootstrap.sql, current directory ${CWD}72 COMMAND "@CMAKE_COMMAND@" -E
73 echo input file bootstrap.sql, current directory ${CWD}
73)74)
74EXECUTE_PROCESS ( 75EXECUTE_PROCESS (
75 COMMAND ${BOOTSTRAP_COMMAND} INPUT_FILE bootstrap.sql OUTPUT_VARIABLE OUT76 COMMAND ${BOOTSTRAP_COMMAND}
77 INPUT_FILE bootstrap.sql
78 OUTPUT_VARIABLE OUT
76 ERROR_VARIABLE ERR79 ERROR_VARIABLE ERR
77 RESULT_VARIABLE RESULT80 RESULT_VARIABLE RESULT
78 )81 )
@@ -81,3 +84,6 @@
81 MESSAGE(FATAL_ERROR "Could not create initial database \n ${OUT} \n ${ERR}")84 MESSAGE(FATAL_ERROR "Could not create initial database \n ${OUT} \n ${ERR}")
82ENDIF()85ENDIF()
83 86
87EXECUTE_PROCESS (
88 COMMAND "@CMAKE_COMMAND@" -E touch ${CMAKE_CURRENT_BINARY_DIR}/initdb.dep
89)
8490
=== modified file 'Percona-Server/cmake/info_macros.cmake.in'
--- Percona-Server/cmake/info_macros.cmake.in 2012-04-20 17:56:48 +0000
+++ Percona-Server/cmake/info_macros.cmake.in 2013-01-31 20:19:36 +0000
@@ -1,4 +1,4 @@
1# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.1# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2# 2#
3# This program is free software; you can redistribute it and/or modify3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by4# it under the terms of the GNU General Public License as published by
@@ -82,9 +82,11 @@
8282
83 FILE(WRITE ${INFO_BIN} "===== Information about the build process: =====\n")83 FILE(WRITE ${INFO_BIN} "===== Information about the build process: =====\n")
84 IF (WIN32)84 IF (WIN32)
85 EXECUTE_PROCESS(COMMAND cmd /c date /T OUTPUT_VARIABLE TMP_DATE)85 EXECUTE_PROCESS(COMMAND cmd /c date /T
86 OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
86 ELSEIF(UNIX)87 ELSEIF(UNIX)
87 EXECUTE_PROCESS(COMMAND date "+%Y-%m-%d %H:%M:%S" OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)88 EXECUTE_PROCESS(COMMAND date "+%Y-%m-%d %H:%M:%S"
89 OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
88 ELSE()90 ELSE()
89 SET(TMP_DATE "(no date command known for this platform)")91 SET(TMP_DATE "(no date command known for this platform)")
90 ENDIF()92 ENDIF()
9193
=== modified file 'Percona-Server/cmake/install_layout.cmake'
--- Percona-Server/cmake/install_layout.cmake 2012-08-14 18:04:50 +0000
+++ Percona-Server/cmake/install_layout.cmake 2013-01-31 20:19:36 +0000
@@ -1,4 +1,4 @@
1# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.1# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
2# 2#
3# This program is free software; you can redistribute it and/or modify3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by4# it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
24#24#
25# RPM25# RPM
26# Build as per default RPM layout, with prefix=/usr26# Build as per default RPM layout, with prefix=/usr
27# Note: The layout for ULN RPMs differs, see the "RPM" section.
27#28#
28# DEB29# DEB
29# Build as per STANDALONE, prefix=/opt/mysql/server-$major.$minor30# Build as per STANDALONE, prefix=/opt/mysql/server-$major.$minor
@@ -103,7 +104,10 @@
103# just use if(INSTALL_PLUGINTESTDIR).104# just use if(INSTALL_PLUGINTESTDIR).
104# The plugin must set its own install path for tests105# The plugin must set its own install path for tests
105#106#
106FILE(GLOB plugin_tests ${CMAKE_SOURCE_DIR}/plugin/*/tests)107FILE(GLOB plugin_tests
108 ${CMAKE_SOURCE_DIR}/plugin/*/tests
109 ${CMAKE_SOURCE_DIR}/internal/plugin/*/tests
110)
107111
108#112#
109# STANDALONE layout113# STANDALONE layout
@@ -136,6 +140,10 @@
136#140#
137# RPM layout141# RPM layout
138#142#
143# See "packaging/rpm-uln/mysql-5.5-libdir.patch" for the differences
144# which apply to RPMs in ULN (Oracle Linux), that patch file will
145# be applied at build time via "rpmbuild".
146#
139SET(INSTALL_BINDIR_RPM "bin")147SET(INSTALL_BINDIR_RPM "bin")
140SET(INSTALL_SBINDIR_RPM "sbin")148SET(INSTALL_SBINDIR_RPM "sbin")
141SET(INSTALL_SCRIPTDIR_RPM "bin")149SET(INSTALL_SCRIPTDIR_RPM "bin")
142150
=== modified file 'Percona-Server/cmake/mysql_version.cmake'
--- Percona-Server/cmake/mysql_version.cmake 2012-03-22 15:16:11 +0000
+++ Percona-Server/cmake/mysql_version.cmake 2013-01-31 20:19:36 +0000
@@ -54,7 +54,7 @@
54 ENDIF()54 ENDIF()
5555
56 SET(VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EXTRA_VERSION}")56 SET(VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EXTRA_VERSION}")
57 MESSAGE("-- MySQL ${VERSION}")57 MESSAGE(STATUS "MySQL ${VERSION}")
58 SET(MYSQL_BASE_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}" CACHE INTERNAL "MySQL Base version")58 SET(MYSQL_BASE_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}" CACHE INTERNAL "MySQL Base version")
59 SET(MYSQL_NO_DASH_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")59 SET(MYSQL_NO_DASH_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
60 # Use NDBVERSION irregardless of whether this is Cluster or not, if not60 # Use NDBVERSION irregardless of whether this is Cluster or not, if not
6161
=== modified file 'Percona-Server/cmake/package_name.cmake'
--- Percona-Server/cmake/package_name.cmake 2012-03-22 15:16:11 +0000
+++ Percona-Server/cmake/package_name.cmake 2013-01-31 20:19:36 +0000
@@ -123,7 +123,7 @@
123 SET(package_name "mysql${PRODUCT_TAG}-${VERSION}-${SYSTEM_NAME_AND_PROCESSOR}")123 SET(package_name "mysql${PRODUCT_TAG}-${VERSION}-${SYSTEM_NAME_AND_PROCESSOR}")
124 ENDIF()124 ENDIF()
125125
126 MESSAGE("-- Packaging as: ${package_name}")126 MESSAGE(STATUS "Packaging as: ${package_name}")
127127
128 # Sometimes package suffix is added (something like "-icc-glibc23")128 # Sometimes package suffix is added (something like "-icc-glibc23")
129 IF(PACKAGE_SUFFIX)129 IF(PACKAGE_SUFFIX)
130130
=== modified file 'Percona-Server/cmake/plugin.cmake'
--- Percona-Server/cmake/plugin.cmake 2011-08-15 10:10:08 +0000
+++ Percona-Server/cmake/plugin.cmake 2013-01-31 20:19:36 +0000
@@ -39,6 +39,7 @@
39 GET_FILENAME_COMPONENT(fname ${cfile} NAME)39 GET_FILENAME_COMPONENT(fname ${cfile} NAME)
40 FILE(APPEND ${CMAKE_SOURCE_DIR}/mysql-test/collections/${fname} "${contents}")40 FILE(APPEND ${CMAKE_SOURCE_DIR}/mysql-test/collections/${fname} "${contents}")
41 FILE(APPEND ${fcopied} "${fname}\n")41 FILE(APPEND ${fcopied} "${fname}\n")
42 MESSAGE(STATUS "Appended ${cfile}")
42 ENDFOREACH()43 ENDFOREACH()
43 ENDIF()44 ENDIF()
44ENDMACRO()45ENDMACRO()
4546
=== modified file 'Percona-Server/cmake/wsrep.cmake'
--- Percona-Server/cmake/wsrep.cmake 2012-11-28 21:59:24 +0000
+++ Percona-Server/cmake/wsrep.cmake 2013-01-31 20:19:36 +0000
@@ -17,7 +17,7 @@
17# so WSREP_VERSION is produced regardless17# so WSREP_VERSION is produced regardless
1818
19# Set the patch version19# Set the patch version
20SET(WSREP_PATCH_VERSION "7")20SET(WSREP_PATCH_VERSION "7.1")
2121
22# Obtain patch revision number22# Obtain patch revision number
23SET(WSREP_PATCH_REVNO $ENV{WSREP_REV})23SET(WSREP_PATCH_REVNO $ENV{WSREP_REV})
2424
=== modified file 'Percona-Server/dbug/dbug.c'
--- Percona-Server/dbug/dbug.c 2011-07-07 11:22:43 +0000
+++ Percona-Server/dbug/dbug.c 2013-01-31 20:19:36 +0000
@@ -1179,7 +1179,7 @@
1179 pthread_mutex_lock(&THR_LOCK_dbug);1179 pthread_mutex_lock(&THR_LOCK_dbug);
1180 DoPrefix(cs, _line_);1180 DoPrefix(cs, _line_);
1181 Indent(cs, cs->level);1181 Indent(cs, cs->level);
1182 (void) fprintf(cs->stack->out_file, "<%s\n", cs->func);1182 (void) fprintf(cs->stack->out_file, "<%s %u\n", cs->func, _line_);
1183 DbugFlush(cs);1183 DbugFlush(cs);
1184 }1184 }
1185 }1185 }
11861186
=== modified file 'Percona-Server/libmysql/libmysql.c'
--- Percona-Server/libmysql/libmysql.c 2012-09-17 13:08:32 +0000
+++ Percona-Server/libmysql/libmysql.c 2013-01-31 20:19:36 +0000
@@ -4218,7 +4218,7 @@
4218 if ((int) stmt->state < (int) MYSQL_STMT_FETCH_DONE)4218 if ((int) stmt->state < (int) MYSQL_STMT_FETCH_DONE)
4219 {4219 {
4220 set_stmt_error(stmt, CR_NO_DATA, unknown_sqlstate, NULL);4220 set_stmt_error(stmt, CR_NO_DATA, unknown_sqlstate, NULL);
4221 return 1;4221 DBUG_RETURN(1);
4222 }4222 }
4223 if (column >= stmt->field_count)4223 if (column >= stmt->field_count)
4224 {4224 {
42254225
=== renamed file 'Percona-Server/mysql-test/include/mysqlbinlog_row_engine.inc' => 'Percona-Server/mysql-test/extra/binlog_tests/mysqlbinlog_row_engine.inc'
=== added file 'Percona-Server/mysql-test/include/have_null_audit_plugin.inc'
--- Percona-Server/mysql-test/include/have_null_audit_plugin.inc 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/include/have_null_audit_plugin.inc 2013-01-31 20:19:36 +0000
@@ -0,0 +1,22 @@
1disable_query_log;
2#
3# Check if server has support for loading plugins
4#
5if (`SELECT @@have_dynamic_loading != 'YES'`) {
6 --skip Null audit plugin requires dynamic loading
7}
8
9#
10# Check if the variable AUDIT_NULL is set
11#
12if (!$AUDIT_NULL) {
13 --skip Audit_null plugin requires the environment variable \$AUDIT_NULL to be set (normally done by mtr)
14}
15
16#
17# Check if --plugin-dir was setup for null_audit db
18#
19if (`SELECT CONCAT('--plugin-dir=', REPLACE(@@plugin_dir, '\\\\', '/')) != '$AUDIT_NULL_OPT/'`) {
20 --skip null audit plugin requires that --plugin-dir is set to the null audit plugin dir (either the .opt file does not contain \$AUDIT_NULL_OPT or another plugin is in use)
21}
22enable_query_log;
023
=== modified file 'Percona-Server/mysql-test/include/plugin.defs'
--- Percona-Server/mysql-test/include/plugin.defs 2011-09-21 10:40:41 +0000
+++ Percona-Server/mysql-test/include/plugin.defs 2013-01-31 20:19:36 +0000
@@ -40,3 +40,4 @@
40ha_federated storage/federated FEDERATED_PLUGIN40ha_federated storage/federated FEDERATED_PLUGIN
41mypluglib plugin/fulltext SIMPLE_PARSER41mypluglib plugin/fulltext SIMPLE_PARSER
42libdaemon_example plugin/daemon_example DAEMONEXAMPLE42libdaemon_example plugin/daemon_example DAEMONEXAMPLE
43adt_null plugin/audit_null AUDIT_NULL
4344
=== modified file 'Percona-Server/mysql-test/include/rpl_start_server.inc'
--- Percona-Server/mysql-test/include/rpl_start_server.inc 2011-01-18 11:25:07 +0000
+++ Percona-Server/mysql-test/include/rpl_start_server.inc 2013-01-31 20:19:36 +0000
@@ -8,6 +8,7 @@
8# --let $rpl_server_number= N8# --let $rpl_server_number= N
9# [--let $rpl_server_parameters= --flag1 --flag2 ...]9# [--let $rpl_server_parameters= --flag1 --flag2 ...]
10# [--let $rpl_debug= 1]10# [--let $rpl_debug= 1]
11# [--let $rpl_server_error= 0]
11# --source include/rpl_start_server.inc12# --source include/rpl_start_server.inc
12#13#
13# Parameters:14# Parameters:
@@ -21,6 +22,9 @@
21# If set, extra parameters given by this variable are passed to22# If set, extra parameters given by this variable are passed to
22# mysqld.23# mysqld.
23#24#
25# $rpl_server_error
26# If set, failure of the server startup is expected.
27#
24# $rpl_debug28# $rpl_debug
25# See include/rpl_init.inc29# See include/rpl_init.inc
26#30#
@@ -47,8 +51,9 @@
47# Write file to make mysql-test-run.pl start up the server again51# Write file to make mysql-test-run.pl start up the server again
48--exec echo "$_rpl_start_server_command" > $MYSQLTEST_VARDIR/tmp/mysqld.$rpl_server_number.expect52--exec echo "$_rpl_start_server_command" > $MYSQLTEST_VARDIR/tmp/mysqld.$rpl_server_number.expect
4953
50--source include/rpl_reconnect.inc54if (!$rpl_server_error)
5155{
5256 --source include/rpl_reconnect.inc
53--let $include_filename= rpl_start_server.inc $_rpl_start_server_args57 --let $include_filename= rpl_start_server.inc $_rpl_start_server_args
54--source include/end_include_file.inc58 --source include/end_include_file.inc
59}
5560
=== modified file 'Percona-Server/mysql-test/lib/mtr_cases.pm'
--- Percona-Server/mysql-test/lib/mtr_cases.pm 2012-10-25 21:11:01 +0000
+++ Percona-Server/mysql-test/lib/mtr_cases.pm 2013-01-31 20:19:36 +0000
@@ -295,6 +295,7 @@
295 "storage/*/mtr",295 "storage/*/mtr",
296 # Look in plugin specific suite dir296 # Look in plugin specific suite dir
297 "plugin/$suite/tests",297 "plugin/$suite/tests",
298 "internal/plugin/$suite/tests",
298 ],299 ],
299 [$suite, "mtr"], ($suite =~ /^i_/));300 [$suite, "mtr"], ($suite =~ /^i_/));
300 return unless $suitedir;301 return unless $suitedir;
301302
=== modified file 'Percona-Server/mysql-test/mysql-test-run.pl'
--- Percona-Server/mysql-test/mysql-test-run.pl 2012-09-17 13:08:32 +0000
+++ Percona-Server/mysql-test/mysql-test-run.pl 2013-01-31 20:19:36 +0000
@@ -461,6 +461,7 @@
461461
462 # Also read from any plugin local or suite specific plugin.defs462 # Also read from any plugin local or suite specific plugin.defs
463 for (glob "$basedir/plugin/*/tests/mtr/plugin.defs".463 for (glob "$basedir/plugin/*/tests/mtr/plugin.defs".
464 " $basedir/internal/plugin/*/tests/mtr/plugin.defs".
464 " suite/*/plugin.defs") {465 " suite/*/plugin.defs") {
465 read_plugin_defs($_);466 read_plugin_defs($_);
466 }467 }
467468
=== modified file 'Percona-Server/mysql-test/r/contributors.result'
--- Percona-Server/mysql-test/r/contributors.result 2006-05-03 00:53:26 +0000
+++ Percona-Server/mysql-test/r/contributors.result 2013-01-31 20:19:36 +0000
@@ -3,3 +3,5 @@
3Ronald Bradford Brisbane, Australia EFF contribution for UC2006 Auction3Ronald Bradford Brisbane, Australia EFF contribution for UC2006 Auction
4Sheeri Kritzer Boston, Mass. USA EFF contribution for UC2006 Auction4Sheeri Kritzer Boston, Mass. USA EFF contribution for UC2006 Auction
5Mark Shuttleworth London, UK. EFF contribution for UC2006 Auction5Mark Shuttleworth London, UK. EFF contribution for UC2006 Auction
6Warnings:
7Warning 1681 'SHOW CONTRIBUTORS' is deprecated and will be removed in a future release.
68
=== modified file 'Percona-Server/mysql-test/r/ctype_ucs.result'
--- Percona-Server/mysql-test/r/ctype_ucs.result 2012-06-29 10:12:21 +0000
+++ Percona-Server/mysql-test/r/ctype_ucs.result 2013-01-31 20:19:36 +0000
@@ -191,6 +191,32 @@
191 `r` varchar(10) CHARACTER SET ucs2 NOT NULL DEFAULT ''191 `r` varchar(10) CHARACTER SET ucs2 NOT NULL DEFAULT ''
192) ENGINE=MyISAM DEFAULT CHARSET=latin1192) ENGINE=MyISAM DEFAULT CHARSET=latin1
193DROP TABLE t1;193DROP TABLE t1;
194#
195# Bug #51876 : crash/memory underrun when loading data with ucs2
196# and reverse() function
197#
198# Problem # 1 (original report): wrong parsing of ucs2 data
199SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp.txt';
200CREATE TABLE t1(a INT);
201LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2
202(@b) SET a=REVERSE(@b);
203# should return 2 zeroes (as the value is truncated)
204SELECT * FROM t1;
205a
2060
2071
208DROP TABLE t1;
209# Problem # 2 : if you write and read ucs2 data to a file they're lost
210SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp2.txt' CHARACTER SET ucs2;
211CREATE TABLE t1(a INT);
212LOAD DATA INFILE 'tmpp2.txt' INTO TABLE t1 CHARACTER SET ucs2
213(@b) SET a=REVERSE(@b);
214# should return 0 and 1 (10 reversed)
215SELECT * FROM t1;
216a
2170
2181
219DROP TABLE t1;
194create table t2(f1 Char(30));220create table t2(f1 Char(30));
195insert into t2 values ("103000"), ("22720000"), ("3401200"), ("78000");221insert into t2 values ("103000"), ("22720000"), ("3401200"), ("78000");
196select lpad(f1, 12, "-o-/") from t2;222select lpad(f1, 12, "-o-/") from t2;
197223
=== modified file 'Percona-Server/mysql-test/r/loaddata.result'
--- Percona-Server/mysql-test/r/loaddata.result 2011-05-10 14:29:44 +0000
+++ Percona-Server/mysql-test/r/loaddata.result 2013-01-31 20:19:36 +0000
@@ -504,35 +504,6 @@
504LOAD DATA LOCAL INFILE 'tb.txt' INTO TABLE t1;504LOAD DATA LOCAL INFILE 'tb.txt' INTO TABLE t1;
505DROP TABLE t1;505DROP TABLE t1;
506#506#
507# Bug #51876 : crash/memory underrun when loading data with ucs2
508# and reverse() function
509#
510# Problem # 1 (original report): wrong parsing of ucs2 data
511SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp.txt';
512CREATE TABLE t1(a INT);
513LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2
514(@b) SET a=REVERSE(@b);
515Warnings:
516Warning 1366 Incorrect integer value: '?' for column 'a' at row 1
517Warning 1366 Incorrect integer value: '?' for column 'a' at row 2
518# should return 2 zeroes (as the value is truncated)
519SELECT * FROM t1;
520a
5210
5220
523DROP TABLE t1;
524# Problem # 2 : if you write and read ucs2 data to a file they're lost
525SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp2.txt' CHARACTER SET ucs2;
526CREATE TABLE t1(a INT);
527LOAD DATA INFILE 'tmpp2.txt' INTO TABLE t1 CHARACTER SET ucs2
528(@b) SET a=REVERSE(@b);
529# should return 0 and 1 (10 reversed)
530SELECT * FROM t1;
531a
5320
5331
534DROP TABLE t1;
535#
536# Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS AND WRITES WITH U507# Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS AND WRITES WITH U
537#508#
538CREATE TABLE t1(f1 INT);509CREATE TABLE t1(f1 INT);
539510
=== added file 'Percona-Server/mysql-test/r/percona_bug1017192.result'
--- Percona-Server/mysql-test/r/percona_bug1017192.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/r/percona_bug1017192.result 2013-01-31 20:19:36 +0000
@@ -0,0 +1,10 @@
1SET DEBUG_SYNC='reset';
2CREATE TABLE IF NOT EXISTS t1 (`a` INT) ENGINE=InnoDB;
3INSERT INTO t1 VALUES (1),(2),(3),(4);
4SET DEBUG_SYNC='after_copy_data_between_tables SIGNAL run_show_innodb_status
5 WAIT_FOR show_innodb_status_done';
6ALTER TABLE t1 PARTITION BY HASH (`a`) PARTITIONS 4 ;
7SET DEBUG_SYNC='now WAIT_FOR run_show_innodb_status';
8SHOW ENGINE INNODB STATUS;
9SET DEBUG_SYNC='now SIGNAL show_innodb_status_done';
10DROP TABLE t1;
011
=== modified file 'Percona-Server/mysql-test/r/plugin_auth.result'
--- Percona-Server/mysql-test/r/plugin_auth.result 2011-10-12 12:07:15 +0000
+++ Percona-Server/mysql-test/r/plugin_auth.result 2013-01-31 20:19:36 +0000
@@ -124,17 +124,20 @@
124this should fail : not the same user124this should fail : not the same user
125GRANT PROXY ON grant_plug TO grant_plug_dest;125GRANT PROXY ON grant_plug TO grant_plug_dest;
126ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'126ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'
127this should fail : same user, but on a different host127This is a valid grant
128GRANT PROXY ON grant_plug_dest TO grant_plug;128GRANT PROXY ON grant_plug_dest TO grant_plug;
129ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'129REVOKE PROXY ON grant_plug_dest FROM grant_plug;
130this should work : same user130this should work : same user
131GRANT PROXY ON grant_plug_dest@localhost TO grant_plug_dest2;131GRANT PROXY ON grant_plug_dest TO grant_plug_dest2;
132REVOKE PROXY ON grant_plug_dest@localhost FROM grant_plug_dest2;132REVOKE PROXY ON grant_plug_dest FROM grant_plug_dest2;
133this should work : same user133this should fail : not the same user
134GRANT PROXY ON grant_plug_dest@localhost TO grant_plug WITH GRANT OPTION;134GRANT PROXY ON grant_plug_dest@localhost TO grant_plug WITH GRANT OPTION;
135ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'
136this should fail : not the same user
135REVOKE PROXY ON grant_plug_dest@localhost FROM grant_plug;137REVOKE PROXY ON grant_plug_dest@localhost FROM grant_plug;
138ERROR 28000: Access denied for user 'grant_plug_dest'@'localhost'
136this should fail : can't create users139this should fail : can't create users
137GRANT PROXY ON grant_plug_dest@localhost TO grant_plug@localhost;140GRANT PROXY ON grant_plug_dest TO grant_plug@localhost;
138ERROR 42000: You are not allowed to create a user with GRANT141ERROR 42000: You are not allowed to create a user with GRANT
139in default connection142in default connection
140# test what root can grant143# test what root can grant
@@ -152,12 +155,12 @@
152in default connection155in default connection
153SHOW GRANTS FOR grant_plug;156SHOW GRANTS FOR grant_plug;
154Grants for grant_plug@%157Grants for grant_plug@%
155GRANT ALL PRIVILEGES ON *.* TO 'grant_plug'@'%' WITH GRANT OPTION158GRANT ALL PRIVILEGES ON *.* TO 'grant_plug'@'%'
156GRANT PROXY ON 'future_user'@'%' TO 'grant_plug'@'%'159GRANT PROXY ON 'future_user'@'%' TO 'grant_plug'@'%'
157REVOKE PROXY ON future_user FROM grant_plug;160REVOKE PROXY ON future_user FROM grant_plug;
158SHOW GRANTS FOR grant_plug;161SHOW GRANTS FOR grant_plug;
159Grants for grant_plug@%162Grants for grant_plug@%
160GRANT ALL PRIVILEGES ON *.* TO 'grant_plug'@'%' WITH GRANT OPTION163GRANT ALL PRIVILEGES ON *.* TO 'grant_plug'@'%'
161## testing drop user164## testing drop user
162CREATE USER test_drop@localhost;165CREATE USER test_drop@localhost;
163GRANT PROXY ON future_user TO test_drop@localhost;166GRANT PROXY ON future_user TO test_drop@localhost;
164167
=== modified file 'Percona-Server/mysql-test/r/show_check.result'
--- Percona-Server/mysql-test/r/show_check.result 2012-04-21 03:36:40 +0000
+++ Percona-Server/mysql-test/r/show_check.result 2013-01-31 20:19:36 +0000
@@ -1552,3 +1552,14 @@
1552óóóó1552óóóó
1553115531
1554SET NAMES latin1;1554SET NAMES latin1;
1555#
1556# WL#6454: Deprecate SHOW AUTHORS and SHOW CONTRIBUTORS
1557#
1558SHOW AUTHORS;
1559SHOW WARNINGS;
1560Level Code Message
1561Warning 1681 'SHOW AUTHORS' is deprecated and will be removed in a future release.
1562SHOW CONTRIBUTORS;
1563SHOW WARNINGS;
1564Level Code Message
1565Warning 1681 'SHOW CONTRIBUTORS' is deprecated and will be removed in a future release.
15551566
=== modified file 'Percona-Server/mysql-test/r/sp_notembedded.result'
--- Percona-Server/mysql-test/r/sp_notembedded.result 2012-03-28 08:05:08 +0000
+++ Percona-Server/mysql-test/r/sp_notembedded.result 2013-01-31 20:19:36 +0000
@@ -309,7 +309,6 @@
309# Switching to default connection.309# Switching to default connection.
310DROP DATABASE `my.db`;310DROP DATABASE `my.db`;
311USE test;311USE test;
312set @@global.concurrent_insert= @old_concurrent_insert;
313#312#
314# Bug#11763507 - 56224: FUNCTION NAME IS CASE-SENSITIVE313# Bug#11763507 - 56224: FUNCTION NAME IS CASE-SENSITIVE
315#314#
@@ -330,3 +329,4 @@
330teste_bug11763507 SYSTEM # latin1 latin1_swedish_ci latin1_swedish_ci329teste_bug11763507 SYSTEM # latin1 latin1_swedish_ci latin1_swedish_ci
331DROP EVENT teste_bug11763507;330DROP EVENT teste_bug11763507;
332#END OF BUG#11763507 test.331#END OF BUG#11763507 test.
332set @@global.concurrent_insert= @old_concurrent_insert;
333333
=== renamed file 'Percona-Server/mysql-test/r/mysqlbinlog-cp932.result' => 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog-cp932.result'
=== renamed file 'Percona-Server/mysql-test/r/mysqlbinlog2.result' => 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog2.result'
=== renamed file 'Percona-Server/mysql-test/r/mysqlbinlog_base64.result' => 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_base64.result'
=== renamed file 'Percona-Server/mysql-test/r/mysqlbinlog_row.result' => 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row.result'
=== renamed file 'Percona-Server/mysql-test/r/mysqlbinlog_row_innodb.result' => 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_innodb.result'
=== renamed file 'Percona-Server/mysql-test/r/mysqlbinlog_row_myisam.result' => 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_myisam.result'
=== renamed file 'Percona-Server/mysql-test/r/mysqlbinlog_row_trans.result' => 'Percona-Server/mysql-test/suite/binlog/r/binlog_mysqlbinlog_row_trans.result'
=== renamed file 'Percona-Server/mysql-test/t/mysqlbinlog-cp932-master.opt' => 'Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog-cp932-master.opt'
=== renamed file 'Percona-Server/mysql-test/t/mysqlbinlog-cp932.test' => 'Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog-cp932.test'
=== renamed file 'Percona-Server/mysql-test/t/mysqlbinlog2.test' => 'Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog2.test'
=== renamed file 'Percona-Server/mysql-test/t/mysqlbinlog_base64.test' => 'Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_base64.test'
=== renamed file 'Percona-Server/mysql-test/t/mysqlbinlog_row.test' => 'Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_row.test'
=== renamed file 'Percona-Server/mysql-test/t/mysqlbinlog_row_innodb.test' => 'Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_innodb.test'
--- Percona-Server/mysql-test/t/mysqlbinlog_row_innodb.test 2008-08-20 14:06:31 +0000
+++ Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_innodb.test 2013-01-31 20:19:36 +0000
@@ -20,5 +20,5 @@
20--source include/have_binlog_format_row.inc20--source include/have_binlog_format_row.inc
21--source include/have_ucs2.inc 21--source include/have_ucs2.inc
2222
23--source include/mysqlbinlog_row_engine.inc23--source extra/binlog_tests/mysqlbinlog_row_engine.inc
2424
2525
=== renamed file 'Percona-Server/mysql-test/t/mysqlbinlog_row_myisam.test' => 'Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_myisam.test'
--- Percona-Server/mysql-test/t/mysqlbinlog_row_myisam.test 2008-08-20 14:06:31 +0000
+++ Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_myisam.test 2013-01-31 20:19:36 +0000
@@ -20,4 +20,4 @@
20--source include/have_binlog_format_row.inc20--source include/have_binlog_format_row.inc
21--source include/have_ucs2.inc 21--source include/have_ucs2.inc
2222
23--source include/mysqlbinlog_row_engine.inc23--source extra/binlog_tests/mysqlbinlog_row_engine.inc
2424
=== renamed file 'Percona-Server/mysql-test/t/mysqlbinlog_row_trans.test' => 'Percona-Server/mysql-test/suite/binlog/t/binlog_mysqlbinlog_row_trans.test'
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb-autoinc.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb-autoinc.result 2012-05-02 15:45:07 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb-autoinc.result 2013-01-31 20:19:36 +0000
@@ -1289,3 +1289,91 @@
1289c1 c21289c1 c2
12901 NULL12901 NULL
1291DROP TABLE t1;1291DROP TABLE t1;
1292SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=1;
1293SHOW VARIABLES LIKE "%auto_inc%";
1294Variable_name Value
1295auto_increment_increment 1
1296auto_increment_offset 1
1297CREATE TABLE t1 (c1 INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
1298INSERT INTO t1 VALUES (2147483648, 'a');
1299SHOW CREATE TABLE t1;
1300Table Create Table
1301t1 CREATE TABLE `t1` (
1302 `c1` int(10) unsigned NOT NULL AUTO_INCREMENT,
1303 `c2` varchar(10) DEFAULT NULL,
1304 PRIMARY KEY (`c1`)
1305) ENGINE=InnoDB AUTO_INCREMENT=2147483649 DEFAULT CHARSET=latin1
1306SELECT * FROM t1;
1307c1 c2
13082147483648 a
1309ALTER TABLE t1 CHANGE c1 c1 INT;
1310Warnings:
1311Warning 1264 Out of range value for column 'c1' at row 1
1312SHOW CREATE TABLE t1;
1313Table Create Table
1314t1 CREATE TABLE `t1` (
1315 `c1` int(11) NOT NULL DEFAULT '0',
1316 `c2` varchar(10) DEFAULT NULL,
1317 PRIMARY KEY (`c1`)
1318) ENGINE=InnoDB DEFAULT CHARSET=latin1
1319INSERT INTO t1(c2) VALUES('b');
1320SELECT * FROM t1;
1321c1 c2
13220 b
13232147483647 a
1324SHOW CREATE TABLE t1;
1325Table Create Table
1326t1 CREATE TABLE `t1` (
1327 `c1` int(11) NOT NULL DEFAULT '0',
1328 `c2` varchar(10) DEFAULT NULL,
1329 PRIMARY KEY (`c1`)
1330) ENGINE=InnoDB DEFAULT CHARSET=latin1
1331DROP TABLE t1;
1332CREATE TABLE t1 (c1 INT AUTO_INCREMENT PRIMARY KEY, c2 INT) ENGINE = MyISAM;
1333INSERT INTO t1 (c1) VALUES (NULL), (-290783232), (NULL);
1334Warnings:
1335Warning 1264 Out of range value for column 'c1' at row 3
1336SHOW CREATE TABLE t1;
1337Table Create Table
1338t1 CREATE TABLE `t1` (
1339 `c1` int(11) NOT NULL AUTO_INCREMENT,
1340 `c2` int(11) DEFAULT NULL,
1341 PRIMARY KEY (`c1`)
1342) ENGINE=MyISAM AUTO_INCREMENT=2147483648 DEFAULT CHARSET=latin1
1343SELECT * FROM t1;
1344c1 c2
13451 NULL
1346-290783232 NULL
13472147483647 NULL
1348ALTER TABLE t1 ENGINE = InnoDB;
1349SELECT * FROM t1;
1350c1 c2
1351-290783232 NULL
13521 NULL
13532147483647 NULL
1354SHOW CREATE TABLE t1;
1355Table Create Table
1356t1 CREATE TABLE `t1` (
1357 `c1` int(11) NOT NULL AUTO_INCREMENT,
1358 `c2` int(11) DEFAULT NULL,
1359 PRIMARY KEY (`c1`)
1360) ENGINE=InnoDB AUTO_INCREMENT=2147483648 DEFAULT CHARSET=latin1
1361REPLACE INTO t1 (c2 ) VALUES (0);
1362ERROR HY000: Failed to read auto-increment value from storage engine
1363SELECT * FROM t1;
1364c1 c2
1365-290783232 NULL
13661 NULL
13672147483647 NULL
1368DROP TABLE t1;
1369CREATE TABLE t1 (c1 DOUBLE NOT NULL PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB
1370AUTO_INCREMENT=10000000000000000000;
1371SHOW CREATE TABLE t1;
1372Table Create Table
1373t1 CREATE TABLE `t1` (
1374 `c1` double NOT NULL AUTO_INCREMENT,
1375 PRIMARY KEY (`c1`)
1376) ENGINE=InnoDB AUTO_INCREMENT=10000000000000000000 DEFAULT CHARSET=latin1
1377INSERT INTO t1 VALUES ();
1378ERROR HY000: Failed to read auto-increment value from storage engine
1379DROP TABLE t1;
12921380
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb-zip.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb-zip.result 2011-08-08 09:16:15 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb-zip.result 2013-01-31 20:19:36 +0000
@@ -126,12 +126,12 @@
126c TEXT NOT NULL, d TEXT NOT NULL,126c TEXT NOT NULL, d TEXT NOT NULL,
127PRIMARY KEY (c(767),d(767)))127PRIMARY KEY (c(767),d(767)))
128ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;128ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
129ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs129ERROR 42000: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
130CREATE TABLE t1(130CREATE TABLE t1(
131c TEXT NOT NULL, d TEXT NOT NULL,131c TEXT NOT NULL, d TEXT NOT NULL,
132PRIMARY KEY (c(767),d(767)))132PRIMARY KEY (c(767),d(767)))
133ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=2 CHARSET=ASCII;133ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=2 CHARSET=ASCII;
134ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs134ERROR 42000: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
135CREATE TABLE t1(135CREATE TABLE t1(
136c TEXT NOT NULL, d TEXT NOT NULL,136c TEXT NOT NULL, d TEXT NOT NULL,
137PRIMARY KEY (c(767),d(767)))137PRIMARY KEY (c(767),d(767)))
@@ -139,7 +139,7 @@
139drop table t1;139drop table t1;
140CREATE TABLE t1(c TEXT, PRIMARY KEY (c(440)))140CREATE TABLE t1(c TEXT, PRIMARY KEY (c(440)))
141ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;141ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
142ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs142ERROR 42000: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
143CREATE TABLE t1(c TEXT, PRIMARY KEY (c(438)))143CREATE TABLE t1(c TEXT, PRIMARY KEY (c(438)))
144ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;144ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1 CHARSET=ASCII;
145INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));145INSERT INTO t1 VALUES(REPEAT('A',512)),(REPEAT('B',512));
146146
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb.result 2012-04-18 23:24:47 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb.result 2013-01-31 20:19:36 +0000
@@ -3085,7 +3085,7 @@
3085c25 CHAR(255), c26 CHAR(255), c27 CHAR(255), c28 CHAR(255),3085c25 CHAR(255), c26 CHAR(255), c27 CHAR(255), c28 CHAR(255),
3086c29 CHAR(255), c30 CHAR(255), c31 CHAR(255), c32 CHAR(255)3086c29 CHAR(255), c30 CHAR(255), c31 CHAR(255), c32 CHAR(255)
3087) ENGINE = InnoDB;3087) ENGINE = InnoDB;
3088ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs3088ERROR 42000: Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
3089DROP TABLE IF EXISTS t1;3089DROP TABLE IF EXISTS t1;
3090Warnings:3090Warnings:
3091Note 1051 Unknown table 't1'3091Note 1051 Unknown table 't1'
30923092
=== added file 'Percona-Server/mysql-test/suite/innodb/r/innodb_bug14704286.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb_bug14704286.result 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb_bug14704286.result 2013-01-31 20:19:36 +0000
@@ -0,0 +1,53 @@
1use test;
2drop table if exists t1;
3create table t1 (id int primary key, value int, value2 int,
4value3 int, index(value,value2)) engine=innodb;
5insert into t1 values
6(10,10,10,10),(11,11,11,11),(12,12,12,12),(13,13,13,13),(14,14,14,14),
7(15,15,15,15),(16,16,16,16),(17,17,17,17),(18,18,18,18),(19,19,19,19),
8(20,20,20,20);
9use test;
10start transaction with consistent snapshot;
11use test;
12CREATE PROCEDURE update_t1()
13BEGIN
14DECLARE i INT DEFAULT 1;
15while (i <= 5000) DO
16update test.t1 set value2=value2+1, value3=value3+1 where id=12;
17SET i = i + 1;
18END WHILE;
19END|
20set autocommit=0;
21CALL update_t1();
22select * from t1;
23id value value2 value3
2410 10 10 10
2511 11 11 11
2612 12 5012 5012
2713 13 13 13
2814 14 14 14
2915 15 15 15
3016 16 16 16
3117 17 17 17
3218 18 18 18
3319 19 19 19
3420 20 20 20
35set autocommit=1;
36select * from t1;
37id value value2 value3
3810 10 10 10
3911 11 11 11
4012 12 5012 5012
4113 13 13 13
4214 14 14 14
4315 15 15 15
4416 16 16 16
4517 17 17 17
4618 18 18 18
4719 19 19 19
4820 20 20 20
49select * from t1 force index(value) where value=12;
50kill query @id;
51ERROR 70100: Query execution was interrupted
52drop procedure if exists update_t1;
53drop table if exists t1;
054
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb_bug53591.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb_bug53591.result 2011-10-05 13:14:14 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb_bug53591.result 2013-01-31 20:19:36 +0000
@@ -8,7 +8,7 @@
8SHOW WARNINGS;8SHOW WARNINGS;
9Level Code Message9Level Code Message
10Error 139 Too big row10Error 139 Too big row
11Error 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs11Error 1118 Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
12Error 1030 Got error 139 from storage engine12Error 1030 Got error 139 from storage engine
13DROP TABLE bug53591;13DROP TABLE bug53591;
14SET GLOBAL innodb_file_format=Antelope;14SET GLOBAL innodb_file_format=Antelope;
1515
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb_corrupt_bit.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb_corrupt_bit.result 2011-08-17 09:39:55 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb_corrupt_bit.result 2013-01-31 20:19:36 +0000
@@ -40,13 +40,13 @@
40test.corrupt_bit_test_ā check Warning InnoDB: The B-tree of index "idxē" is corrupted.40test.corrupt_bit_test_ā check Warning InnoDB: The B-tree of index "idxē" is corrupted.
41test.corrupt_bit_test_ā check error Corrupt41test.corrupt_bit_test_ā check error Corrupt
42select c from corrupt_bit_test_ā;42select c from corrupt_bit_test_ā;
43ERROR HY000: Incorrect key file for table 'corrupt_bit_test_ā'; try to repair it43ERROR HY000: Index corrupt_bit_test_ā is corrupted
44select z from corrupt_bit_test_ā;44select z from corrupt_bit_test_ā;
45ERROR HY000: Incorrect key file for table 'corrupt_bit_test_ā'; try to repair it45ERROR HY000: Index corrupt_bit_test_ā is corrupted
46show warnings;46show warnings;
47Level Code Message47Level Code Message
48Warning 179 InnoDB: Index "idxē" for table "test"."corrupt_bit_test_ā" is marked as corrupted48Warning 179 InnoDB: Index "idxē" for table "test"."corrupt_bit_test_ā" is marked as corrupted
49Error 1034 Incorrect key file for table 'corrupt_bit_test_ā'; try to repair it49Error 1712 Index corrupt_bit_test_ā is corrupted
50insert into corrupt_bit_test_ā values (10001, "a", 20001, 20001);50insert into corrupt_bit_test_ā values (10001, "a", 20001, 20001);
51select * from corrupt_bit_test_ā use index(primary) where a = 10001;51select * from corrupt_bit_test_ā use index(primary) where a = 10001;
52a b c z52a b c z
@@ -63,7 +63,7 @@
63test.corrupt_bit_test_ā check error Corrupt63test.corrupt_bit_test_ā check error Corrupt
64set names utf8;64set names utf8;
65select z from corrupt_bit_test_ā;65select z from corrupt_bit_test_ā;
66ERROR HY000: Incorrect key file for table 'corrupt_bit_test_ā'; try to repair it66ERROR HY000: Index corrupt_bit_test_ā is corrupted
67drop index idxē on corrupt_bit_test_ā;67drop index idxē on corrupt_bit_test_ā;
68select z from corrupt_bit_test_ā limit 10;68select z from corrupt_bit_test_ā limit 10;
69z69z
7070
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb_misc1.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb_misc1.result 2011-10-26 07:06:23 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb_misc1.result 2013-01-31 20:19:36 +0000
@@ -779,7 +779,7 @@
779c25 CHAR(255), c26 CHAR(255), c27 CHAR(255), c28 CHAR(255),779c25 CHAR(255), c26 CHAR(255), c27 CHAR(255), c28 CHAR(255),
780c29 CHAR(255), c30 CHAR(255), c31 CHAR(255), c32 CHAR(255)780c29 CHAR(255), c30 CHAR(255), c31 CHAR(255), c32 CHAR(255)
781) ENGINE = InnoDB;781) ENGINE = InnoDB;
782ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs782ERROR 42000: Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
783SET innodb_strict_mode=OFF;783SET innodb_strict_mode=OFF;
784DROP TABLE IF EXISTS t1;784DROP TABLE IF EXISTS t1;
785Warnings:785Warnings:
786786
=== modified file 'Percona-Server/mysql-test/suite/innodb/r/innodb_prefix_index_liftedlimit.result'
--- Percona-Server/mysql-test/suite/innodb/r/innodb_prefix_index_liftedlimit.result 2011-10-05 13:14:14 +0000
+++ Percona-Server/mysql-test/suite/innodb/r/innodb_prefix_index_liftedlimit.result 2013-01-31 20:19:36 +0000
@@ -649,7 +649,7 @@
649col_2_varchar VARCHAR (4000) CHARACTER SET 'utf8' ,649col_2_varchar VARCHAR (4000) CHARACTER SET 'utf8' ,
650PRIMARY KEY (col_1_varchar(1024))650PRIMARY KEY (col_1_varchar(1024))
651) ROW_FORMAT=DYNAMIC, engine = innodb;651) ROW_FORMAT=DYNAMIC, engine = innodb;
652ERROR 42000: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLOBs652ERROR 42000: Row size too large (> max_row_size). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.
653CREATE TABLE worklog5743 (653CREATE TABLE worklog5743 (
654col_1_varbinary VARBINARY (4000) ,654col_1_varbinary VARBINARY (4000) ,
655col_2_varchar VARCHAR (4000) CHARACTER SET 'utf8',655col_2_varchar VARCHAR (4000) CHARACTER SET 'utf8',
656656
=== modified file 'Percona-Server/mysql-test/suite/innodb/t/innodb-autoinc.test'
--- Percona-Server/mysql-test/suite/innodb/t/innodb-autoinc.test 2012-03-29 07:02:08 +0000
+++ Percona-Server/mysql-test/suite/innodb/t/innodb-autoinc.test 2013-01-31 20:19:36 +0000
@@ -139,7 +139,7 @@
139CREATE TABLE t1 (c1 INT AUTO_INCREMENT, c2 INT, PRIMARY KEY(c1)) ENGINE=InnoDB;139CREATE TABLE t1 (c1 INT AUTO_INCREMENT, c2 INT, PRIMARY KEY(c1)) ENGINE=InnoDB;
140INSERT INTO t1 VALUES (NULL, 1);140INSERT INTO t1 VALUES (NULL, 1);
141DELETE FROM t1 WHERE c1 = 1;141DELETE FROM t1 WHERE c1 = 1;
142INSERT INTO t1 VALUES (2,1); 142INSERT INTO t1 VALUES (2,1);
143INSERT INTO t1 VALUES (NULL,8);143INSERT INTO t1 VALUES (NULL,8);
144SELECT * FROM t1;144SELECT * FROM t1;
145DROP TABLE t1;145DROP TABLE t1;
@@ -639,7 +639,7 @@
639DROP TABLE t1;639DROP TABLE t1;
640640
641641
642# Check if we handl offset > column max value properly642# Check if we handle offset > column max value properly
643SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=256;643SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=256;
644SHOW VARIABLES LIKE "%auto_inc%";644SHOW VARIABLES LIKE "%auto_inc%";
645# TINYINT645# TINYINT
@@ -648,3 +648,40 @@
648SHOW CREATE TABLE t1;648SHOW CREATE TABLE t1;
649SELECT * FROM t1;649SELECT * FROM t1;
650DROP TABLE t1;650DROP TABLE t1;
651
652# Check if we handle the case where a current value is greater than the max
653# of the column. IMO, this should not be allowed and the assertion that fails
654# is actually an invariant.
655SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=1;
656SHOW VARIABLES LIKE "%auto_inc%";
657# TINYINT
658CREATE TABLE t1 (c1 INT UNSIGNED PRIMARY KEY AUTO_INCREMENT, c2 VARCHAR(10)) ENGINE=InnoDB;
659INSERT INTO t1 VALUES (2147483648, 'a');
660SHOW CREATE TABLE t1;
661SELECT * FROM t1;
662ALTER TABLE t1 CHANGE c1 c1 INT;
663SHOW CREATE TABLE t1;
664INSERT INTO t1(c2) VALUES('b');
665SELECT * FROM t1;
666SHOW CREATE TABLE t1;
667DROP TABLE t1;
668
669CREATE TABLE t1 (c1 INT AUTO_INCREMENT PRIMARY KEY, c2 INT) ENGINE = MyISAM;
670INSERT INTO t1 (c1) VALUES (NULL), (-290783232), (NULL);
671SHOW CREATE TABLE t1;
672SELECT * FROM t1;
673ALTER TABLE t1 ENGINE = InnoDB;
674SELECT * FROM t1;
675SHOW CREATE TABLE t1;
676--error ER_AUTOINC_READ_FAILED
677REPLACE INTO t1 (c2 ) VALUES (0);
678SELECT * FROM t1;
679DROP TABLE t1;
680
681#DOUBLE
682CREATE TABLE t1 (c1 DOUBLE NOT NULL PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB
683AUTO_INCREMENT=10000000000000000000;
684SHOW CREATE TABLE t1;
685--error 1467
686INSERT INTO t1 VALUES ();
687DROP TABLE t1;
651688
=== added file 'Percona-Server/mysql-test/suite/innodb/t/innodb_bug14704286.test'
--- Percona-Server/mysql-test/suite/innodb/t/innodb_bug14704286.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/suite/innodb/t/innodb_bug14704286.test 2013-01-31 20:19:36 +0000
@@ -0,0 +1,95 @@
1--source include/have_innodb.inc
2
3#
4# create test-bed to run test
5#
6use test;
7--disable_warnings
8drop table if exists t1;
9--enable_warnings
10create table t1 (id int primary key, value int, value2 int,
11value3 int, index(value,value2)) engine=innodb;
12
13insert into t1 values
14(10,10,10,10),(11,11,11,11),(12,12,12,12),(13,13,13,13),(14,14,14,14),
15(15,15,15,15),(16,16,16,16),(17,17,17,17),(18,18,18,18),(19,19,19,19),
16(20,20,20,20);
17let $ID= `SELECT @id := CONNECTION_ID()`;
18
19#
20# we need multiple connections as we need to keep one connection
21# active with trx requesting consistent read.
22#
23connect (conn1, localhost, root,,);
24connect (conn2, localhost, root,,);
25connect (conn3, localhost, root,,);
26
27#
28# start trx with consistent read
29#
30connection conn1;
31use test;
32
33start transaction with consistent snapshot;
34
35#
36# update table such that secondary index is updated.
37#
38connection conn2;
39use test;
40delimiter |;
41CREATE PROCEDURE update_t1()
42BEGIN
43 DECLARE i INT DEFAULT 1;
44 while (i <= 5000) DO
45 update test.t1 set value2=value2+1, value3=value3+1 where id=12;
46 SET i = i + 1;
47 END WHILE;
48END|
49
50delimiter ;|
51set autocommit=0;
52CALL update_t1();
53select * from t1;
54set autocommit=1;
55select * from t1;
56
57#
58# Now try to fire select query from connection-1 enforcing
59# use of secondary index.
60#
61connection conn1;
62let $ID= `SELECT @id := CONNECTION_ID()`;
63#--error ER_QUERY_INTERRUPTED
64--send
65select * from t1 force index(value) where value=12;
66
67#
68# select is going to take good time so let's kill query.
69#
70connection conn3;
71let $wait_condition=
72 select * from information_schema.processlist where state = 'Sending data' and
73 info = 'select * from t1 force index(value) where value=12';
74--source include/wait_condition.inc
75let $ignore= `SELECT @id := $ID`;
76kill query @id;
77
78#
79# reap the value of connection-1
80#
81connection conn1;
82--error ER_QUERY_INTERRUPTED
83reap;
84
85#
86# clean test-bed.
87#
88connection default;
89disconnect conn1;
90disconnect conn2;
91disconnect conn3;
92drop procedure if exists update_t1;
93drop table if exists t1;
94
95
096
=== modified file 'Percona-Server/mysql-test/suite/innodb/t/innodb_corrupt_bit.test'
--- Percona-Server/mysql-test/suite/innodb/t/innodb_corrupt_bit.test 2011-11-22 15:06:19 +0000
+++ Percona-Server/mysql-test/suite/innodb/t/innodb_corrupt_bit.test 2013-01-31 20:19:36 +0000
@@ -79,10 +79,10 @@
79check table corrupt_bit_test_ā;79check table corrupt_bit_test_ā;
8080
81# This selection intend to use the corrupted index. Expect to fail81# This selection intend to use the corrupted index. Expect to fail
82-- error ER_NOT_KEYFILE82-- error ER_INDEX_CORRUPT
83select c from corrupt_bit_test_ā;83select c from corrupt_bit_test_ā;
8484
85-- error ER_NOT_KEYFILE85-- error ER_INDEX_CORRUPT
86select z from corrupt_bit_test_ā;86select z from corrupt_bit_test_ā;
8787
88show warnings;88show warnings;
@@ -108,7 +108,7 @@
108108
109set names utf8;109set names utf8;
110110
111-- error ER_NOT_KEYFILE111-- error ER_INDEX_CORRUPT
112select z from corrupt_bit_test_ā;112select z from corrupt_bit_test_ā;
113113
114# Drop the corrupted index114# Drop the corrupted index
115115
=== modified file 'Percona-Server/mysql-test/suite/innodb/t/innodb_prefix_index_liftedlimit.test'
--- Percona-Server/mysql-test/suite/innodb/t/innodb_prefix_index_liftedlimit.test 2011-10-05 13:14:14 +0000
+++ Percona-Server/mysql-test/suite/innodb/t/innodb_prefix_index_liftedlimit.test 2013-01-31 20:19:36 +0000
@@ -601,6 +601,7 @@
601# Prefix index with utf8 charset + varchar.601# Prefix index with utf8 charset + varchar.
602# For varchar we also log the column itself as oppose of TEXT so it error602# For varchar we also log the column itself as oppose of TEXT so it error
603# with limit 1024 due to overhead.603# with limit 1024 due to overhead.
604--replace_regex /> [0-9]*/> max_row_size/
604-- error 1118605-- error 1118
605CREATE TABLE worklog5743 (col_1_varchar VARCHAR (4000) CHARACTER SET 'utf8',606CREATE TABLE worklog5743 (col_1_varchar VARCHAR (4000) CHARACTER SET 'utf8',
606col_2_varchar VARCHAR (4000) CHARACTER SET 'utf8' ,607col_2_varchar VARCHAR (4000) CHARACTER SET 'utf8' ,
607608
=== modified file 'Percona-Server/mysql-test/suite/perfschema/r/func_file_io.result'
--- Percona-Server/mysql-test/suite/perfschema/r/func_file_io.result 2012-05-23 08:21:35 +0000
+++ Percona-Server/mysql-test/suite/perfschema/r/func_file_io.result 2013-01-31 20:19:36 +0000
@@ -1,6 +1,7 @@
1UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';1UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';
2UPDATE performance_schema.setup_instruments SET enabled = 'YES'2UPDATE performance_schema.setup_instruments SET enabled = 'YES'
3WHERE name LIKE 'wait/io/file/%';3WHERE name LIKE 'wait/io/file/%';
4flush status;
4DROP TABLE IF EXISTS t1;5DROP TABLE IF EXISTS t1;
5CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value')6CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value')
6ENGINE=MyISAM;7ENGINE=MyISAM;
@@ -113,3 +114,19 @@
113GROUP BY h.EVENT_NAME114GROUP BY h.EVENT_NAME
114HAVING TOTAL_WAIT > 0;115HAVING TOTAL_WAIT > 0;
115UPDATE performance_schema.setup_instruments SET enabled = 'YES';116UPDATE performance_schema.setup_instruments SET enabled = 'YES';
117show status like "performance_schema%";
118Variable_name Value
119Performance_schema_cond_classes_lost 0
120Performance_schema_cond_instances_lost 0
121Performance_schema_file_classes_lost 0
122Performance_schema_file_handles_lost 0
123Performance_schema_file_instances_lost 0
124Performance_schema_locker_lost 0
125Performance_schema_mutex_classes_lost 0
126Performance_schema_mutex_instances_lost 0
127Performance_schema_rwlock_classes_lost 0
128Performance_schema_rwlock_instances_lost 0
129Performance_schema_table_handles_lost 0
130Performance_schema_table_instances_lost 0
131Performance_schema_thread_classes_lost 0
132Performance_schema_thread_instances_lost 0
116133
=== modified file 'Percona-Server/mysql-test/suite/perfschema/r/func_mutex.result'
--- Percona-Server/mysql-test/suite/perfschema/r/func_mutex.result 2010-11-12 11:23:17 +0000
+++ Percona-Server/mysql-test/suite/perfschema/r/func_mutex.result 2013-01-31 20:19:36 +0000
@@ -2,6 +2,15 @@
2UPDATE performance_schema.setup_instruments SET enabled = 'YES'2UPDATE performance_schema.setup_instruments SET enabled = 'YES'
3WHERE name LIKE 'wait/synch/mutex/%'3WHERE name LIKE 'wait/synch/mutex/%'
4 OR name LIKE 'wait/synch/rwlock/%';4 OR name LIKE 'wait/synch/rwlock/%';
5flush status;
6select NAME from performance_schema.mutex_instances
7where NAME = 'wait/synch/mutex/sql/LOCK_open';
8NAME
9wait/synch/mutex/sql/LOCK_open
10select NAME from performance_schema.rwlock_instances
11where NAME = 'wait/synch/rwlock/sql/LOCK_grant';
12NAME
13wait/synch/rwlock/sql/LOCK_grant
5DROP TABLE IF EXISTS t1;14DROP TABLE IF EXISTS t1;
6CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value')15CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value')
7ENGINE=MyISAM;16ENGINE=MyISAM;
@@ -112,3 +121,19 @@
112Success121Success
113UPDATE performance_schema.setup_instruments SET enabled = 'YES';122UPDATE performance_schema.setup_instruments SET enabled = 'YES';
114DROP TABLE t1;123DROP TABLE t1;
124show status like "performance_schema%";
125Variable_name Value
126Performance_schema_cond_classes_lost 0
127Performance_schema_cond_instances_lost 0
128Performance_schema_file_classes_lost 0
129Performance_schema_file_handles_lost 0
130Performance_schema_file_instances_lost 0
131Performance_schema_locker_lost 0
132Performance_schema_mutex_classes_lost 0
133Performance_schema_mutex_instances_lost 0
134Performance_schema_rwlock_classes_lost 0
135Performance_schema_rwlock_instances_lost 0
136Performance_schema_table_handles_lost 0
137Performance_schema_table_instances_lost 0
138Performance_schema_thread_classes_lost 0
139Performance_schema_thread_instances_lost 0
115140
=== modified file 'Percona-Server/mysql-test/suite/perfschema/t/func_file_io.test'
--- Percona-Server/mysql-test/suite/perfschema/t/func_file_io.test 2012-05-23 08:21:35 +0000
+++ Percona-Server/mysql-test/suite/perfschema/t/func_file_io.test 2013-01-31 20:19:36 +0000
@@ -12,6 +12,9 @@
12UPDATE performance_schema.setup_instruments SET enabled = 'YES'12UPDATE performance_schema.setup_instruments SET enabled = 'YES'
13WHERE name LIKE 'wait/io/file/%';13WHERE name LIKE 'wait/io/file/%';
1414
15# reset lost counters
16flush status;
17
15--disable_warnings18--disable_warnings
16DROP TABLE IF EXISTS t1;19DROP TABLE IF EXISTS t1;
17--enable_warnings20--enable_warnings
@@ -182,3 +185,7 @@
182185
183# Clean-up.186# Clean-up.
184UPDATE performance_schema.setup_instruments SET enabled = 'YES';187UPDATE performance_schema.setup_instruments SET enabled = 'YES';
188
189# In case of failure, will indicate the root cause
190show status like "performance_schema%";
191
185192
=== modified file 'Percona-Server/mysql-test/suite/perfschema/t/func_mutex.test'
--- Percona-Server/mysql-test/suite/perfschema/t/func_mutex.test 2011-10-19 21:44:17 +0000
+++ Percona-Server/mysql-test/suite/perfschema/t/func_mutex.test 2013-01-31 20:19:36 +0000
@@ -13,6 +13,15 @@
13WHERE name LIKE 'wait/synch/mutex/%'13WHERE name LIKE 'wait/synch/mutex/%'
14 OR name LIKE 'wait/synch/rwlock/%';14 OR name LIKE 'wait/synch/rwlock/%';
1515
16# reset lost counters
17flush status;
18
19# Make sure objects are instrumented
20select NAME from performance_schema.mutex_instances
21 where NAME = 'wait/synch/mutex/sql/LOCK_open';
22select NAME from performance_schema.rwlock_instances
23 where NAME = 'wait/synch/rwlock/sql/LOCK_grant';
24
16--disable_warnings25--disable_warnings
17DROP TABLE IF EXISTS t1;26DROP TABLE IF EXISTS t1;
18--enable_warnings27--enable_warnings
@@ -116,3 +125,7 @@
116# Clean-up.125# Clean-up.
117UPDATE performance_schema.setup_instruments SET enabled = 'YES';126UPDATE performance_schema.setup_instruments SET enabled = 'YES';
118DROP TABLE t1;127DROP TABLE t1;
128
129# In case of failure, will indicate the root cause
130show status like "performance_schema%";
131
119132
=== modified file 'Percona-Server/mysql-test/suite/rpl/r/rpl_semi_sync.result'
--- Percona-Server/mysql-test/suite/rpl/r/rpl_semi_sync.result 2010-12-19 17:15:12 +0000
+++ Percona-Server/mysql-test/suite/rpl/r/rpl_semi_sync.result 2013-01-31 20:19:36 +0000
@@ -93,7 +93,7 @@
93Rpl_semi_sync_master_no_tx 093Rpl_semi_sync_master_no_tx 0
94show status like 'Rpl_semi_sync_master_yes_tx';94show status like 'Rpl_semi_sync_master_yes_tx';
95Variable_name Value95Variable_name Value
96Rpl_semi_sync_master_yes_tx 30196Rpl_semi_sync_master_yes_tx 11
97[ on slave ]97[ on slave ]
98[ slave status after replicated inserts ]98[ slave status after replicated inserts ]
99show status like 'Rpl_semi_sync_slave_status';99show status like 'Rpl_semi_sync_slave_status';
@@ -101,13 +101,13 @@
101Rpl_semi_sync_slave_status ON101Rpl_semi_sync_slave_status ON
102select count(distinct a) from t1;102select count(distinct a) from t1;
103count(distinct a)103count(distinct a)
10430010410
105select min(a) from t1;105select min(a) from t1;
106min(a)106min(a)
10711071
108select max(a) from t1;108select max(a) from t1;
109max(a)109max(a)
11030011010
111111
112# BUG#50157112# BUG#50157
113# semi-sync replication crashes when replicating a transaction which113# semi-sync replication crashes when replicating a transaction which
@@ -133,6 +133,7 @@
133#133#
134include/stop_slave.inc134include/stop_slave.inc
135[ on master ]135[ on master ]
136set global rpl_semi_sync_master_timeout= 5000;
136[ master status should be ON ]137[ master status should be ON ]
137show status like 'Rpl_semi_sync_master_status';138show status like 'Rpl_semi_sync_master_status';
138Variable_name Value139Variable_name Value
@@ -142,7 +143,7 @@
142Rpl_semi_sync_master_no_tx 0143Rpl_semi_sync_master_no_tx 0
143show status like 'Rpl_semi_sync_master_yes_tx';144show status like 'Rpl_semi_sync_master_yes_tx';
144Variable_name Value145Variable_name Value
145Rpl_semi_sync_master_yes_tx 304146Rpl_semi_sync_master_yes_tx 14
146show status like 'Rpl_semi_sync_master_clients';147show status like 'Rpl_semi_sync_master_clients';
147Variable_name Value148Variable_name Value
148Rpl_semi_sync_master_clients 1149Rpl_semi_sync_master_clients 1
@@ -157,7 +158,7 @@
157Rpl_semi_sync_master_no_tx 1158Rpl_semi_sync_master_no_tx 1
158show status like 'Rpl_semi_sync_master_yes_tx';159show status like 'Rpl_semi_sync_master_yes_tx';
159Variable_name Value160Variable_name Value
160Rpl_semi_sync_master_yes_tx 304161Rpl_semi_sync_master_yes_tx 14
161insert into t1 values (100);162insert into t1 values (100);
162[ master status should be OFF ]163[ master status should be OFF ]
163show status like 'Rpl_semi_sync_master_status';164show status like 'Rpl_semi_sync_master_status';
@@ -165,10 +166,10 @@
165Rpl_semi_sync_master_status OFF166Rpl_semi_sync_master_status OFF
166show status like 'Rpl_semi_sync_master_no_tx';167show status like 'Rpl_semi_sync_master_no_tx';
167Variable_name Value168Variable_name Value
168Rpl_semi_sync_master_no_tx 302169Rpl_semi_sync_master_no_tx 12
169show status like 'Rpl_semi_sync_master_yes_tx';170show status like 'Rpl_semi_sync_master_yes_tx';
170Variable_name Value171Variable_name Value
171Rpl_semi_sync_master_yes_tx 304172Rpl_semi_sync_master_yes_tx 14
172#173#
173# Test semi-sync status on master will be ON again when slave catches up174# Test semi-sync status on master will be ON again when slave catches up
174#175#
@@ -198,10 +199,10 @@
198Rpl_semi_sync_master_status ON199Rpl_semi_sync_master_status ON
199show status like 'Rpl_semi_sync_master_no_tx';200show status like 'Rpl_semi_sync_master_no_tx';
200Variable_name Value201Variable_name Value
201Rpl_semi_sync_master_no_tx 302202Rpl_semi_sync_master_no_tx 12
202show status like 'Rpl_semi_sync_master_yes_tx';203show status like 'Rpl_semi_sync_master_yes_tx';
203Variable_name Value204Variable_name Value
204Rpl_semi_sync_master_yes_tx 304205Rpl_semi_sync_master_yes_tx 14
205show status like 'Rpl_semi_sync_master_clients';206show status like 'Rpl_semi_sync_master_clients';
206Variable_name Value207Variable_name Value
207Rpl_semi_sync_master_clients 1208Rpl_semi_sync_master_clients 1
@@ -217,10 +218,10 @@
217[ Semi-sync master status variables before FLUSH STATUS ]218[ Semi-sync master status variables before FLUSH STATUS ]
218SHOW STATUS LIKE 'Rpl_semi_sync_master_no_tx';219SHOW STATUS LIKE 'Rpl_semi_sync_master_no_tx';
219Variable_name Value220Variable_name Value
220Rpl_semi_sync_master_no_tx 302221Rpl_semi_sync_master_no_tx 12
221SHOW STATUS LIKE 'Rpl_semi_sync_master_yes_tx';222SHOW STATUS LIKE 'Rpl_semi_sync_master_yes_tx';
222Variable_name Value223Variable_name Value
223Rpl_semi_sync_master_yes_tx 305224Rpl_semi_sync_master_yes_tx 15
224FLUSH NO_WRITE_TO_BINLOG STATUS;225FLUSH NO_WRITE_TO_BINLOG STATUS;
225[ Semi-sync master status variables after FLUSH STATUS ]226[ Semi-sync master status variables after FLUSH STATUS ]
226SHOW STATUS LIKE 'Rpl_semi_sync_master_no_tx';227SHOW STATUS LIKE 'Rpl_semi_sync_master_no_tx';
227228
=== modified file 'Percona-Server/mysql-test/suite/rpl/t/rpl_semi_sync.test'
--- Percona-Server/mysql-test/suite/rpl/t/rpl_semi_sync.test 2011-03-16 16:38:30 +0000
+++ Percona-Server/mysql-test/suite/rpl/t/rpl_semi_sync.test 2013-01-31 20:19:36 +0000
@@ -63,7 +63,7 @@
63{63{
64 set sql_log_bin=0;64 set sql_log_bin=0;
65 eval INSTALL PLUGIN rpl_semi_sync_master SONAME '$SEMISYNC_MASTER_PLUGIN';65 eval INSTALL PLUGIN rpl_semi_sync_master SONAME '$SEMISYNC_MASTER_PLUGIN';
66 set global rpl_semi_sync_master_timeout= 5000; /* 5s */66 set global rpl_semi_sync_master_timeout= 60000; /* 60s */
67 set sql_log_bin=1;67 set sql_log_bin=1;
68}68}
69enable_query_log;69enable_query_log;
@@ -170,7 +170,7 @@
170replace_result $_connections_normal_slave CONNECTIONS_NORMAL_SLAVE;170replace_result $_connections_normal_slave CONNECTIONS_NORMAL_SLAVE;
171eval select $_connections_semisync_slave - $_connections_normal_slave as 'Should be 0';171eval select $_connections_semisync_slave - $_connections_normal_slave as 'Should be 0';
172172
173let $i=300;173let $i=10;
174echo [ insert records to table ];174echo [ insert records to table ];
175disable_query_log;175disable_query_log;
176while ($i)176while ($i)
@@ -234,6 +234,7 @@
234234
235connection master;235connection master;
236echo [ on master ];236echo [ on master ];
237set global rpl_semi_sync_master_timeout= 5000;
237238
238# The first semi-sync check should be on because after slave stop,239# The first semi-sync check should be on because after slave stop,
239# there are no transactions on the master.240# there are no transactions on the master.
@@ -260,7 +261,7 @@
260261
261# Semi-sync status on master is now OFF, so all these transactions262# Semi-sync status on master is now OFF, so all these transactions
262# will be replicated asynchronously.263# will be replicated asynchronously.
263let $i=300;264let $i=10;
264disable_query_log;265disable_query_log;
265while ($i)266while ($i)
266{267{
267268
=== modified file 'Percona-Server/mysql-test/suite/sys_vars/r/innodb_change_buffering_debug_basic.result'
--- Percona-Server/mysql-test/suite/sys_vars/r/innodb_change_buffering_debug_basic.result 2012-01-16 14:39:05 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/r/innodb_change_buffering_debug_basic.result 2013-01-31 20:19:36 +0000
@@ -55,9 +55,6 @@
55Warning 1292 Truncated incorrect innodb_change_buffering_debug value: '-2'55Warning 1292 Truncated incorrect innodb_change_buffering_debug value: '-2'
56set global innodb_change_buffering_debug=1e1;56set global innodb_change_buffering_debug=1e1;
57ERROR 42000: Incorrect argument type to variable 'innodb_change_buffering_debug'57ERROR 42000: Incorrect argument type to variable 'innodb_change_buffering_debug'
58set global innodb_change_buffering_debug=2;
59Warnings:
60Warning 1292 Truncated incorrect innodb_change_buffering_debug value: '2'
61SET @@global.innodb_change_buffering_debug = @start_global_value;58SET @@global.innodb_change_buffering_debug = @start_global_value;
62SELECT @@global.innodb_change_buffering_debug;59SELECT @@global.innodb_change_buffering_debug;
63@@global.innodb_change_buffering_debug60@@global.innodb_change_buffering_debug
6461
=== modified file 'Percona-Server/mysql-test/suite/sys_vars/t/innodb_change_buffering_debug_basic.test'
--- Percona-Server/mysql-test/suite/sys_vars/t/innodb_change_buffering_debug_basic.test 2012-01-16 14:39:05 +0000
+++ Percona-Server/mysql-test/suite/sys_vars/t/innodb_change_buffering_debug_basic.test 2013-01-31 20:19:36 +0000
@@ -42,7 +42,9 @@
42set global innodb_change_buffering_debug=-2;42set global innodb_change_buffering_debug=-2;
43--error ER_WRONG_TYPE_FOR_VAR43--error ER_WRONG_TYPE_FOR_VAR
44set global innodb_change_buffering_debug=1e1;44set global innodb_change_buffering_debug=1e1;
45set global innodb_change_buffering_debug=2;45# The value 2 is supposed to kill the server if there are unmerged changes.
46# Do not try to set the value to 2 or anything that can be clamped to 2.
47#set global innodb_change_buffering_debug=2;
4648
47#49#
48# Cleanup50# Cleanup
4951
=== modified file 'Percona-Server/mysql-test/t/ctype_ucs.test'
--- Percona-Server/mysql-test/t/ctype_ucs.test 2012-03-20 05:16:51 +0000
+++ Percona-Server/mysql-test/t/ctype_ucs.test 2013-01-31 20:19:36 +0000
@@ -68,6 +68,38 @@
68SHOW CREATE TABLE t1;68SHOW CREATE TABLE t1;
69DROP TABLE t1;69DROP TABLE t1;
7070
71--echo #
72--echo # Bug #51876 : crash/memory underrun when loading data with ucs2
73--echo # and reverse() function
74--echo #
75
76--echo # Problem # 1 (original report): wrong parsing of ucs2 data
77SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp.txt';
78CREATE TABLE t1(a INT);
79LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2
80(@b) SET a=REVERSE(@b);
81--echo # should return 2 zeroes (as the value is truncated)
82SELECT * FROM t1;
83
84DROP TABLE t1;
85let $MYSQLD_DATADIR= `select @@datadir`;
86remove_file $MYSQLD_DATADIR/test/tmpp.txt;
87
88
89--echo # Problem # 2 : if you write and read ucs2 data to a file they're lost
90SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp2.txt' CHARACTER SET ucs2;
91CREATE TABLE t1(a INT);
92LOAD DATA INFILE 'tmpp2.txt' INTO TABLE t1 CHARACTER SET ucs2
93(@b) SET a=REVERSE(@b);
94--echo # should return 0 and 1 (10 reversed)
95SELECT * FROM t1;
96
97DROP TABLE t1;
98let $MYSQLD_DATADIR= `select @@datadir`;
99remove_file $MYSQLD_DATADIR/test/tmpp2.txt;
100
101
102
71#103#
72# BUG3946104# BUG3946
73#105#
74106
=== modified file 'Percona-Server/mysql-test/t/loaddata.test'
--- Percona-Server/mysql-test/t/loaddata.test 2012-05-10 07:49:14 +0000
+++ Percona-Server/mysql-test/t/loaddata.test 2013-01-31 20:19:36 +0000
@@ -570,36 +570,40 @@
570connection default;570connection default;
571disconnect con1;571disconnect con1;
572572
573573#############################################################################
574--echo #574# The below protion is moved to ctype_ucs.test #
575--echo # Bug #51876 : crash/memory underrun when loading data with ucs2 575#############################################################################
576--echo # and reverse() function576#--echo #
577--echo #577#--echo # Bug #51876 : crash/memory underrun when loading data with ucs2
578578#--echo # and reverse() function
579--echo # Problem # 1 (original report): wrong parsing of ucs2 data579#--echo #
580SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp.txt';580
581CREATE TABLE t1(a INT);581#--echo # Problem # 1 (original report): wrong parsing of ucs2 data
582LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2582#SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp.txt';
583(@b) SET a=REVERSE(@b);583#CREATE TABLE t1(a INT);
584--echo # should return 2 zeroes (as the value is truncated)584#LOAD DATA INFILE 'tmpp.txt' INTO TABLE t1 CHARACTER SET ucs2
585SELECT * FROM t1;585#(@b) SET a=REVERSE(@b);
586586#--echo # should return 2 zeroes (as the value is truncated)
587DROP TABLE t1;587#SELECT * FROM t1;
588let $MYSQLD_DATADIR= `select @@datadir`;588
589remove_file $MYSQLD_DATADIR/test/tmpp.txt;589#DROP TABLE t1;
590590#let $MYSQLD_DATADIR= `select @@datadir`;
591591#remove_file $MYSQLD_DATADIR/test/tmpp.txt;
592--echo # Problem # 2 : if you write and read ucs2 data to a file they're lost592
593SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp2.txt' CHARACTER SET ucs2;593
594CREATE TABLE t1(a INT);594#--echo # Problem # 2 : if you write and read ucs2 data to a file they're lost
595LOAD DATA INFILE 'tmpp2.txt' INTO TABLE t1 CHARACTER SET ucs2595#SELECT '00' UNION SELECT '10' INTO OUTFILE 'tmpp2.txt' CHARACTER SET ucs2;
596(@b) SET a=REVERSE(@b);596#CREATE TABLE t1(a INT);
597--echo # should return 0 and 1 (10 reversed)597#LOAD DATA INFILE 'tmpp2.txt' INTO TABLE t1 CHARACTER SET ucs2
598SELECT * FROM t1;598#(@b) SET a=REVERSE(@b);
599599#--echo # should return 0 and 1 (10 reversed)
600DROP TABLE t1;600#SELECT * FROM t1;
601let $MYSQLD_DATADIR= `select @@datadir`;601
602remove_file $MYSQLD_DATADIR/test/tmpp2.txt;602#DROP TABLE t1;
603#let $MYSQLD_DATADIR= `select @@datadir`;
604#remove_file $MYSQLD_DATADIR/test/tmpp2.txt;
605######################################################################################
606
603607
604--echo #608--echo #
605--echo # Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS AND WRITES WITH U609--echo # Bug#11765139 58069: LOAD DATA INFILE: VALGRIND REPORTS INVALID MEMORY READS AND WRITES WITH U
606610
=== added file 'Percona-Server/mysql-test/t/percona_bug1017192.test'
--- Percona-Server/mysql-test/t/percona_bug1017192.test 1970-01-01 00:00:00 +0000
+++ Percona-Server/mysql-test/t/percona_bug1017192.test 2013-01-31 20:19:36 +0000
@@ -0,0 +1,40 @@
1########################################################################
2# Bug 1017192: Server crashes in add_identifier on concurrent
3# ALTER TABLE and SHOW ENGINE INNODB STATUS
4# We run concurrent ALTER TABLE PARTITION and execute
5# SHOW ENGINE INNODB STATUS exactly at the moment when
6# temporary tables already created and locked.
7########################################################################
8
9--source include/have_partition.inc
10--source include/have_innodb.inc
11--source include/have_debug_sync.inc
12
13SET DEBUG_SYNC='reset';
14
15CREATE TABLE IF NOT EXISTS t1 (`a` INT) ENGINE=InnoDB;
16INSERT INTO t1 VALUES (1),(2),(3),(4);
17
18--connect (con1,localhost,root,,)
19
20--connection default
21SET DEBUG_SYNC='after_copy_data_between_tables SIGNAL run_show_innodb_status
22 WAIT_FOR show_innodb_status_done';
23--send ALTER TABLE t1 PARTITION BY HASH (`a`) PARTITIONS 4
24--connection con1
25SET DEBUG_SYNC='now WAIT_FOR run_show_innodb_status';
26# We catch the moment when SHOW ENGINE INNODB STATUS should produce lines like:
27# TABLE LOCK table `test`.`#sql-14021_2#P#p1` /* Partition `p1` */ trx id 506 lock mode IX
28# TABLE LOCK table `test`.`#sql-14021_2#P#p2` /* Partition `p2` */ trx id 506 lock mode IX
29# TABLE LOCK table `test`.`#sql-14021_2#P#p3` /* Partition `p3` */ trx id 506 lock mode IX
30# TABLE LOCK table `test`.`#sql-14021_2#P#p0` /* Partition `p0` */ trx id 506 lock mode IX
31# This cause segmentation fault because of incorrect handling of table names
32# which look like `#sql-14021_2#P#p0`
33--disable_result_log
34SHOW ENGINE INNODB STATUS;
35--enable_result_log
36SET DEBUG_SYNC='now SIGNAL show_innodb_status_done';
37--connection default
38--reap
39
40DROP TABLE t1;
041
=== modified file 'Percona-Server/mysql-test/t/plugin_auth.test'
--- Percona-Server/mysql-test/t/plugin_auth.test 2012-07-05 06:55:20 +0000
+++ Percona-Server/mysql-test/t/plugin_auth.test 2013-01-31 20:19:36 +0000
@@ -179,21 +179,35 @@
179--error ER_ACCESS_DENIED_NO_PASSWORD_ERROR179--error ER_ACCESS_DENIED_NO_PASSWORD_ERROR
180GRANT PROXY ON grant_plug TO grant_plug_dest;180GRANT PROXY ON grant_plug TO grant_plug_dest;
181181
182--echo this should fail : same user, but on a different host182# Security context in THD contains two pairs of (user,host)
183--error ER_ACCESS_DENIED_NO_PASSWORD_ERROR183# 1. (user,host) pair referring to inbound connection
184# 2. (priv_user,priv_host) pair obtained from mysql.user table after doing
185# authnetication of incoming connection.
186# Granting/revoking proxy privileges, privileges should be checked wrt
187# (priv_user, priv_host) tuple that is obtained from mysql.user table
188# Following is a valid grant because effective user of connection is
189# grant_plug_dest@% and statement is trying to grant proxy on the same
190# user.
191--echo This is a valid grant
184GRANT PROXY ON grant_plug_dest TO grant_plug;192GRANT PROXY ON grant_plug_dest TO grant_plug;
185193REVOKE PROXY ON grant_plug_dest FROM grant_plug;
186--echo this should work : same user194
187GRANT PROXY ON grant_plug_dest@localhost TO grant_plug_dest2;195--echo this should work : same user
188REVOKE PROXY ON grant_plug_dest@localhost FROM grant_plug_dest2;196GRANT PROXY ON grant_plug_dest TO grant_plug_dest2;
189197REVOKE PROXY ON grant_plug_dest FROM grant_plug_dest2;
190--echo this should work : same user198
199# grant_plug_dest@localhost is not the same as grant_plug_dest@%
200# so following grant/revoke should fail
201--echo this should fail : not the same user
202--error ER_ACCESS_DENIED_NO_PASSWORD_ERROR
191GRANT PROXY ON grant_plug_dest@localhost TO grant_plug WITH GRANT OPTION;203GRANT PROXY ON grant_plug_dest@localhost TO grant_plug WITH GRANT OPTION;
204--echo this should fail : not the same user
205--error ER_ACCESS_DENIED_NO_PASSWORD_ERROR
192REVOKE PROXY ON grant_plug_dest@localhost FROM grant_plug;206REVOKE PROXY ON grant_plug_dest@localhost FROM grant_plug;
193207
194--echo this should fail : can't create users208--echo this should fail : can't create users
195--error ER_CANT_CREATE_USER_WITH_GRANT209--error ER_CANT_CREATE_USER_WITH_GRANT
196GRANT PROXY ON grant_plug_dest@localhost TO grant_plug@localhost;210GRANT PROXY ON grant_plug_dest TO grant_plug@localhost;
197211
198connection default;212connection default;
199--echo in default connection213--echo in default connection
200214
=== modified file 'Percona-Server/mysql-test/t/show_check.test'
--- Percona-Server/mysql-test/t/show_check.test 2012-04-18 23:26:11 +0000
+++ Percona-Server/mysql-test/t/show_check.test 2013-01-31 20:19:36 +0000
@@ -1371,3 +1371,17 @@
1371--connection default1371--connection default
1372SET NAMES latin1;1372SET NAMES latin1;
13731373
1374
1375--echo #
1376--echo # WL#6454: Deprecate SHOW AUTHORS and SHOW CONTRIBUTORS
1377--echo #
1378
1379--disable_result_log
1380SHOW AUTHORS;
1381--enable_result_log
1382SHOW WARNINGS;
1383
1384--disable_result_log
1385SHOW CONTRIBUTORS;
1386--enable_result_log
1387SHOW WARNINGS;
13741388
=== modified file 'Percona-Server/mysql-test/t/sp_notembedded.test'
--- Percona-Server/mysql-test/t/sp_notembedded.test 2012-03-28 08:05:08 +0000
+++ Percona-Server/mysql-test/t/sp_notembedded.test 2013-01-31 20:19:36 +0000
@@ -475,14 +475,6 @@
475DROP DATABASE `my.db`;475DROP DATABASE `my.db`;
476USE test;476USE test;
477477
478#
479# Restore global concurrent_insert value. Keep in the end of the test file.
480#
481
482set @@global.concurrent_insert= @old_concurrent_insert;
483
484# Wait till all disconnects are completed
485--source include/wait_until_count_sessions.inc
486478
487--echo #479--echo #
488--echo # Bug#11763507 - 56224: FUNCTION NAME IS CASE-SENSITIVE480--echo # Bug#11763507 - 56224: FUNCTION NAME IS CASE-SENSITIVE
@@ -507,3 +499,13 @@
507499
508DROP EVENT teste_bug11763507;500DROP EVENT teste_bug11763507;
509--echo #END OF BUG#11763507 test.501--echo #END OF BUG#11763507 test.
502
503
504#
505# Restore global concurrent_insert value. Keep in the end of the test file.
506#
507
508set @@global.concurrent_insert= @old_concurrent_insert;
509
510# Wait till all disconnects are completed
511--source include/wait_until_count_sessions.inc
510512
=== added directory 'Percona-Server/packaging/rpm-uln'
=== added file 'Percona-Server/packaging/rpm-uln/CMakeLists.txt'
--- Percona-Server/packaging/rpm-uln/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/CMakeLists.txt 2013-01-31 20:19:36 +0000
@@ -0,0 +1,38 @@
1# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
2#
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation; version 2 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11#
12# You should have received a copy of the GNU General Public License
13# along with this program; if not, write to the Free Software
14# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15
16
17IF(UNIX)
18 SET(prefix ${CMAKE_INSTALL_PREFIX})
19
20 SET(SPECFILENAME "mysql.${VERSION}.spec")
21 IF("${VERSION}" MATCHES "-ndb-")
22 STRING(REGEX REPLACE "^.*-ndb-" "" NDBVERSION "${VERSION}")
23 SET(SPECFILENAME "mysql-cluster-${NDBVERSION}.spec")
24 ENDIF()
25
26 # Left in current directory, to be taken during build
27 CONFIGURE_FILE(mysql.spec.sh ${CMAKE_CURRENT_BINARY_DIR}/${SPECFILENAME} @ONLY)
28
29 FOREACH(ulnfile filter-requires-mysql.sh generate-tarball.sh my.cnf my_config.h
30 mysql-5.5-errno.patch mysql-5.5-fix-tests.patch mysql-5.5-libdir.patch
31 mysql-5.5-mtr1.patch mysql-5.5-stack-guard.patch mysql-5.5-testing.patch
32 mysql-chain-certs.patch mysql-embedded-check.c mysql-expired-certs.patch
33 mysql.init mysql-install-test.patch mysql-strmov.patch scriptstub.c
34 README.mysql-docs)
35 CONFIGURE_FILE(${ulnfile} ${CMAKE_CURRENT_BINARY_DIR}/${ulnfile} COPYONLY)
36 ENDFOREACH()
37ENDIF()
38
039
=== added file 'Percona-Server/packaging/rpm-uln/README-ULN'
--- Percona-Server/packaging/rpm-uln/README-ULN 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/README-ULN 2013-01-31 20:19:36 +0000
@@ -0,0 +1,15 @@
1In order to have RPMs of MySQL which are distributed via ULN for Oracle Linux
2to be as closely compatible to such RPMs built and distributed by RedHat,
3this directory contains additional files which originated at RedHat
4and are used only for such RPMs intended for distribution via ULN.
5
6Especially, this directory contains the spec file used to build these RPMs,
7named "mysql.spec". Please regard the following note:
8
9 You are receiving a copy of the Red Hat spec file.
10 The terms of the Oracle license do NOT apply to the Red Hat spec file;
11 it is licensed under the
12 GNU GENERAL PUBLIC LICENSE Version 2, June 1991
13 separately from the Oracle programs you receive.
14
15
016
=== added file 'Percona-Server/packaging/rpm-uln/README.mysql-docs'
--- Percona-Server/packaging/rpm-uln/README.mysql-docs 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/README.mysql-docs 2013-01-31 20:19:36 +0000
@@ -0,0 +1,4 @@
1The official MySQL documentation is not freely redistributable, so we cannot
2include it in RHEL or Fedora. You can find it on-line at
3
4http://dev.mysql.com/doc/
05
=== added file 'Percona-Server/packaging/rpm-uln/filter-requires-mysql.sh'
--- Percona-Server/packaging/rpm-uln/filter-requires-mysql.sh 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/filter-requires-mysql.sh 2013-01-31 20:19:36 +0000
@@ -0,0 +1,3 @@
1#!/bin/sh
2
3/usr/lib/rpm/perl.req $* | grep -v -e "perl(th" -e "perl(lib::mtr" -e "perl(mtr"
04
=== added file 'Percona-Server/packaging/rpm-uln/generate-tarball.sh'
--- Percona-Server/packaging/rpm-uln/generate-tarball.sh 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/generate-tarball.sh 2013-01-31 20:19:36 +0000
@@ -0,0 +1,15 @@
1#!/bin/sh
2
3VERSION=$1
4
5rm -rf mysql-$VERSION
6
7tar xfz mysql-$VERSION.tar.gz || exit 1
8
9rm mysql-$VERSION/Docs/mysql.info
10
11tar cfz mysql-$VERSION-nodocs.tar.gz mysql-$VERSION || exit 1
12
13rm -rf mysql-$VERSION
14
15exit 0
016
=== added file 'Percona-Server/packaging/rpm-uln/my.cnf'
--- Percona-Server/packaging/rpm-uln/my.cnf 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/my.cnf 2013-01-31 20:19:36 +0000
@@ -0,0 +1,10 @@
1[mysqld]
2datadir=/var/lib/mysql
3socket=/var/lib/mysql/mysql.sock
4user=mysql
5# Disabling symbolic-links is recommended to prevent assorted security risks
6symbolic-links=0
7
8[mysqld_safe]
9log-error=/var/log/mysqld.log
10pid-file=/var/run/mysqld/mysqld.pid
011
=== added file 'Percona-Server/packaging/rpm-uln/my_config.h'
--- Percona-Server/packaging/rpm-uln/my_config.h 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/my_config.h 2013-01-31 20:19:36 +0000
@@ -0,0 +1,29 @@
1/*
2 * Kluge to support multilib installation of both 32- and 64-bit RPMS:
3 * we need to arrange that header files that appear in both RPMs are
4 * identical. Hence, this file is architecture-independent and calls
5 * in an arch-dependent file that will appear in just one RPM.
6 *
7 * To avoid breaking arches not explicitly supported by Red Hat, we
8 * use this indirection file *only* on known multilib arches.
9 *
10 * Note: this may well fail if user tries to use gcc's -I- option.
11 * But that option is deprecated anyway.
12 */
13#if defined(__x86_64__)
14#include "my_config_x86_64.h"
15#elif defined(__i386__)
16#include "my_config_i386.h"
17#elif defined(__ppc64__) || defined(__powerpc64__)
18#include "my_config_ppc64.h"
19#elif defined(__ppc__) || defined(__powerpc__)
20#include "my_config_ppc.h"
21#elif defined(__s390x__)
22#include "my_config_s390x.h"
23#elif defined(__s390__)
24#include "my_config_s390.h"
25#elif defined(__sparc__) && defined(__arch64__)
26#include "my_config_sparc64.h"
27#elif defined(__sparc__)
28#include "my_config_sparc.h"
29#endif
030
=== added file 'Percona-Server/packaging/rpm-uln/mysql-5.5-errno.patch'
--- Percona-Server/packaging/rpm-uln/mysql-5.5-errno.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-5.5-errno.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,21 @@
1"extern int errno" is just a really bad idea.
2
3
4diff -Naur mysql-5.1.32.orig/include/my_sys.h mysql-5.1.32/include/my_sys.h
5--- mysql-5.1.32.orig/include/my_sys.h 2009-02-13 19:52:19.000000000 -0500
6+++ mysql-5.1.32/include/my_sys.h 2009-03-04 18:08:40.000000000 -0500
7@@ -199,13 +199,8 @@
8 #define my_afree(PTR) my_free(PTR)
9 #endif /* HAVE_ALLOCA */
10
11-#ifndef errno /* did we already get it? */
12-#ifdef HAVE_ERRNO_AS_DEFINE
13 #include <errno.h> /* errno is a define */
14-#else
15-extern int errno; /* declare errno */
16-#endif
17-#endif /* #ifndef errno */
18+
19 extern char *home_dir; /* Home directory for user */
20 extern const char *my_progname; /* program-name (printed in errors) */
21 extern char curr_dir[]; /* Current directory for user */
022
=== added file 'Percona-Server/packaging/rpm-uln/mysql-5.5-fix-tests.patch'
--- Percona-Server/packaging/rpm-uln/mysql-5.5-fix-tests.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-5.5-fix-tests.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,34 @@
1Adapt tests (where needed) to RedHat conventions.
2
31) The RedHat convention uses the package name "mysql*" whereas upstream uses "MySQL*".
4 Test "file_contents" constructs path names and needs to be adapted.
5
6=== modified file 'mysql-test/t/file_contents.test'
7--- mysql-5.5.17-orig/mysql-test/t/file_contents.test 2011-10-10 12:03:29 +0000
8+++ mysql-5.5.17/mysql-test/t/file_contents.test 2011-11-16 18:07:55 +0000
9@@ -17,20 +17,20 @@ if ($dir_bin =~ m|/usr/|) {
10 $dir_docs =~ s|/lib|/share/doc|;
11 if(-d "$dir_docs/packages") {
12 # SuSE: "packages/" in the documentation path
13- $dir_docs = glob "$dir_docs/packages/MySQL-server*";
14+ $dir_docs = glob "$dir_docs/packages/mysql-server*";
15 } else {
16 # RedHat: version number in directory name
17- $dir_docs = glob "$dir_docs/MySQL-server*";
18+ $dir_docs = glob "$dir_docs/mysql-server*";
19 }
20 } elsif ($dir_bin =~ m|/usr$|) {
21 # RPM build during development
22 $dir_docs = "$dir_bin/share/doc";
23 if(-d "$dir_docs/packages") {
24 # SuSE: "packages/" in the documentation path
25- $dir_docs = glob "$dir_docs/packages/MySQL-server*";
26+ $dir_docs = glob "$dir_docs/packages/mysql-server*";
27 } else {
28 # RedHat: version number in directory name
29- $dir_docs = glob "$dir_docs/MySQL-server*";
30+ $dir_docs = glob "$dir_docs/mysql-server*";
31 }
32 } else {
33 # tar.gz package, Windows, or developer work (in BZR)
34
035
=== added file 'Percona-Server/packaging/rpm-uln/mysql-5.5-libdir.patch'
--- Percona-Server/packaging/rpm-uln/mysql-5.5-libdir.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-5.5-libdir.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,28 @@
1The RPMs built by MySQL AB (-> Sun -> Oracle) put the libraries into "/usr/lib".
2Those built by RedHat put them into "/usr/lib/mysql".
3This patch is to modify the cmake files to follow the RedHat convention.
4Similar, the server is now in "/usr/libexec" (formerly "/usr/sbin").
5
6
7diff -Naur mysql-5.5.17.orig/cmake/install_layout.cmake mysql-5.5.17/cmake/install_layout.cmake
8--- mysql-5.5.17.orig/cmake/install_layout.cmake 2011-06-30 15:46:53 +0000
9+++ mysql-5.5.17/cmake/install_layout.cmake 2011-10-27 16:40:10 +0000
10@@ -140,14 +140,14 @@ SET(INSTALL_SBINDIR_RPM
11 # be applied at build time via "rpmbuild".
12 #
13 SET(INSTALL_BINDIR_RPM "bin")
14-SET(INSTALL_SBINDIR_RPM "sbin")
15+SET(INSTALL_SBINDIR_RPM "libexec")
16 SET(INSTALL_SCRIPTDIR_RPM "bin")
17 #
18 IF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
19- SET(INSTALL_LIBDIR_RPM "lib64")
20+ SET(INSTALL_LIBDIR_RPM "lib64/mysql")
21 SET(INSTALL_PLUGINDIR_RPM "lib64/mysql/plugin")
22 ELSE()
23- SET(INSTALL_LIBDIR_RPM "lib")
24+ SET(INSTALL_LIBDIR_RPM "lib/mysql")
25 SET(INSTALL_PLUGINDIR_RPM "lib/mysql/plugin")
26 ENDIF()
27 #
28
029
=== added file 'Percona-Server/packaging/rpm-uln/mysql-5.5-mtr1.patch'
--- Percona-Server/packaging/rpm-uln/mysql-5.5-mtr1.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-5.5-mtr1.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,25 @@
1Drop support for version 1 of "mysql-test-run.pl" from the RPMs:
2
31) The auto-generation of Perl dependencies will mishandle that code,
4 probably because its run directory differs from its storage location.
52) It does not provide several variables which are used in tests of MySQL 5.5
6
7If you really need it, take it from the source tarball.
8
9=== modified file 'mysql-test/mysql-test-run.pl'
10--- mysql-5.5.17-orig/mysql-test/mysql-test-run.pl 2011-10-03 11:16:40 +0000
11+++ mysql-5.5.17/mysql-test/mysql-test-run.pl 2011-11-16 19:06:38 +0000
12@@ -58,10 +58,9 @@ BEGIN {
13 if ( $version == 1 )
14 {
15 print "=======================================================\n";
16- print " WARNING: Using mysql-test-run.pl version 1! \n";
17+ print " ERROR: Support for version 1 is dropped in this distribution! \n";
18 print "=======================================================\n";
19- # Should use exec() here on *nix but this appears not to work on Windows
20- exit(system($^X, "lib/v1/mysql-test-run.pl", @ARGV) >> 8);
21+ exit(1);
22 }
23 elsif ( $version == 2 )
24 {
25
026
=== added file 'Percona-Server/packaging/rpm-uln/mysql-5.5-stack-guard.patch'
--- Percona-Server/packaging/rpm-uln/mysql-5.5-stack-guard.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-5.5-stack-guard.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,140 @@
1mysql is not accounting for the "guard page" when setting thread stack size
2requests. This is fatal on PPC systems, which may use guard pages as large
3as 64K. This patch also documents the IA64 situation a bit better.
4
5Note: there are quite a few other setstacksize calls besides the two in
6mysqld.cc; is it important to fix any of the others?
7
8Filed upstream at http://bugs.mysql.com/bug.php?id=35019
9
10
11diff -Naur mysql-5.1.30.orig/sql/mysqld.cc mysql-5.1.30/sql/mysqld.cc
12--- mysql-5.1.30.orig/sql/mysqld.cc 2008-11-14 11:37:13.000000000 -0500
13+++ mysql-5.1.30/sql/mysqld.cc 2009-01-13 12:08:35.000000000 -0500
14@@ -2653,6 +2653,70 @@
15 }
16
17
18+/* pthread_attr_setstacksize without so much platform-dependency */
19+/* returns the actual stack size if possible */
20+static size_t my_setstacksize(pthread_attr_t *attr, size_t stacksize)
21+{
22+ size_t guard_size = 0;
23+
24+#if defined(__ia64__) || defined(__ia64)
25+ /*
26+ On IA64, half of the requested stack size is used for "normal stack"
27+ and half for "register stack". The space measured by check_stack_overrun
28+ is the "normal stack", so double the request to make sure we have the
29+ caller-expected amount of normal stack.
30+
31+ NOTE: there is no guarantee that the register stack can't grow faster
32+ than normal stack, so it's very unclear that we won't dump core due to
33+ stack overrun despite check_stack_overrun's efforts. Experimentation
34+ shows that in the execution_constants test, the register stack grows
35+ less than half as fast as normal stack, but perhaps other scenarios are
36+ less forgiving. If it turns out that more space is needed for the
37+ register stack, that could be forced (rather inefficiently) by using a
38+ multiplier higher than 2 here.
39+ */
40+ stacksize *= 2;
41+#endif
42+
43+ /*
44+ On many machines, the "guard space" is subtracted from the requested
45+ stack size, and that space is quite large on some platforms. So add
46+ it to our request, if we can find out what it is.
47+
48+ FIXME: autoconfiscate use of pthread_attr_getguardsize
49+ */
50+ if (pthread_attr_getguardsize(attr, &guard_size))
51+ guard_size = 0; /* if can't find it out, treat as 0 */
52+
53+ pthread_attr_setstacksize(attr, stacksize + guard_size);
54+
55+ /* Retrieve actual stack size if possible */
56+#ifdef HAVE_PTHREAD_ATTR_GETSTACKSIZE
57+ {
58+ size_t real_stack_size= 0;
59+ /* We must ignore real_stack_size = 0 as Solaris 2.9 can return 0 here */
60+ if (pthread_attr_getstacksize(attr, &real_stack_size) == 0 &&
61+ real_stack_size > guard_size)
62+ {
63+ real_stack_size -= guard_size;
64+ if (real_stack_size < stacksize)
65+ {
66+ if (global_system_variables.log_warnings)
67+ sql_print_warning("Asked for %ld thread stack, but got %ld",
68+ (long) stacksize, (long) real_stack_size);
69+ stacksize= real_stack_size;
70+ }
71+ }
72+ }
73+#endif
74+
75+#if defined(__ia64__) || defined(__ia64)
76+ stacksize /= 2;
77+#endif
78+ return stacksize;
79+}
80+
81+
82 static void start_signal_handler(void)
83 {
84 int error;
85@@ -2663,15 +2727,7 @@
86 #if !defined(HAVE_DEC_3_2_THREADS)
87 pthread_attr_setscope(&thr_attr,PTHREAD_SCOPE_SYSTEM);
88 (void) pthread_attr_setdetachstate(&thr_attr,PTHREAD_CREATE_DETACHED);
89-#if defined(__ia64__) || defined(__ia64)
90- /*
91- Peculiar things with ia64 platforms - it seems we only have half the
92- stack size in reality, so we have to double it here
93- */
94- pthread_attr_setstacksize(&thr_attr,my_thread_stack_size*2);
95-#else
96- pthread_attr_setstacksize(&thr_attr,my_thread_stack_size);
97-#endif
98+ (void) my_setstacksize(&thr_attr,my_thread_stack_size);
99 #endif
100
101 mysql_mutex_lock(&LOCK_thread_count);
102@@ -4445,37 +4501,7 @@
103 unireg_abort(1); // Will do exit
104
105 init_signals();
106-#if defined(__ia64__) || defined(__ia64)
107- /*
108- Peculiar things with ia64 platforms - it seems we only have half the
109- stack size in reality, so we have to double it here
110- */
111- pthread_attr_setstacksize(&connection_attrib,my_thread_stack_size*2);
112-#else
113- pthread_attr_setstacksize(&connection_attrib,my_thread_stack_size);
114-#endif
115-#ifdef HAVE_PTHREAD_ATTR_GETSTACKSIZE
116- {
117- /* Retrieve used stack size; Needed for checking stack overflows */
118- size_t stack_size= 0;
119- pthread_attr_getstacksize(&connection_attrib, &stack_size);
120-#if defined(__ia64__) || defined(__ia64)
121- stack_size/= 2;
122-#endif
123- /* We must check if stack_size = 0 as Solaris 2.9 can return 0 here */
124- if (stack_size && stack_size < my_thread_stack_size)
125- {
126- if (global_system_variables.log_warnings)
127- sql_print_warning("Asked for %lu thread stack, but got %ld",
128- my_thread_stack_size, (long) stack_size);
129-#if defined(__ia64__) || defined(__ia64)
130- my_thread_stack_size= stack_size*2;
131-#else
132- my_thread_stack_size= stack_size;
133-#endif
134- }
135- }
136-#endif
137+ my_thread_stack_size = my_setstacksize(&connection_attrib,my_thread_stack_size);
138
139 (void) thr_setconcurrency(concurrency); // 10 by default
140
0141
=== added file 'Percona-Server/packaging/rpm-uln/mysql-5.5-testing.patch'
--- Percona-Server/packaging/rpm-uln/mysql-5.5-testing.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-5.5-testing.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,23 @@
1Hack the top-level Makefile to enable the openssl regression tests.
2(Why doesn't this happen automatically given the configure option??)
3
4Also, increase the overall timeout for the regression tests to 12 hours,
5because on a slow or heavily-loaded build machine sometimes the default of
65 hours isn't enough. (This has been demonstrated to fail in mass-rebuild
7scenarios, which aren't that uncommon for Fedora.) Similarly increase the
8per-testcase timeout to 30 minutes, since the default of 15 hasn't got a
9great deal of headroom either.
10
11
12diff -Naur mysql-5.1.32.orig/Makefile.am mysql-5.1.32/Makefile.am
13--- mysql-5.1.32.orig/Makefile.am 2009-02-13 19:51:56.000000000 -0500
14+++ mysql-5.1.32/Makefile.am 2009-03-04 18:12:36.000000000 -0500
15@@ -98,7 +98,7 @@
16
17 test-ns:
18 cd mysql-test ; \
19- @PERL@ ./mysql-test-run.pl $(force) $(mem) --mysqld=--binlog-format=mixed
20+ @PERL@ ./mysql-test-run.pl $(force) $(mem) --ssl --mysqld=--binlog-format=mixed --suite-timeout=720 --testcase-timeout=30
21
22 test-binlog-statement:
23 cd mysql-test ; \
024
=== added file 'Percona-Server/packaging/rpm-uln/mysql-chain-certs.patch'
--- Percona-Server/packaging/rpm-uln/mysql-chain-certs.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-chain-certs.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,45 @@
1Fix things so that chains of certificates work in the server and client
2certificate files.
3
4This only really works for OpenSSL-based builds, as yassl is unable to read
5multiple certificates from a file. The patch below to yassl/src/ssl.cpp
6doesn't fix that, but just arranges that the viosslfactories.c patch won't
7have any ill effects in a yassl build. Since we don't use yassl in Red Hat/
8Fedora builds, I'm not feeling motivated to try to fix yassl for this.
9
10See RH bug #598656. Filed upstream at http://bugs.mysql.com/bug.php?id=54158
11
12 ===
13
14Joerg Bruehe, MySQL Build Team at Oracle: First patch adapted to code changes in MySQL 5.5
15
16
17diff -Naur mysql-5.5.29.orig/vio/viosslfactories.c mysql-5.5.29/vio/viosslfactories.c
18--- mysql-5.5.29.orig/vio/viosslfactories.c 2010-05-06 11:28:07.000000000 -0400
19+++ mysql-5.5.29/vio/viosslfactories.c 2010-05-26 23:23:46.000000000 -0400
20@@ -106,7 +106,7 @@
21 key_file= cert_file;
22
23 if (cert_file &&
24- SSL_CTX_use_certificate_file(ctx, cert_file, SSL_FILETYPE_PEM) <= 0)
25+ SSL_CTX_use_certificate_chain_file(ctx, cert_file) <= 0)
26 {
27 *error= SSL_INITERR_CERT;
28 DBUG_PRINT("error",("%s from file '%s'", sslGetErrString(*error), cert_file));
29diff -Naur mysql-5.1.47.orig/extra/yassl/src/ssl.cpp mysql-5.1.47/extra/yassl/src/ssl.cpp
30--- mysql-5.1.47.orig/extra/yassl/src/ssl.cpp 2010-05-06 11:24:26.000000000 -0400
31+++ mysql-5.1.47/extra/yassl/src/ssl.cpp 2010-05-26 23:29:13.000000000 -0400
32@@ -1606,10 +1606,10 @@
33 }
34
35
36- int SSL_CTX_use_certificate_chain_file(SSL_CTX*, const char*)
37+ int SSL_CTX_use_certificate_chain_file(SSL_CTX* ctx, const char* file)
38 {
39- // TDOD:
40- return SSL_SUCCESS;
41+ // For the moment, treat like use_certificate_file
42+ return read_file(ctx, file, SSL_FILETYPE_PEM, Cert);
43 }
44
45
046
=== added file 'Percona-Server/packaging/rpm-uln/mysql-embedded-check.c'
--- Percona-Server/packaging/rpm-uln/mysql-embedded-check.c 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-embedded-check.c 2013-01-31 20:19:36 +0000
@@ -0,0 +1,26 @@
1/* simple test program to see if we can link the embedded server library */
2
3#include <stdio.h>
4#include <stdlib.h>
5#include <stdarg.h>
6
7#include "mysql.h"
8
9MYSQL *mysql;
10
11static char *server_options[] = \
12 { "mysql_test", "--defaults-file=my.cnf", NULL };
13int num_elements = (sizeof(server_options) / sizeof(char *)) - 1;
14
15static char *server_groups[] = { "libmysqld_server",
16 "libmysqld_client", NULL };
17
18int main(int argc, char **argv)
19{
20 mysql_library_init(num_elements, server_options, server_groups);
21 mysql = mysql_init(NULL);
22 mysql_close(mysql);
23 mysql_library_end();
24
25 return 0;
26}
027
=== added file 'Percona-Server/packaging/rpm-uln/mysql-expired-certs.patch'
--- Percona-Server/packaging/rpm-uln/mysql-expired-certs.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-expired-certs.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,555 @@
1Upstream insists on generating SSL testing certificates with relatively short
2lifespan, which has repeatedly caused problems (ie, one day the regression
3tests suddenly stop working). Replace them with certificates with 20-year
4lifespan. We should periodically regenerate these, too, but at least not
5very often.
6
7
8diff -Naur mysql-5.1.50.orig/mysql-test/std_data/cacert.pem mysql-5.1.50/mysql-test/std_data/cacert.pem
9--- mysql-5.1.50.orig/mysql-test/std_data/cacert.pem 2010-08-03 13:55:04.000000000 -0400
10+++ mysql-5.1.50/mysql-test/std_data/cacert.pem 2010-08-27 23:42:05.751428144 -0400
11@@ -1,17 +1,22 @@
12 -----BEGIN CERTIFICATE-----
13-MIICrTCCAhagAwIBAgIJAMI7xZKjhrDbMA0GCSqGSIb3DQEBBAUAMEQxCzAJBgNV
14+MIIDsjCCApqgAwIBAgIJAL5YrUwfPSWVMA0GCSqGSIb3DQEBBQUAMEQxCzAJBgNV
15 BAYTAlNFMRAwDgYDVQQIEwdVcHBzYWxhMRAwDgYDVQQHEwdVcHBzYWxhMREwDwYD
16-VQQKEwhNeVNRTCBBQjAeFw0xMDAxMjkxMTQ3MTBaFw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KoBgVx1zeH1puBAf8dOzrE4L7Y+ZQBFzFohjh8C2LqWC4nM5
34+qsLmOkDWMipGqYU5DvkKjIbTbwTyRNRgZHWSPfVDDPUIUOsY4BGUp2DpgeGY9aEv
35+lIs57Ev9JqlIUCV65lOhhDkG+xwmkHKHA+ECEU9cALI8+uXbh48MB9XpMOuk408X
36+/lX89aZwD0/G9kmObVGnE2G+H5UCAwEAAaOBpjCBozAdBgNVHQ4EFgQUsft+d7VA
37+jWgRftkR5cPG2k2sUbAwdAYDVR0jBG0wa4AUsft+d7VAjWgRftkR5cPG2k2sUbCh
38+SKRGMEQxCzAJBgNVBAYTAlNFMRAwDgYDVQQIEwdVcHBzYWxhMRAwDgYDVQQHEwdV
39+cHBzYWxhMREwDwYDVQQKEwhNeVNRTCBBQoIJAL5YrUwfPSWVMAwGA1UdEwQFMAMB
40+Af8wDQYJKoZIhvcNAQEFBQADggEBALRUOAmdL8R8sl1y8kiEiFgDatdXK5RDqWai
41+8yZChfmwTIToHhmQsOEshJe2e8hky3huUj+33VyXjINoMbebIwMuXPwEkbJal8RZ
42+nSJmF0jN1Qz7J/jFffwK9xmejWZJx49Kt2+Qwrwp6kDeq9TLFqQOoVczgyJPYsTL
43+NAOib5WqTud3XWvCwxrhqmWu7JZq6sp1fomP/uunprb8y2miWfLESZN2mKAhm44Q
44+Lws867LT8v2lskEjq2dT1LutD5+R66XcdjgSr0uDziDs64jZwCD6ea94hVFM7ej0
45+ZOXYeSEZJ56FjUxu632e9fY8NyMh30yKjjmQf1mM9PuGJvdvsWU=
46 -----END CERTIFICATE-----
47diff -Naur mysql-5.1.50.orig/mysql-test/std_data/client-cert.pem mysql-5.1.50/mysql-test/std_data/client-cert.pem
48--- mysql-5.1.50.orig/mysql-test/std_data/client-cert.pem 2010-08-03 13:55:04.000000000 -0400
49+++ mysql-5.1.50/mysql-test/std_data/client-cert.pem 2010-08-27 23:42:05.752428395 -0400
50@@ -1,46 +1,69 @@
51 Certificate:
52 Data:
53- Version: 1 (0x0)
54- Serial Number: 1048577 (0x100001)
55- Signature Algorithm: md5WithRSAEncryption
56+ Version: 3 (0x2)
57+ Serial Number: 6 (0x6)
58+ Signature Algorithm: sha1WithRSAEncryption
59 Issuer: C=SE, ST=Uppsala, L=Uppsala, O=MySQL AB
60 Validity
61- Not Before: Jan 29 11:50:22 2010 GMT
62- Not After : Jan 28 11:50:22 2015 GMT
63+ Not Before: Feb 20 03:03:26 2010 GMT
64+ Not After : Sep 3 03:03:26 2030 GMT
65 Subject: C=SE, ST=Uppsala, O=MySQL AB
66 Subject Public Key Info:
67 Public Key Algorithm: rsaEncryption
68- Public-Key: (1024 bit)
69- Modulus:
70- 00:cc:9a:37:49:13:66:dc:cf:e3:0b:13:a1:23:ed:
71- 78:db:4e:bd:11:f6:8c:0d:76:f9:a3:32:56:9a:f8:
72- a1:21:6a:55:4e:4d:3f:e6:67:9d:26:99:b2:cd:a4:
73- 9a:d2:2b:59:5c:d7:8a:d3:60:68:f8:18:bd:c5:be:
74- 15:e1:2a:3c:a3:d4:61:cb:f5:11:94:17:81:81:f7:
75- 87:8c:f6:6a:d2:ee:d8:e6:77:f6:62:66:4d:2e:16:
76- 8d:08:81:4a:c9:c6:4b:31:e5:b9:c7:8a:84:96:48:
77- a7:47:8c:0d:26:90:56:4e:e6:a5:6e:8c:b3:f2:9f:
78- fc:3d:78:9b:49:6e:86:83:77
79+ RSA Public Key: (1024 bit)
80+ Modulus (1024 bit):
81+ 00:c2:e7:20:cf:89:59:2f:67:cb:4c:9f:e8:11:f2:
82+ 23:e5:f1:b1:ee:3f:66:5f:c3:f5:fd:1e:31:ee:8f:
83+ 4c:2a:bd:c0:4a:a5:9f:c8:44:d5:77:8f:15:1b:4d:
84+ 78:6e:b2:a2:48:a5:24:33:05:40:02:b3:c1:87:8d:
85+ 59:3c:1a:07:aa:86:f0:04:e1:9c:20:4b:22:32:c4:
86+ 51:9e:40:e4:31:c3:57:f5:98:bf:2e:b1:fd:2c:56:
87+ bf:49:d9:9b:e7:17:cc:95:5f:b5:08:19:5e:9d:df:
88+ 65:22:39:2c:48:fb:69:96:31:7a:35:4d:de:60:b4:
89+ c1:60:19:5f:96:56:7e:55:19
90 Exponent: 65537 (0x10001)
91- Signature Algorithm: md5WithRSAEncryption
92- 5e:1f:a3:53:5f:24:13:1c:f8:28:32:b0:7f:69:69:f3:0e:c0:
93- 34:87:10:03:7d:da:15:8b:bd:19:b8:1a:56:31:e7:85:49:81:
94- c9:7f:45:20:74:3e:89:c0:e0:26:84:51:cc:04:16:ce:69:99:
95- 01:e1:26:99:b3:e3:f5:bd:ec:5f:a0:84:e4:38:da:75:78:7b:
96- 89:9c:d2:cd:60:95:20:ba:8e:e3:7c:e6:df:76:3a:7c:89:77:
97- 02:94:86:11:3a:c4:61:7d:6f:71:83:21:8a:17:fb:17:e2:ee:
98- 02:6b:61:c1:b4:52:63:d7:d8:46:b2:c5:9c:6f:38:91:8a:35:
99- 32:0b
100+ X509v3 extensions:
101+ X509v3 Basic Constraints:
102+ CA:FALSE
103+ X509v3 Subject Key Identifier:
104+ 8D:10:67:91:33:76:9C:02:E5:78:5D:D8:C5:EF:25:96:B2:D7:FA:1F
105+ X509v3 Authority Key Identifier:
106+ keyid:B1:FB:7E:77:B5:40:8D:68:11:7E:D9:11:E5:C3:C6:DA:4D:AC:51:B0
107+ DirName:/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB
108+ serial:BE:58:AD:4C:1F:3D:25:95
109+
110+ Signature Algorithm: sha1WithRSAEncryption
111+ a9:88:10:3e:5d:2a:47:29:c8:03:27:7a:31:5a:8e:10:03:bc:
112+ b5:4e:37:1d:12:7b:eb:5f:50:71:70:b1:a3:8e:93:0e:77:17:
113+ 6c:47:b6:c9:a4:4d:2a:c4:38:f0:61:55:b2:7f:28:ba:06:79:
114+ ee:67:11:7d:d4:c9:7f:0a:18:c8:c1:cb:d0:2c:f9:63:0f:bb:
115+ 45:ca:de:ea:bb:ac:00:01:52:48:36:2b:07:2b:c8:46:c7:b1:
116+ 21:81:bd:77:39:e7:4c:39:aa:bd:ac:60:d8:a7:bf:cf:14:98:
117+ 4a:0b:a1:40:55:06:8d:6f:35:a9:39:a0:71:a9:97:ba:7c:73:
118+ 3c:41:ba:c5:1c:11:4b:2b:43:1d:2d:ba:7b:5f:14:b5:3d:64:
119+ 62:15:36:b4:16:bd:78:c8:43:8d:f9:1c:a5:d2:ac:a1:58:74:
120+ e1:99:de:ad:04:19:43:a8:bd:0a:fd:19:9b:50:44:46:6d:18:
121+ 55:4d:bf:b4:5b:a4:93:62:c7:64:91:6c:54:34:d1:f8:f3:ff:
122+ 12:6d:5f:85:e7:35:9e:5c:42:81:5e:fb:c8:bb:44:51:98:b2:
123+ ef:1b:9f:5a:22:77:28:7d:da:fb:08:c2:94:9a:0f:42:08:93:
124+ 54:10:1e:ad:f2:4f:fc:62:98:51:e9:9b:b9:3a:93:d9:e4:1f:
125+ 1d:c4:76:d0
126 -----BEGIN CERTIFICATE-----
127-MIIB5zCCAVACAxAAATANBgkqhkiG9w0BAQQFADBEMQswCQYDVQQGEwJTRTEQMA4G
128-A1UECBMHVXBwc2FsYTEQMA4GA1UEBxMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwg
129-QUIwHhcNMTAwMTI5MTE1MDIyWhcNMTUwMTI4MTE1MDIyWjAyMQswCQYDVQQGEwJT
130-RTEQMA4GA1UECBMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwgQUIwgZ8wDQYJKoZI
131-hvcNAQEBBQADgY0AMIGJAoGBAMyaN0kTZtzP4wsToSPteNtOvRH2jA12+aMyVpr4
132-oSFqVU5NP+ZnnSaZss2kmtIrWVzXitNgaPgYvcW+FeEqPKPUYcv1EZQXgYH3h4z2
133-atLu2OZ39mJmTS4WjQiBSsnGSzHluceKhJZIp0eMDSaQVk7mpW6Ms/Kf/D14m0lu
134-hoN3AgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAXh+jU18kExz4KDKwf2lp8w7ANIcQ
135-A33aFYu9G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BxqZe6fHM8QbrFHBFLK0MdLbp7
152+XxS1PWRiFTa0Fr14yEON+Ryl0qyhWHThmd6tBBlDqL0K/RmbUERGbRhVTb+0W6ST
153+YsdkkWxUNNH48/8SbV+F5zWeXEKBXvvIu0RRmLLvG59aIncofdr7CMKUmg9CCJNU
154+EB6t8k/8YphR6Zu5OpPZ5B8dxHbQ
155 -----END CERTIFICATE-----
156diff -Naur mysql-5.1.50.orig/mysql-test/std_data/client-key.pem mysql-5.1.50/mysql-test/std_data/client-key.pem
157--- mysql-5.1.50.orig/mysql-test/std_data/client-key.pem 2010-08-03 13:55:05.000000000 -0400
158+++ mysql-5.1.50/mysql-test/std_data/client-key.pem 2010-08-27 23:42:05.752428395 -0400
159@@ -1,15 +1,15 @@
160 -----BEGIN RSA PRIVATE KEY-----
161-MIICXQIBAAKBgQDMmjdJE2bcz+MLE6Ej7XjbTr0R9owNdvmjMlaa+KEhalVOTT/m
162-Z50mmbLNpJrSK1lc14rTYGj4GL3FvhXhKjyj1GHL9RGUF4GB94eM9mrS7tjmd/Zi
163-Zk0uFo0IgUrJxksx5bnHioSWSKdHjA0mkFZO5qVujLPyn/w9eJtJboaDdwIDAQAB
164-AoGASqk/4We2En+93y3jkIO4pXafIe3w/3zZ7caRue1ehx4RUQh5d+95djuB9u7J
165-HEZ7TpjM7QNyao5EueL6gvbxt0LXFvqAMni7yM9tt/HUYtHHPqYiRtUny9bKYFTm
166-l8szCCMal/wD9GZU9ByHDNHm7tHUMyMhARNTYSgx+SERFmECQQD/6jJocC4SXf6f
167-T3LqimWR02lbJ7qCoDgRglsUXh0zjrG+IIiAyE+QOCCx1GMe3Uw6bsIuYwdHT6as
168-WcdPs04xAkEAzKulvEvLVvN5zfa/DTYRTV7jh6aDleOxjsD5oN/oJXoACnPzVuUL
169-qQQMNtuAXm6Q1QItrRxpQsSKbY0UQka6JwJBAOSgoNoG5lIIYTKIMvzwGV+XBLeo
170-HYsXgh+6Wo4uql3mLErUG78ZtWL9kc/tE4R+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E KEY-----
188diff -Naur mysql-5.1.50.orig/mysql-test/std_data/server-cert.pem mysql-5.1.50/mysql-test/std_data/server-cert.pem
189--- mysql-5.1.50.orig/mysql-test/std_data/server-cert.pem 2010-08-03 13:55:08.000000000 -0400
190+++ mysql-5.1.50/mysql-test/std_data/server-cert.pem 2010-08-27 23:42:05.753428361 -0400
191@@ -1,41 +1,69 @@
192 Certificate:
193 Data:
194- Version: 1 (0x0)
195- Serial Number: 1048578 (0x100002)
196- Signature Algorithm: md5WithRSAEncryption
197+ Version: 3 (0x2)
198+ Serial Number: 4 (0x4)
199+ Signature Algorithm: sha1WithRSAEncryption
200 Issuer: C=SE, ST=Uppsala, L=Uppsala, O=MySQL AB
201 Validity
202- Not Before: Jan 29 11:56:49 2010 GMT
203- Not After : Jan 28 11:56:49 2015 GMT
204+ Not Before: Feb 20 02:55:06 2010 GMT
205+ Not After : Sep 3 02:55:06 2030 GMT
206 Subject: C=SE, ST=Uppsala, O=MySQL AB, CN=localhost
207 Subject Public Key Info:
208 Public Key Algorithm: rsaEncryption
209- Public-Key: (512 bit)
210- Modulus:
211- 00:cd:e4:87:51:9d:72:11:a0:d1:fa:f3:92:8b:13:
212- 1c:eb:f7:e2:9a:2f:72:a8:d6:65:48:d1:69:af:1b:
213- c0:4c:13:e5:60:60:51:41:e9:ab:a6:bc:13:bb:0c:
214- 5e:32:7c:d9:6c:9e:cd:05:24:84:78:db:80:91:2e:
215- d8:88:2b:c2:ed
216+ RSA Public Key: (1024 bit)
217+ Modulus (1024 bit):
218+ 00:e3:7d:4f:c2:23:77:a9:3a:2c:d2:69:59:a0:2f:
219+ 4e:d1:51:4c:ae:8d:f5:17:cc:ce:58:9c:83:4f:0b:
220+ a3:bb:29:a2:b8:1d:3e:1b:04:f9:a9:3e:e2:61:d0:
221+ e6:7b:b9:7c:12:d8:1f:86:c9:53:b5:04:dd:df:26:
222+ e9:c0:2b:de:4a:96:2e:f3:23:6f:79:6d:a9:d2:4e:
223+ 17:af:2f:de:8b:68:44:ae:de:a3:e2:c4:37:1c:04:
224+ ad:73:4b:85:f9:83:ac:fe:b7:c1:54:47:2e:96:d4:
225+ 31:96:85:94:69:d6:5a:63:24:04:99:89:19:1d:56:
226+ 8a:d1:77:aa:87:fb:38:cd:b7
227 Exponent: 65537 (0x10001)
228- Signature Algorithm: md5WithRSAEncryption
229- 73:ce:9c:6e:39:46:b4:14:be:da:3f:f3:1b:ba:90:bc:23:43:
230- d7:82:2a:70:4e:a6:d9:5a:65:5c:b7:df:71:df:75:77:c5:80:
231- a4:af:fa:d2:59:e2:fd:c9:9c:f0:98:95:8e:69:a9:8c:7c:d8:
232- 6f:48:d2:e3:36:e0:cd:ff:3f:d1:a5:e6:ab:75:09:c4:50:10:
233- c4:96:dd:bf:3b:de:32:46:da:ca:4a:f1:d6:52:8a:33:2f:ab:
234- f5:2e:70:3f:d4:9c:be:00:c8:03:f9:39:8a:df:5b:70:3c:40:
235- ef:03:be:7c:3d:1d:32:32:f3:51:81:e2:83:30:6e:3d:38:9b:
236- fb:3c
237+ X509v3 extensions:
238+ X509v3 Basic Constraints:
239+ CA:FALSE
240+ X509v3 Subject Key Identifier:
241+ CC:8C:71:40:D0:0F:BF:D1:99:79:3F:1B:E9:10:76:19:67:36:0F:A3
242+ X509v3 Authority Key Identifier:
243+ keyid:B1:FB:7E:77:B5:40:8D:68:11:7E:D9:11:E5:C3:C6:DA:4D:AC:51:B0
244+ DirName:/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB
245+ serial:BE:58:AD:4C:1F:3D:25:95
246+
247+ Signature Algorithm: sha1WithRSAEncryption
248+ 6f:ad:5e:59:fa:84:3a:be:e2:72:b1:e8:66:2a:4e:f8:73:19:
249+ 11:06:11:92:78:56:3e:d6:e8:68:29:90:8b:59:d2:fe:aa:ae:
250+ 25:59:c7:e9:99:bb:4a:06:43:dd:40:bd:cb:f4:ae:79:95:7d:
251+ 8e:90:ef:58:d2:a8:fc:bf:07:f3:37:b2:9b:bd:da:e6:8c:56:
252+ dd:5e:c6:4a:70:7c:3e:3d:a1:e8:35:06:b8:a7:7b:ac:26:85:
253+ 54:5d:09:a2:7b:77:b4:17:7f:72:31:cb:ff:cc:67:6d:e6:3e:
254+ c6:dc:96:eb:4a:0a:ae:e9:48:ae:8a:e0:d6:73:57:6e:32:4c:
255+ 00:dc:28:da:55:b3:9f:9f:d8:98:cc:d9:f1:b6:b3:14:67:2e:
256+ a1:47:1e:51:11:cf:70:9f:31:8f:ba:59:29:f2:d0:88:0b:e2:
257+ 51:6b:f8:31:ed:6d:ac:00:5e:d3:78:4c:95:97:02:cc:74:2b:
258+ 3b:c6:28:e6:2a:c3:30:99:35:b4:4d:31:46:d4:90:f2:47:ed:
259+ 64:85:1a:75:2a:72:0a:2f:c6:3a:2f:d2:ac:6b:31:cc:e5:a8:
260+ 07:c2:d6:22:f3:c6:0f:bf:67:d9:d6:b2:79:cd:48:b5:c3:e0:
261+ e3:18:7f:b5:74:c9:43:19:fb:c4:93:29:ca:cc:90:2b:1b:6f:
262+ 45:f6:25:f9
263 -----BEGIN CERTIFICATE-----
264-MIIBtzCCASACAxAAAjANBgkqhkiG9w0BAQQFADBEMQswCQYDVQQGEwJTRTEQMA4G
265-A1UECBMHVXBwc2FsYTEQMA4GA1UEBxMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwg
266-QUIwHhcNMTAwMTI5MTE1NjQ5WhcNMTUwMTI4MTE1NjQ5WjBGMQswCQYDVQQGEwJT
267-RTEQMA4GA1UECBMHVXBwc2FsYTERMA8GA1UEChMITXlTUUwgQUIxEjAQBgNVBAMT
268-CWxvY2FsaG9zdDBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDN5IdRnXIRoNH685KL
269-Exzr9+KaL3Ko1mVI0WmvG8BME+VgYFFB6aumvBO7DF4yfNlsns0FJIR424CRLtiI
270-K8LtAgMBAAEwDQYJKoZIhvcNAQEEBQADgYEAc86cbjlGtBS+2j/zG7qQvCND14Iq
271-cE6m2VplXLffcd91d8W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V24yTADcKNpVs5+f2JjM2fG2sxRnLqFHHlERz3CfMY+6WSny0IgL4lFr+DHt
289+bawAXtN4TJWXAsx0KzvGKOYqwzCZNbRNMUbUkPJH7WSFGnUqcgovxjov0qxrMczl
290+qAfC1iLzxg+/Z9nWsnnNSLXD4OMYf7V0yUMZ+8STKcrMkCsbb0X2Jfk=
291 -----END CERTIFICATE-----
292diff -Naur mysql-5.1.50.orig/mysql-test/std_data/server-key.pem mysql-5.1.50/mysql-test/std_data/server-key.pem
293--- mysql-5.1.50.orig/mysql-test/std_data/server-key.pem 2010-08-03 13:55:08.000000000 -0400
294+++ mysql-5.1.50/mysql-test/std_data/server-key.pem 2010-08-27 23:42:05.754428433 -0400
295@@ -1,9 +1,15 @@
296 -----BEGIN RSA PRIVATE KEY-----
297-MIIBOwIBAAJBAM3kh1GdchGg0frzkosTHOv34povcqjWZUjRaa8bwEwT5WBgUUHp
298-q6a8E7sMXjJ82WyezQUkhHjbgJEu2Igrwu0CAwEAAQJBAJuwhFbF3NzRpBbEmnqJ
299-4GPa1UJMQMLFJF+04tqj/HxJcAIVhOJhGmmtYNw1yjz/ZsPnfJCMz4eFOtdjvGtf
300-peECIQDmFFg2WLvYo+2m9w9V7z4ZIkg7ixYkI/ObUUctfZkPOQIhAOUWnrvjFrAX
301-bIvYT/YR50+3ZDLEc51XxNgJnWqWYl1VAiEAnTOFWgyivFC1DgF8PvDp8u5TgCt2
302-A1d1GMgd490O+TECIC/WMl0/hTxOF9930vKqOGf//o9PUGkZq8QE9fcM4gtlAiAE
303-iOcFpnLjtWj57jrhuw214ucnB5rklkQQe+AtcARNkg==
304+MIICXgIBAAKBgQDjfU/CI3epOizSaVmgL07RUUyujfUXzM5YnINPC6O7KaK4HT4b
305+BPmpPuJh0OZ7uXwS2B+GyVO1BN3fJunAK95Kli7zI295banSThevL96LaESu3qPi
306+xDccBK1zS4X5g6z+t8FURy6W1DGWhZRp1lpjJASZiRkdVorRd6qH+zjNtwIDAQAB
307+AoGAUb0o91y/FjMs/72S0pes/lDz+JRRSGfyjKxQEgrgndNsADOhqRu0iTdrKDJj
308+XnlbN3ooecnFJfnFrvTQcJhSmlS30j6VrBw6LXpCBK3dvjYgJ9LOne7WK+dF1+vS
309+FMQtsP04C56Sxy6HJDpMyWJ6oS3Bu169ygG2AxKo+Fk+E6ECQQD38w/MzmrARz2Z
310+AGeEPDUnVZPYgtmXkmks95S0/2jSoLhmgpvJimzxwpYwVG/BG8dSDVuTDu5kp05D
311+3bZIp3EzAkEA6uAwJsCZPtHXlWU3wYZJsA697rUNjPaCQOIaZ/lnh5RUHTmUiw1h
312+Oj/VORqKB0kXqcDfawwLjZEvh1Xli+H5bQJBANTmhw2TvEPnp/OFTl1UGUvyBmXl
313+TRMB639qAu07VfVtfYi/4ya1zn/0VmOfTOoigQ5qW9Q1AOu6YNCTQl62L9MCQQDc
314+YfEsW2kvNYxYJHoVfuBjbuGuOnn1e1Oqd70ZND59S6NFLMMBWlORaVWzWACNZ3rp
315+kAzSj6HDeqgjD2jsQONdAkEAt7S1YHUn8F760bRn4AnAto2TVOYdArtTP/wYjd4o
316+9rJREO/d8AYkYJ96APLvF0SZ4n3t1pLwQRsKKN8ZGTmzLA==
317 -----END RSA PRIVATE KEY-----
318diff -Naur mysql-5.1.50.orig/mysql-test/std_data/server8k-cert.pem mysql-5.1.50/mysql-test/std_data/server8k-cert.pem
319--- mysql-5.1.50.orig/mysql-test/std_data/server8k-cert.pem 2010-08-03 13:55:08.000000000 -0400
320+++ mysql-5.1.50/mysql-test/std_data/server8k-cert.pem 2010-08-27 23:43:00.005366270 -0400
321@@ -1,51 +1,69 @@
322+Certificate:
323+ Data:
324+ Version: 3 (0x2)
325+ Serial Number: 5 (0x5)
326+ Signature Algorithm: sha1WithRSAEncryption
327+ Issuer: C=SE, ST=Uppsala, L=Uppsala, O=MySQL AB
328+ Validity
329+ Not Before: Feb 20 03:00:54 2010 GMT
330+ Not After : Sep 3 03:00:54 2030 GMT
331+ Subject: C=SE, ST=Uppsala, O=MySQL AB, CN=server
332+ Subject Public Key Info:
333+ Public Key Algorithm: rsaEncryption
334+ RSA Public Key: (1024 bit)
335+ Modulus (1024 bit):
336+ 00:c5:da:44:95:06:77:16:21:af:a0:c4:3c:e9:f8:
337+ 1d:2d:95:f9:63:90:8c:3f:86:ba:77:76:4a:52:4b:
338+ 6b:af:29:f5:1c:aa:d4:3f:3e:42:9f:6d:46:ba:86:
339+ 90:b1:2d:cc:db:c6:33:15:a3:f4:af:53:33:4f:a1:
340+ 56:d1:aa:3b:26:10:f7:64:b5:f9:bf:1b:b1:47:8e:
341+ cc:a6:d6:0d:aa:4a:77:e3:a3:63:9d:2a:dc:65:f4:
342+ 7f:91:17:38:2d:d6:cd:4e:8d:53:52:97:6e:87:fc:
343+ 64:60:a6:a1:00:ac:96:6c:e4:42:94:75:17:46:6f:
344+ 91:b5:dd:06:47:ed:05:e3:db
345+ Exponent: 65537 (0x10001)
346+ X509v3 extensions:
347+ X509v3 Basic Constraints:
348+ CA:FALSE
349+ X509v3 Subject Key Identifier:
350+ 6E:60:3F:29:13:60:99:ED:0C:F7:15:B5:DB:7B:1C:FB:6F:60:19:ED
351+ X509v3 Authority Key Identifier:
352+ keyid:B1:FB:7E:77:B5:40:8D:68:11:7E:D9:11:E5:C3:C6:DA:4D:AC:51:B0
353+ DirName:/C=SE/ST=Uppsala/L=Uppsala/O=MySQL AB
354+ serial:BE:58:AD:4C:1F:3D:25:95
355+
356+ Signature Algorithm: sha1WithRSAEncryption
357+ 63:2e:0f:07:14:06:cf:74:90:3d:37:42:f2:48:70:60:21:bc:
358+ 34:52:31:f1:87:70:d2:b2:fb:ff:13:38:dc:f0:5e:43:d7:ee:
359+ a7:c7:1f:ac:aa:d2:8c:4f:fa:3c:4c:73:f6:b6:c2:0c:a0:ea:
360+ a2:c9:e2:73:61:c3:2e:78:40:0f:2a:d3:63:50:9b:b8:f9:89:
361+ 40:ed:98:08:97:c3:07:24:17:34:b5:78:89:0a:bb:83:4c:e2:
362+ 5c:2e:13:d6:21:30:ad:30:48:b5:70:12:ff:4a:6f:42:f0:f8:
363+ 9f:b1:4b:bd:89:2b:f0:9d:e2:49:2b:35:69:18:1f:76:40:b4:
364+ 76:bd:cb:dd:27:2f:c0:c1:e2:33:3e:6e:df:68:54:19:92:8a:
365+ bb:13:9c:cf:d6:17:56:da:bf:0d:64:70:3a:45:b7:aa:5f:e3:
366+ f5:96:ae:34:f2:17:37:27:d0:4b:e8:30:4a:c0:02:42:e2:d2:
367+ 30:eb:eb:c7:d7:ec:d8:df:5c:43:58:e2:6f:b7:58:54:0d:c4:
368+ 01:71:2d:59:8f:44:c7:a1:6c:0b:41:28:fa:b7:63:a7:68:d3:
369+ 4f:c3:0f:17:9e:b2:32:50:e6:0b:87:3d:e2:39:47:c0:d8:0a:
370+ 3b:f6:af:50:68:0f:9d:ef:6e:34:0d:3a:07:94:f8:a4:d7:24:
371+ 86:32:d3:b4
372 -----BEGIN CERTIFICATE-----
373-MIIJFDCCBPwCAQEwDQYJKoZIhvcNAQEEBQAwTjELMAkGA1UEBhMCU0UxEDAOBgNV
374-BAgTB1VwcHNhbGExETAPBgNVBAoTCE15U1FMIEFCMQ0wCwYDVQQLEwRUZXN0MQsw
375-CQYDVQQDEwJDQTAeFw0xMDA3MjgxNDA3MjhaFw0xODEwMTQxNDA3MjhaMFIxCzAJ
376-BgNVBAYTAlNFMRAwDgYDVQQIEwdVcHBzYWxhMREwDwYDVQQKEwhNeVNRTCBBQjEN
377-MAsGA1UECxMEVGVzdDEPMA0GA1UEAxMGc2VydmVyMIIEIjANBgkqhkiG9w0BAQEF
378-AAOCBA8AMIIECgKCBAEA6h3v1OWb9I9U/Z8diBu/xYGS8NCTD3ZESboHxVI2qSEC
379-PgxNNcG8Lh0ktQdgYcOe64MnDTZX0Bibm47hoDldrAlTSffFxQhylqBBoXxDF+Lr
380-hXIqCz7K0PsK+bYusL9ezJ7PETDnCT7oy95q4GXbKsutbNsm9if4ZE41gs2KnoU2
381-DA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DAJBgNVHRMEAjAAMB0G
430+A1UdDgQWBBRuYD8pE2CZ7Qz3FbXbexz7b2AZ7TB0BgNVHSMEbTBrgBSx+353tUCN
431+aBF+2RHlw8baTaxRsKFIpEYwRDELMAkGA1UEBhMCU0UxEDAOBgNVBAgTB1VwcHNh
432+bGExEDAOBgNVBAcTB1VwcHNhbGExETAPBgNVBAoTCE15U1FMIEFCggkAvlitTB89
433+JZUwDQYJKoZIhvcNAQEFBQADggEBAGMuDwcUBs90kD03QvJIcGAhvDRSMfGHcNKy
434++/8TONzwXkPX7qfHH6yq0oxP+jxMc/a2wgyg6qLJ4nNhwy54QA8q02NQm7j5iUDt
435+mAiXwwckFzS1eIkKu4NM4lwuE9YhMK0wSLVwEv9Kb0Lw+J+xS72JK/Cd4kkrNWkY
436+H3ZAtHa9y90nL8DB4jM+bt9oVBmSirsTnM/WF1bavw1kcDpFt6pf4/WWrjTyFzcn
437+0EvoMErAAkLi0jDr68fX7NjfXENY4m+3WFQNxAFxLVmPRMehbAtBKPq3Y6do00/D
438+DxeesjJQ5guHPeI5R8DYCjv2r1BoD53vbjQNOgeU+KTXJIYy07Q=
439 -----END CERTIFICATE-----
440diff -Naur mysql-5.1.50.orig/mysql-test/std_data/server8k-key.pem mysql-5.1.50/mysql-test/std_data/server8k-key.pem
441--- mysql-5.1.50.orig/mysql-test/std_data/server8k-key.pem 2010-08-03 13:55:08.000000000 -0400
442+++ mysql-5.1.50/mysql-test/std_data/server8k-key.pem 2010-08-27 23:43:10.165365998 -0400
443@@ -1,99 +1,15 @@
444 -----BEGIN RSA PRIVATE KEY-----
445-MIISKQIBAAKCBAEA6h3v1OWb9I9U/Z8diBu/xYGS8NCTD3ZESboHxVI2qSECPgxN
446-NcG8Lh0ktQdgYcOe64MnDTZX0Bibm47hoDldrAlTSffFxQhylqBBoXxDF+LrhXIq
447-Cz7K0PsK+bYusL9ezJ7PETDnCT7oy95q4GXbKsutbNsm9if4ZE41gs2KnoU2DA7k
448-vMmkKojrMIL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jVNSl26H/GRgpqEArJZs5EKUdRdGb5G13QZH7QXj2wIDAQAB
545+AoGBAJLCjh7Q9eLnx+QDzH9s+Q/IcH4nSbERmh1lFEopAc6j29qQ6PGkmDy0DUPs
546+70VOCOh5A4mo3aZzm9sUfVb24/nRtmyTP/AtMuIVGCsUqzI28dJRGvRlY0aSQG/C
547+ILqMP69kiMNGBvuyEIiJhisOmMvDFEp7HrrXHJM9qcc217DpAkEA4nzJ9yyy2e4O
548+r6/D711hdfcU/F+ktXw+pL77kSSdTABUap92Uv2RL36UA4q5h8RNvq/GrzMNm6Ye
549+u2IMvBCiTQJBAN+iRbiMJCSitTg5YVMluVbT87co7jbTqk7LN1ujyIFEklm4xlHG
550+DLJNgEoDR7QJtAkL++FyogC4zsQsey5voscCQQCp54trTbDuI9QIoAaQrrDKWgz4
551+NpfNPeOQm2UFQT5vIWAyjGWrZGViB8bp0UvVOcJI5nxaOiZfOYOcdrWu75uRAkAn
552+67zMc9/j1lPJRJz2Dc7nDBD+ikTz7pcBV897AWLCiK4jbBOi91q+3YzgKXO8VNsZ
553+nlUJasA2psbqSBJ5OJ5zAkEA2UxoMju54hASjT54Z92IzraVw4Vo8CYwOcw5fr7z
554++m5xg1mmWdLBclmZ+WjARzDuTHIW6u/WCxNGg42AykWzfw==
555 -----END RSA PRIVATE KEY-----
0556
=== added file 'Percona-Server/packaging/rpm-uln/mysql-install-test.patch'
--- Percona-Server/packaging/rpm-uln/mysql-install-test.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-install-test.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,33 @@
1Improve the documentation that will be installed in the mysql-test RPM.
2
3
4diff -Naur mysql-5.1.43.orig/mysql-test/README mysql-5.1.43/mysql-test/README
5--- mysql-5.1.43.orig/mysql-test/README 2010-01-15 12:14:43.000000000 -0500
6+++ mysql-5.1.43/mysql-test/README 2010-02-13 21:18:06.000000000 -0500
7@@ -6,6 +6,16 @@
8 actually have a co-existing MySQL installation. The tests will not
9 conflict with it.
10
11+For use in Red Hat distributions, you should run the script as user mysql,
12+so the best bet is something like
13+ cd /usr/share/mysql-test
14+ sudo -u mysql ./mysql-test-run
15+This will use the installed mysql executables, but will run a private copy
16+of the server process (using data files within /usr/share/mysql-test),
17+so you need not start the mysqld service beforehand.
18+To clean up afterwards, remove the created "var" subdirectory, eg
19+ sudo -u mysql rm -rf /usr/share/mysql-test/var
20+
21 All tests must pass. If one or more of them fail on your system, please
22 read the following manual section for instructions on how to report the
23 problem:
24@@ -25,7 +35,8 @@
25
26 With no test cases named on the command line, mysql-test-run falls back
27 to the normal "non-extern" behavior. The reason for this is that some
28-tests cannot run with an external server.
29+tests cannot run with an external server (because they need to control the
30+options with which the server is started).
31
32
33 You can create your own test cases. To create a test case, create a new
034
=== added file 'Percona-Server/packaging/rpm-uln/mysql-strmov.patch'
--- Percona-Server/packaging/rpm-uln/mysql-strmov.patch 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql-strmov.patch 2013-01-31 20:19:36 +0000
@@ -0,0 +1,32 @@
1Remove overly optimistic definition of strmov() as stpcpy().
2
3mysql uses this macro with overlapping source and destination strings,
4which is verboten per spec, and fails on some Red Hat platforms.
5Deleting the definition is sufficient to make it fall back to a
6byte-at-a-time copy loop, which should consistently give the
7expected behavior.
8
9Note: the particular case that prompted this patch is reported and fixed
10at http://bugs.mysql.com/bug.php?id=48864. However, my faith in upstream's
11ability to detect this type of error is low, and I also see little evidence
12of any real performance gain from optimizing these calls. So I'm keeping
13this patch.
14
15
16diff -Naur mysql-5.1.37.orig/include/m_string.h mysql-5.1.37/include/m_string.h
17--- mysql-5.1.37.orig/include/m_string.h 2009-07-13 19:08:50.000000000 -0400
18+++ mysql-5.1.37/include/m_string.h 2009-08-31 21:49:49.000000000 -0400
19@@ -81,13 +81,6 @@
20 extern void *(*my_str_malloc)(size_t);
21 extern void (*my_str_free)(void *);
22
23-#if defined(HAVE_STPCPY)
24-#define strmov(A,B) stpcpy((A),(B))
25-#ifndef stpcpy
26-extern char *stpcpy(char *, const char *); /* For AIX with gcc 2.95.3 */
27-#endif
28-#endif
29-
30 /* Declared in int2str() */
31 extern char NEAR _dig_vec_upper[];
32 extern char NEAR _dig_vec_lower[];
033
=== added file 'Percona-Server/packaging/rpm-uln/mysql.init'
--- Percona-Server/packaging/rpm-uln/mysql.init 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql.init 2013-01-31 20:19:36 +0000
@@ -0,0 +1,209 @@
1#!/bin/sh
2#
3# mysqld This shell script takes care of starting and stopping
4# the MySQL subsystem (mysqld).
5#
6# chkconfig: - 64 36
7# description: MySQL database server.
8# processname: mysqld
9# config: /etc/my.cnf
10# pidfile: /var/run/mysqld/mysqld.pid
11
12# Source function library.
13. /etc/rc.d/init.d/functions
14
15# Source networking configuration.
16. /etc/sysconfig/network
17
18
19exec="/usr/bin/mysqld_safe"
20prog="mysqld"
21
22# Set timeouts here so they can be overridden from /etc/sysconfig/mysqld
23STARTTIMEOUT=120
24STOPTIMEOUT=60
25
26[ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
27
28lockfile=/var/lock/subsys/$prog
29
30
31# extract value of a MySQL option from config files
32# Usage: get_mysql_option SECTION VARNAME DEFAULT
33# result is returned in $result
34# We use my_print_defaults which prints all options from multiple files,
35# with the more specific ones later; hence take the last match.
36get_mysql_option(){
37 result=`/usr/bin/my_print_defaults "$1" | sed -n "s/^--$2=//p" | tail -n 1`
38 if [ -z "$result" ]; then
39 # not found, use default
40 result="$3"
41 fi
42}
43
44get_mysql_option mysqld datadir "/var/lib/mysql"
45datadir="$result"
46get_mysql_option mysqld socket "$datadir/mysql.sock"
47socketfile="$result"
48get_mysql_option mysqld_safe log-error "/var/log/mysqld.log"
49errlogfile="$result"
50get_mysql_option mysqld_safe pid-file "/var/run/mysqld/mysqld.pid"
51mypidfile="$result"
52
53
54start(){
55 [ -x $exec ] || exit 5
56 # check to see if it's already running
57 RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1`
58 if [ $? = 0 ]; then
59 # already running, do nothing
60 action $"Starting $prog: " /bin/true
61 ret=0
62 elif echo "$RESPONSE" | grep -q "Access denied for user"
63 then
64 # already running, do nothing
65 action $"Starting $prog: " /bin/true
66 ret=0
67 else
68 # prepare for start
69 touch "$errlogfile"
70 chown mysql:mysql "$errlogfile"
71 chmod 0640 "$errlogfile"
72 [ -x /sbin/restorecon ] && /sbin/restorecon "$errlogfile"
73 if [ ! -d "$datadir/mysql" ] ; then
74 # First, make sure $datadir is there with correct permissions
75 if [ ! -e "$datadir" -a ! -h "$datadir" ]
76 then
77 mkdir -p "$datadir" || exit 1
78 fi
79 chown mysql:mysql "$datadir"
80 chmod 0755 "$datadir"
81 [ -x /sbin/restorecon ] && /sbin/restorecon "$datadir"
82 # Now create the database
83 action $"Initializing MySQL database: " /usr/bin/mysql_install_db --datadir="$datadir" --user=mysql
84 ret=$?
85 chown -R mysql:mysql "$datadir"
86 if [ $ret -ne 0 ] ; then
87 return $ret
88 fi
89 fi
90 chown mysql:mysql "$datadir"
91 chmod 0755 "$datadir"
92 # Pass all the options determined above, to ensure consistent behavior.
93 # In many cases mysqld_safe would arrive at the same conclusions anyway
94 # but we need to be sure. (An exception is that we don't force the
95 # log-error setting, since this script doesn't really depend on that,
96 # and some users might prefer to configure logging to syslog.)
97 # Note: set --basedir to prevent probes that might trigger SELinux
98 # alarms, per bug #547485
99 $exec --datadir="$datadir" --socket="$socketfile" \
100 --pid-file="$mypidfile" \
101 --basedir=/usr --user=mysql >/dev/null 2>&1 &
102 safe_pid=$!
103 # Spin for a maximum of N seconds waiting for the server to come up;
104 # exit the loop immediately if mysqld_safe process disappears.
105 # Rather than assuming we know a valid username, accept an "access
106 # denied" response as meaning the server is functioning.
107 ret=0
108 TIMEOUT="$STARTTIMEOUT"
109 while [ $TIMEOUT -gt 0 ]; do
110 RESPONSE=`/usr/bin/mysqladmin --socket="$socketfile" --user=UNKNOWN_MYSQL_USER ping 2>&1` && break
111 echo "$RESPONSE" | grep -q "Access denied for user" && break
112 if ! /bin/kill -0 $safe_pid 2>/dev/null; then
113 echo "MySQL Daemon failed to start."
114 ret=1
115 break
116 fi
117 sleep 1
118 let TIMEOUT=${TIMEOUT}-1
119 done
120 if [ $TIMEOUT -eq 0 ]; then
121 echo "Timeout error occurred trying to start MySQL Daemon."
122 ret=1
123 fi
124 if [ $ret -eq 0 ]; then
125 action $"Starting $prog: " /bin/true
126 touch $lockfile
127 else
128 action $"Starting $prog: " /bin/false
129 fi
130 fi
131 return $ret
132}
133
134stop(){
135 if [ ! -f "$mypidfile" ]; then
136 # not running; per LSB standards this is "ok"
137 action $"Stopping $prog: " /bin/true
138 return 0
139 fi
140 MYSQLPID=`cat "$mypidfile"`
141 if [ -n "$MYSQLPID" ]; then
142 /bin/kill "$MYSQLPID" >/dev/null 2>&1
143 ret=$?
144 if [ $ret -eq 0 ]; then
145 TIMEOUT="$STOPTIMEOUT"
146 while [ $TIMEOUT -gt 0 ]; do
147 /bin/kill -0 "$MYSQLPID" >/dev/null 2>&1 || break
148 sleep 1
149 let TIMEOUT=${TIMEOUT}-1
150 done
151 if [ $TIMEOUT -eq 0 ]; then
152 echo "Timeout error occurred trying to stop MySQL Daemon."
153 ret=1
154 action $"Stopping $prog: " /bin/false
155 else
156 rm -f $lockfile
157 rm -f "$socketfile"
158 action $"Stopping $prog: " /bin/true
159 fi
160 else
161 action $"Stopping $prog: " /bin/false
162 fi
163 else
164 # failed to read pidfile, probably insufficient permissions
165 action $"Stopping $prog: " /bin/false
166 ret=4
167 fi
168 return $ret
169}
170
171restart(){
172 stop
173 start
174}
175
176condrestart(){
177 [ -e $lockfile ] && restart || :
178}
179
180
181# See how we were called.
182case "$1" in
183 start)
184 start
185 ;;
186 stop)
187 stop
188 ;;
189 status)
190 status -p "$mypidfile" $prog
191 ;;
192 restart)
193 restart
194 ;;
195 condrestart|try-restart)
196 condrestart
197 ;;
198 reload)
199 exit 3
200 ;;
201 force-reload)
202 restart
203 ;;
204 *)
205 echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
206 exit 2
207esac
208
209exit $?
0210
=== added file 'Percona-Server/packaging/rpm-uln/mysql.spec.sh'
--- Percona-Server/packaging/rpm-uln/mysql.spec.sh 1970-01-01 00:00:00 +0000
+++ Percona-Server/packaging/rpm-uln/mysql.spec.sh 2013-01-31 20:19:36 +0000
@@ -0,0 +1,1959 @@
1#
2# This file was modified by Oracle in 2011 and later.
3# Details of the modifications are described in the "changelog" section.
4#
5# Modifications copyright (c) 2011, 2012, Oracle and/or its
6# affiliates. All rights reserved.
7#
8# This program is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; version 2 of the License.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with this program; see the file COPYING. If not, write to the
19# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston
20# MA 02110-1301 USA.
21
22##############################################################################
23# Some common macro definitions
24##############################################################################
25
26# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
27# change these, has to be exactly as is.
28# %define mysql_old_vendor MySQL AB # Applies to traditional MySQL RPMs only.
29# %define mysql_vendor_2 Sun Microsystems, Inc.
30%define mysql_vendor Oracle and/or its affiliates
31
32%define mysql_version @VERSION@
33
34%define mysqldatadir /var/lib/mysql
35
36%define release 1
37
38##############################################################################
39# Command line handling
40##############################################################################
41#
42# To set options:
43#
44# $ rpmbuild --define="option <x>" ...
45#
46
47# ----------------------------------------------------------------------------
48# Commercial builds
49# ----------------------------------------------------------------------------
50%if %{undefined commercial}
51%define commercial 0
52%endif
53
54# ----------------------------------------------------------------------------
55# Source name
56# ----------------------------------------------------------------------------
57%if %{undefined src_base}
58%define src_base mysql
59%endif
60%define src_dir %{src_base}-%{mysql_version}
61
62# ----------------------------------------------------------------------------
63# Feature set (storage engines, options). Default to community (everything)
64# ----------------------------------------------------------------------------
65%if %{undefined feature_set}
66%define feature_set community
67%endif
68
69# ----------------------------------------------------------------------------
70# Server comment strings
71# ----------------------------------------------------------------------------
72%if %{undefined compilation_comment_debug}
73%define compilation_comment_debug MySQL Community Server - Debug (GPL)
74%endif
75%if %{undefined compilation_comment_release}
76%define compilation_comment_release MySQL Community Server (GPL)
77%endif
78
79# ----------------------------------------------------------------------------
80# Product and server suffixes
81# ----------------------------------------------------------------------------
82%if %{undefined product_suffix}
83 %if %{defined short_product_tag}
84 %define product_suffix -%{short_product_tag}
85 %else
86 %define product_suffix %{nil}
87 %endif
88%endif
89
90%if %{undefined server_suffix}
91%define server_suffix %{nil}
92%endif
93
94# ----------------------------------------------------------------------------
95# Distribution support
96# ----------------------------------------------------------------------------
97%if %{undefined distro_specific}
98%define distro_specific 0
99%endif
100%if %{distro_specific}
101 %if %(test -f /etc/oracle-release && echo 1 || echo 0)
102 %define elver %(rpm -qf --qf '%%{version}\\n' /etc/oracle-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
103 %if "%elver" == "6"
104 %define distro_description Oracle Linux 6
105 %define distro_releasetag el6
106 %define distro_buildreq gcc-c++ ncurses-devel perl readline-devel time zlib-devel
107 %define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
108 %else
109 %{error:Oracle Linux %{elver} is unsupported}
110 %endif
111 %else
112 %if %(test -f /etc/redhat-release && echo 1 || echo 0)
113 %define rhelver %(rpm -qf --qf '%%{version}\\n' /etc/redhat-release | sed -e 's/^\\([0-9]*\\).*/\\1/g')
114 %if "%rhelver" == "5"
115 %define distro_description Red Hat Enterprise Linux 5
116 %define distro_releasetag rhel5
117 %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
118 %define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
119 %else
120 %if "%rhelver" == "6"
121 %define distro_description Red Hat Enterprise Linux 6
122 %define distro_releasetag rhel6
123 %define distro_buildreq gcc-c++ ncurses-devel perl readline-devel time zlib-devel
124 %define distro_requires chkconfig coreutils grep procps shadow-utils net-tools
125 %else
126 %{error:Red Hat Enterprise Linux %{rhelver} is unsupported}
127 %endif
128 %endif
129 %else
130 %if %(test -f /etc/SuSE-release && echo 1 || echo 0)
131 %define susever %(rpm -qf --qf '%%{version}\\n' /etc/SuSE-release | cut -d. -f1)
132 %if "%susever" == "10"
133 %define distro_description SUSE Linux Enterprise Server 10
134 %define distro_releasetag sles10
135 %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client readline-devel zlib-devel
136 %define distro_requires aaa_base coreutils grep procps pwdutils
137 %else
138 %if "%susever" == "11"
139 %define distro_description SUSE Linux Enterprise Server 11
140 %define distro_releasetag sles11
141 %define distro_buildreq gcc-c++ gdbm-devel gperf ncurses-devel openldap2-client procps pwdutils readline-devel zlib-devel
142 %define distro_requires aaa_base coreutils grep procps pwdutils
143 %else
144 %{error:SuSE %{susever} is unsupported}
145 %endif
146 %endif
147 %else
148 %{error:Unsupported distribution}
149 %endif
150 %endif
151 %endif
152%else
153 %define generic_kernel %(uname -r | cut -d. -f1-2)
154 %define distro_description Generic Linux (kernel %{generic_kernel})
155 %define distro_releasetag linux%{generic_kernel}
156 %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel
157 %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd
158%endif
159
160# Avoid debuginfo RPMs, leaves binaries unstripped
161%define debug_package %{nil}
162
163# Hack to work around bug in RHEL5 __os_install_post macro, wrong inverted
164# test for __debug_package
165%define __strip /bin/true
166
167# ----------------------------------------------------------------------------
168# Support optional "tcmalloc" library (experimental)
169# ----------------------------------------------------------------------------
170%if %{defined malloc_lib_target}
171%define WITH_TCMALLOC 1
172%else
173%define WITH_TCMALLOC 0
174%endif
175
176##############################################################################
177# Configuration based upon above user input, not to be set directly
178##############################################################################
179
180%if %{commercial}
181%define license_files_server %{src_dir}/LICENSE.mysql
182%define license_type Commercial
183%else
184%define license_files_server %{src_dir}/COPYING %{src_dir}/README
185%define license_type GPL
186%endif
187
188##############################################################################
189# Main spec file section
190##############################################################################
191
192Name: mysql%{product_suffix}
193Summary: MySQL client programs and shared libraries
194Group: Applications/Databases
195Version: @MYSQL_RPM_VERSION@
196Release: %{release}%{?distro_releasetag:.%{distro_releasetag}}
197# exceptions allow client libraries to be linked with most open source SW,
198# not only GPL code.
199License: Copyright (c) 2000, @MYSQL_COPYRIGHT_YEAR@, %{mysql_vendor}. All rights reserved. Under %{license_type} license as shown in the Description field.
200URL: http://www.mysql.com/
201Packager: MySQL Release Engineering <mysql-build@oss.oracle.com>
202Vendor: %{mysql_vendor}
203
204# Regression tests may take a long time, override the default to skip them
205%{!?runselftest:%global runselftest 1}
206
207# Upstream has a mirror redirector for downloads, so the URL is hard to
208# represent statically. You can get the tarball by following a link from
209# http://dev.mysql.com/downloads/mysql/
210Source0: %{src_dir}.tar.gz
211# The upstream tarball includes non-free documentation that only the
212# copyright holder (MySQL -> Sun -> Oracle) may ship.
213# To remove the non-free documentation, run this script after downloading
214# the tarball into the current directory:
215# ./generate-tarball.sh $VERSION
216# Then, source name changes:
217# Source0: mysql-%{version}-nodocs.tar.gz
218%if %{commercial}
219NoSource: 0
220%endif
221Source1: generate-tarball.sh
222Source2: mysql.init
223Source3: my.cnf
224Source4: scriptstub.c
225Source5: my_config.h
226# The below is only needed for packages built outside MySQL -> Sun -> Oracle:
227Source6: README.mysql-docs
228Source9: mysql-embedded-check.c
229# Working around perl dependency checking bug in rpm FTTB. Remove later.
230Source999: filter-requires-mysql.sh
231
232# Patch1: mysql-ssl-multilib.patch Not needed by MySQL (yaSSL), will not work in 5.5 (cmake)
233Patch2: mysql-5.5-errno.patch
234Patch4: mysql-5.5-testing.patch
235Patch5: mysql-install-test.patch
236Patch6: mysql-5.5-stack-guard.patch
237# Patch7: mysql-disable-test.patch Already fixed in current 5.1
238# Patch8: mysql-setschedparam.patch Will not work in 5.5 (cmake)
239# Patch9: mysql-no-docs.patch Will not work in 5.5 (cmake)
240Patch10: mysql-strmov.patch
241 # Not used by MySQL
242# Patch12: mysql-cve-2008-7247.patch Already fixed in 5.5
243Patch13: mysql-expired-certs.patch
244 # Will not be used by MySQL
245# Patch14: mysql-missing-string-code.patch Undecided, will not work in 5.5 (cmake)
246# Patch15: mysql-lowercase-bug.patch Fixed in MySQL 5.1.54 and 5.5.9
247Patch16: mysql-chain-certs.patch
248Patch17: mysql-5.5-libdir.patch
249Patch18: mysql-5.5-fix-tests.patch
250Patch19: mysql-5.5-mtr1.patch
251
252BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
253BuildRequires: %{distro_buildreq}
254BuildRequires: gawk
255# make test requires time and ps
256BuildRequires: procps
257# Socket and Time::HiRes are needed to run regression tests
258BuildRequires: perl(Socket), perl(Time::HiRes)
259
260Requires: %{distro_requires}
261Requires: fileutils
262Requires: mysql-libs%{product_suffix} = %{version}-%{release}
263Requires: bash
264
265# If %%{product_suffix} is non-empty, the auto-generated capability is insufficient:
266# We want all dependency handling to use the generic name only.
267# Similar in other sub-packages
268Provides: mysql
269
270# MySQL (with caps) is upstream's spelling of their own RPMs for mysql
271Conflicts: MySQL
272# mysql-cluster used to be built from this SRPM, but no more
273Obsoletes: mysql-cluster < 5.1.44
274# We need cross-product "Obsoletes:" to allow cross-product upgrades:
275Obsoletes: mysql mysql-advanced
276
277# Working around perl dependency checking bug in rpm FTTB. Remove later.
278%global __perl_requires %{SOURCE999}
279
280%description -n mysql%{product_suffix}
281MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
282client/server implementation consisting of a server daemon (mysqld)
283and many different client programs and libraries. The base package
284contains the standard MySQL client programs and generic MySQL files.
285
286The MySQL software has Dual Licensing, which means you can use the MySQL
287software free of charge under the GNU General Public License
288(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
289licenses from %{mysql_vendor} if you do not wish to be bound by the terms of
290the GPL. See the chapter "Licensing and Support" in the manual for
291further info.
292
293%package -n mysql-libs%{product_suffix}
294
295Summary: The shared libraries required for MySQL clients
296Group: Applications/Databases
297Requires: /sbin/ldconfig
298Provides: mysql-libs
299Obsoletes: mysql-libs mysql-libs-advanced
300
301%description -n mysql-libs%{product_suffix}
302The mysql-libs package provides the essential shared libraries for any
303MySQL client program or interface. You will need to install this package
304to use any other MySQL package or any clients that need to connect to a
305MySQL server.
306
307%package -n mysql-server%{product_suffix}
308
309Summary: The MySQL server and related files
310Group: Applications/Databases
311Requires: mysql%{product_suffix} = %{version}-%{release}
312Requires: sh-utils
313Requires(pre): /usr/sbin/useradd
314Requires(post): chkconfig
315Requires(preun): chkconfig
316# This is for /sbin/service
317Requires(preun): initscripts
318Requires(postun): initscripts
319# mysqlhotcopy needs DBI/DBD support
320Requires: perl-DBI, perl-DBD-MySQL
321Provides: mysql-server
322Conflicts: MySQL-server
323Obsoletes: mysql-server mysql-server-advanced
324
325%description -n mysql-server%{product_suffix}
326MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
327client/server implementation consisting of a server daemon (mysqld)
328and many different client programs and libraries. This package contains
329the MySQL server and some accompanying files and directories.
330
331%package -n mysql-devel%{product_suffix}
332
333Summary: Files for development of MySQL applications
334Group: Applications/Databases
335Requires: mysql%{product_suffix} = %{version}-%{release}
336Requires: openssl-devel
337Provides: mysql-devel
338Conflicts: MySQL-devel
339Obsoletes: mysql-devel mysql-devel-advanced
340
341%description -n mysql-devel%{product_suffix}
342MySQL is a multi-user, multi-threaded SQL database server. This
343package contains the libraries and header files that are needed for
344developing MySQL client applications.
345
346%package -n mysql-embedded%{product_suffix}
347
348Summary: MySQL as an embeddable library
349Group: Applications/Databases
350Provides: mysql-embedded
351Obsoletes: mysql-embedded mysql-embedded-advanced
352
353%description -n mysql-embedded%{product_suffix}
354MySQL is a multi-user, multi-threaded SQL database server. This
355package contains a version of the MySQL server that can be embedded
356into a client application instead of running as a separate process,
357as well as a command line client with such an embedded server.
358
359%package -n mysql-embedded-devel%{product_suffix}
360
361Summary: Development files for MySQL as an embeddable library
362Group: Applications/Databases
363Requires: mysql-embedded%{product_suffix} = %{version}-%{release}
364Requires: mysql-devel%{product_suffix} = %{version}-%{release}
365Provides: mysql-embedded-devel
366Obsoletes: mysql-embedded-devel mysql-embedded-devel-advanced
367
368%description -n mysql-embedded-devel%{product_suffix}
369MySQL is a multi-user, multi-threaded SQL database server. This
370package contains files needed for developing and testing with
371the embedded version of the MySQL server.
372
373%package -n mysql-test%{product_suffix}
374
375Summary: The test suite distributed with MySQL
376Group: Applications/Databases
377Requires: mysql%{product_suffix} = %{version}-%{release}
378Requires: mysql-server%{product_suffix} = %{version}-%{release}
379Provides: mysql-test
380Conflicts: MySQL-test
381Obsoletes: mysql-test mysql-test-advanced
382
383%description -n mysql-test%{product_suffix}
384MySQL is a multi-user, multi-threaded SQL database server. This
385package contains the regression test suite distributed with
386the MySQL sources.
387
388%prep
389%setup -T -a 0 -c -n %{src_dir}
390
391cd %{src_dir} # read about "%setup -n"
392# %patch1 -p1
393%patch2 -p1
394# %patch4 -p1 TODO / FIXME: if wanted, needs to be adapted to new mysql-test-run setup
395%patch5 -p1
396%patch6 -p1
397# %patch8 -p1
398# %patch9 -p1
399# %patch10 -p1
400# %patch13 -p1
401# %patch14 -p1
402%patch16 -p1
403%patch17 -p1
404%patch18 -p1
405%patch19 -p1
406
407# workaround for upstream bug #56342
408rm -f mysql-test/t/ssl_8k_key-master.opt
409
410%build
411
412# Fail quickly and obviously if user tries to build as root
413%if %runselftest
414 if [ x"`id -u`" = x0 ]; then
415 echo "The MySQL regression tests may fail if run as root."
416 echo "If you really need to build the RPM as root, use"
417 echo "--define='runselftest 0' to skip the regression tests."
418 exit 1
419 fi
420%endif
421
422# Be strict about variables, bail at earliest opportunity, etc.
423set -eu
424
425# Optional package files
426touch optional-files-devel
427
428#
429# Set environment in order of preference, MYSQL_BUILD_* first, then variable
430# name, finally a default. RPM_OPT_FLAGS is assumed to be a part of the
431# default RPM build environment.
432#
433# We set CXX=gcc by default to support so-called 'generic' binaries, where we
434# do not have a dependancy on libgcc/libstdc++. This only works while we do
435# not require C++ features such as exceptions, and may need to be removed at
436# a later date.
437#
438
439# This is a hack, $RPM_OPT_FLAGS on ia64 hosts contains flags which break
440# the compile in cmd-line-utils/readline - needs investigation, but for now
441# we simply unset it and use those specified directly in cmake.
442%if "%{_arch}" == "ia64"
443RPM_OPT_FLAGS=
444%endif
445
446# This goes in sync with Patch19. "rm" is faster than "patch" for this.
447rm -rf %{src_dir}/mysql-test/lib/v1
448
449export PATH=${MYSQL_BUILD_PATH:-$PATH}
450export CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
451export CXX=${MYSQL_BUILD_CXX:-${CXX:-gcc}}
452export CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
453# Following "%ifarch" developed by RedHat, MySQL/Oracle does not support/maintain Linux/Sparc:
454# gcc seems to have some bugs on sparc as of 4.4.1, back off optimization
455# submitted as bz #529298
456%ifarch sparc sparcv9 sparc64
457CFLAGS=`echo $CFLAGS| sed -e "s|-O2|-O1|g" `
458%endif
459export CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-${CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-exceptions -fno-rtti}}
460export LDFLAGS=${MYSQL_BUILD_LDFLAGS:-${LDFLAGS:-}}
461export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
462export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-%{?_smp_mflags}}
463
464# Build debug mysqld and libmysqld.a
465mkdir debug
466(
467 cd debug
468 # Attempt to remove any optimisation flags from the debug build
469 CFLAGS=`echo " ${CFLAGS} " | \
470 sed -e 's/ -O[0-9]* / /' \
471 -e 's/ -unroll2 / /' \
472 -e 's/ -ip / /' \
473 -e 's/^ //' \
474 -e 's/ $//'`
475 CXXFLAGS=`echo " ${CXXFLAGS} " | \
476 sed -e 's/ -O[0-9]* / /' \
477 -e 's/ -unroll2 / /' \
478 -e 's/ -ip / /' \
479 -e 's/^ //' \
480 -e 's/ $//'`
481 # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
482 # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
483 ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
484 -DCMAKE_BUILD_TYPE=Debug \
485 -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
486 -DFEATURE_SET="%{feature_set}" \
487 -DCOMPILATION_COMMENT="%{compilation_comment_debug}" \
488 -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
489 echo BEGIN_DEBUG_CONFIG ; egrep '^#define' include/config.h ; echo END_DEBUG_CONFIG
490 make ${MAKE_JFLAG} VERBOSE=1
491)
492# Build full release
493mkdir release
494(
495 cd release
496 # XXX: MYSQL_UNIX_ADDR should be in cmake/* but mysql_version is included before
497 # XXX: install_layout so we can't just set it based on INSTALL_LAYOUT=RPM
498 ${CMAKE} ../%{src_dir} -DBUILD_CONFIG=mysql_release -DINSTALL_LAYOUT=RPM \
499 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
500 -DMYSQL_UNIX_ADDR="%{mysqldatadir}/mysql.sock" \
501 -DFEATURE_SET="%{feature_set}" \
502 -DCOMPILATION_COMMENT="%{compilation_comment_release}" \
503 -DMYSQL_SERVER_SUFFIX="%{server_suffix}"
504 echo BEGIN_NORMAL_CONFIG ; egrep '^#define' include/config.h ; echo END_NORMAL_CONFIG
505 make ${MAKE_JFLAG} VERBOSE=1
506)
507
508# TODO / FIXME: Do we need "scriptstub"?
509gcc $CFLAGS $LDFLAGS -o scriptstub "-DLIBDIR=\"%{_libdir}/mysql\"" %{SOURCE4}
510
511# TODO / FIXME: "libmysqld.so" should have been produced above - WORK in PROGRESS
512# regular build will make libmysqld.a but not libmysqld.so :-(
513cd release
514mkdir libmysqld/work
515cd libmysqld/work
516ar -x ../libmysqld.a
517rm rpl_utility.cc.o sql_binlog.cc.o # Try-and-Error: These modules cause unresolved references
518gcc $CFLAGS $LDFLAGS -shared -Wl,-soname,libmysqld.so.0 -o libmysqld.so.0.0.1 \
519 *.o \
520 -lpthread -lcrypt -laio -lnsl -lssl -lcrypto -lz -lrt -lstdc++ -lm -lc
521# this is to check that we built a complete library
522cp %{SOURCE9} .
523ln -s libmysqld.so.0.0.1 libmysqld.so.0
524gcc -I../../include -I../../../%{src_dir}/include $CFLAGS mysql-embedded-check.c libmysqld.so.0
525LD_LIBRARY_PATH=. ldd ./a.out
526cd ../..
527cd ..
528
529# TODO / FIXME: autotools only?
530# make check
531
532# TODO / FIXME: Test suite is run elsewhere in release builds -
533# do we need this for users who want to build from source?
534# Also, check whether MTR_BUILD_THREAD=auto would solve all issues
535%if %runselftest
536 # hack to let 32- and 64-bit tests run concurrently on same build machine
537 case `uname -m` in
538 ppc64 | s390x | x86_64 | sparc64 )
539 MTR_BUILD_THREAD=7
540 ;;
541 *)
542 MTR_BUILD_THREAD=11
543 ;;
544 esac
545 export MTR_BUILD_THREAD
546
547 # if you want to change which tests are run, look at mysql-5.5-testing.patch too.
548 (cd release && make test-bt-fast )
549%endif
550
551%install
552RBR=$RPM_BUILD_ROOT
553MBD=$RPM_BUILD_DIR/%{src_dir}
554[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
555
556# Ensure that needed directories exists
557# TODO / FIXME: needed ? install -d $RBR%{mysqldatadir}/mysql
558# TODO / FIXME: needed ? install -d $RBR%{_datadir}/mysql-test
559# TODO / FIXME: needed ? install -d $RBR%{_datadir}/mysql/SELinux/RHEL4
560# TODO / FIXME: needed ? install -d $RBR%{_includedir}
561# TODO / FIXME: needed ? install -d $RBR%{_libdir}
562# TODO / FIXME: needed ? install -d $RBR%{_mandir}
563# TODO / FIXME: needed ? install -d $RBR%{_sbindir}
564
565# Install all binaries
566(
567 cd $MBD/release
568 make DESTDIR=$RBR install
569)
570
571# For gcc builds, include libgcc.a in the devel subpackage (BUG 4921). Do
572# this in a sub-shell to ensure we don't pollute the install environment
573# with compiler bits.
574(
575 PATH=${MYSQL_BUILD_PATH:-$PATH}
576 CC=${MYSQL_BUILD_CC:-${CC:-gcc}}
577 CFLAGS=${MYSQL_BUILD_CFLAGS:-${CFLAGS:-$RPM_OPT_FLAGS}}
578 if "${CC}" -v 2>&1 | grep '^gcc.version' >/dev/null 2>&1; then
579 libgcc=`${CC} ${CFLAGS} --print-libgcc-file`
580 if [ -f ${libgcc} ]; then
581 mkdir -p $RBR%{_libdir}/mysql
582 install -m 644 ${libgcc} $RBR%{_libdir}/mysql/libmygcc.a
583 echo "%{_libdir}/mysql/libmygcc.a" >>optional-files-devel
584 fi
585 fi
586)
587
588# multilib header hacks
589# we only apply this to known Red Hat multilib arches, per bug #181335
590case `uname -i` in
591 i386 | x86_64 | ppc | ppc64 | s390 | s390x | sparc | sparc64 )
592 mv $RPM_BUILD_ROOT/usr/include/mysql/my_config.h $RPM_BUILD_ROOT/usr/include/mysql/my_config_`uname -i`.h
593 install -m 644 %{SOURCE5} $RPM_BUILD_ROOT/usr/include/mysql/
594 ;;
595 *)
596 ;;
597esac
598
599mkdir -p $RPM_BUILD_ROOT/var/log
600touch $RPM_BUILD_ROOT/var/log/mysqld.log
601
602# List the installed tree for RPM package maintenance purposes.
603find $RPM_BUILD_ROOT -print | sed "s|^$RPM_BUILD_ROOT||" | sort > ROOTFILES
604
605mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
606mkdir -p $RPM_BUILD_ROOT/var/run/mysqld
607install -m 0755 -d $RPM_BUILD_ROOT/var/lib/mysql
608install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/mysqld
609install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT/etc/my.cnf
610# obsolete: mv $RPM_BUILD_ROOT/usr/sql-bench $RPM_BUILD_ROOT%{_datadir}/sql-bench # 'sql-bench' is dropped
611# obsolete: mv $RPM_BUILD_ROOT/usr/mysql-test $RPM_BUILD_ROOT%{_datadir}/mysql-test # 'mysql-test' is there already
612# 5.1.32 forgets to install the mysql-test README file
613# obsolete: install -m 0644 mysql-test/README $RPM_BUILD_ROOT%{_datadir}/mysql-test/README # 'README' is there already
614
615mv ${RPM_BUILD_ROOT}%{_bindir}/mysqlbug ${RPM_BUILD_ROOT}%{_libdir}/mysql/mysqlbug
616install -m 0755 scriptstub ${RPM_BUILD_ROOT}%{_bindir}/mysqlbug
617mv ${RPM_BUILD_ROOT}%{_bindir}/mysql_config ${RPM_BUILD_ROOT}%{_libdir}/mysql/mysql_config
618install -m 0755 scriptstub ${RPM_BUILD_ROOT}%{_bindir}/mysql_config
619
620rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.a
621install -m 0755 release/libmysqld/work/libmysqld.so.0.0.1 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so.0.0.1
622ln -s libmysqld.so.0.0.1 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so.0
623ln -s libmysqld.so.0 ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqld.so
624
625rm -f ${RPM_BUILD_ROOT}%{_bindir}/comp_err
626rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/comp_err.1*
627rm -f ${RPM_BUILD_ROOT}%{_bindir}/make_win_binary_distribution
628rm -f ${RPM_BUILD_ROOT}%{_bindir}/make_win_src_distribution
629rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/make_win_bin_dist.1*
630rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/make_win_src_distribution.1*
631rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/libmysqlclient*.la
632rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/*.a
633rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/plugin/*.la
634rm -f ${RPM_BUILD_ROOT}%{_libdir}/mysql/plugin/*.a
635rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/binary-configure
636rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/make_binary_distribution
637rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/make_sharedlib_distribution
638rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mi_test_all*
639rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/ndb-config-2-node.ini
640rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql.server
641rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysqld_multi.server
642rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/MySQL-shared-compat.spec
643rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/*.plist
644rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/preinstall
645rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/postinstall
646rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql-*.spec
647rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/mysql-log-rotate
648rm -f ${RPM_BUILD_ROOT}%{_datadir}/mysql/ChangeLog
649rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-stress-test.pl.1*
650rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mysql-test-run.pl.1*
651
652mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
653echo "%{_libdir}/mysql" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
654
655# The below *only* applies to builds not done by MySQL / Sun / Oracle:
656# copy additional docs into build tree so %%doc will find them
657# cp %{SOURCE6} README.mysql-docs
658
659%clean
660[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
661
662%pre -n mysql-server%{product_suffix}
663
664# Check if we can safely upgrade. An upgrade is only safe if it's from one
665# of our RPMs in the same version family.
666
667# Handle both ways of spelling the capability.
668installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
669if [ $? -ne 0 -o -z "$installed" ]; then
670 installed=`rpm -q --whatprovides MySQL-server 2> /dev/null`
671fi
672if [ $? -eq 0 -a -n "$installed" ]; then
673 installed=`echo $installed | sed 's/\([^ ]*\) .*/\1/'` # Tests have shown duplicated package names
674 vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
675 version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
676 myvendor='%{mysql_vendor}'
677 myversion='%{mysql_version}'
678
679 old_family=`echo $version \
680 | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
681 new_family=`echo $myversion \
682 | sed -n -e 's,^\([1-9][0-9]*\.[0-9][0-9]*\)\..*$,\1,p'`
683
684 [ -z "$vendor" ] && vendor='<unknown>'
685 [ -z "$old_family" ] && old_family="<unrecognized version $version>"
686 [ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
687
688 error_text=
689 if [ "$vendor" != "$myvendor" ]; then
690 error_text="$error_text
691The current MySQL server package is provided by a different
692vendor ($vendor) than $myvendor.
693Some files may be installed to different locations, including log
694files and the service startup script in %{_sysconfdir}/init.d/.
695"
696 fi
697
698 if [ "$old_family" != "$new_family" ]; then
699 error_text="$error_text
700Upgrading directly from MySQL $old_family to MySQL $new_family may not
701be safe in all cases. A manual dump and restore using mysqldump is
702recommended. It is important to review the MySQL manual's Upgrading
703section for version-specific incompatibilities.
704"
705 fi
706
707 if [ -n "$error_text" ]; then
708 cat <<HERE >&2
709
710******************************************************************
711A MySQL server package ($installed) is installed.
712$error_text
713A manual upgrade is required.
714
715- Ensure that you have a complete, working backup of your data and my.cnf
716 files
717- Shut down the MySQL server cleanly
718- Remove the existing MySQL packages. Usually this command will
719 list the packages you should remove:
720 rpm -qa | grep -i '^mysql-'
721
722 You may choose to use 'rpm --nodeps -ev <package-name>' to remove
723 the package which contains the mysqlclient shared library. The
724 library will be reinstalled by the MySQL-shared-compat package.
725- Install the new MySQL packages supplied by $myvendor
726- Ensure that the MySQL server is started
727- Run the 'mysql_upgrade' program
728
729This is a brief description of the upgrade process. Important details
730can be found in the MySQL manual, in the Upgrading section.
731******************************************************************
732HERE
733 exit 1
734 fi
735fi
736
737/usr/sbin/groupadd -g 27 -o -r mysql >/dev/null 2>&1 || :
738/usr/sbin/useradd -M -N -g mysql -o -r -d /var/lib/mysql -s /bin/bash \
739 -c "MySQL Server" -u 27 mysql >/dev/null 2>&1 || :
740
741%post -n mysql-libs%{product_suffix}
742/sbin/ldconfig
743
744%post -n mysql-server%{product_suffix}
745if [ $1 = 1 ]; then
746 /sbin/chkconfig --add mysqld
747fi
748/bin/chmod 0755 /var/lib/mysql
749/bin/touch /var/log/mysqld.log
750
751%preun -n mysql-server%{product_suffix}
752if [ $1 = 0 ]; then
753 /sbin/service mysqld stop >/dev/null 2>&1
754 /sbin/chkconfig --del mysqld
755fi
756
757%postun -n mysql-libs%{product_suffix}
758if [ $1 = 0 ] ; then
759 /sbin/ldconfig
760fi
761
762%postun -n mysql-server%{product_suffix}
763if [ $1 -ge 1 ]; then
764 /sbin/service mysqld condrestart >/dev/null 2>&1 || :
765fi
766
767
768%files -n mysql%{product_suffix}
769%defattr(-,root,root)
770%doc %{license_files_server}
771
772# The below file *only* applies to builds not done by MySQL / Sun / Oracle:
773# %doc README.mysql-docs
774
775%{_bindir}/msql2mysql
776%{_bindir}/mysql
777%{_bindir}/mysql_config
778%{_bindir}/mysql_find_rows
779%{_bindir}/mysql_waitpid
780%{_bindir}/mysqlaccess
781%{_bindir}/mysqlaccess.conf
782%{_bindir}/mysqladmin
783%{_bindir}/mysqlbinlog
784%{_bindir}/mysqlcheck
785%{_bindir}/mysqldump
786%{_bindir}/mysqlimport
787%{_bindir}/mysqlshow
788%{_bindir}/mysqlslap
789%{_bindir}/my_print_defaults
790
791%{_mandir}/man1/mysql.1*
792%{_mandir}/man1/mysql_config.1*
793%{_mandir}/man1/mysql_find_rows.1*
794%{_mandir}/man1/mysql_waitpid.1*
795%{_mandir}/man1/mysqlaccess.1*
796%{_mandir}/man1/mysqladmin.1*
797%{_mandir}/man1/mysqldump.1*
798%{_mandir}/man1/mysqlshow.1*
799%{_mandir}/man1/mysqlslap.1*
800%{_mandir}/man1/my_print_defaults.1*
801
802%{_libdir}/mysql/mysqlbug
803%{_libdir}/mysql/mysql_config
804
805%files -n mysql-libs%{product_suffix}
806%defattr(-,root,root)
807%doc %{license_files_server}
808# although the default my.cnf contains only server settings, we put it in the
809# libs package because it can be used for client settings too.
810%config(noreplace) /etc/my.cnf
811%dir %{_libdir}/mysql
812%{_libdir}/mysql/libmysqlclient*.so.*
813/etc/ld.so.conf.d/*
814
815%dir %{_datadir}/mysql
816%{_datadir}/mysql/english
817%lang(cs) %{_datadir}/mysql/czech
818%lang(da) %{_datadir}/mysql/danish
819%lang(nl) %{_datadir}/mysql/dutch
820%lang(et) %{_datadir}/mysql/estonian
821%lang(fr) %{_datadir}/mysql/french
822%lang(de) %{_datadir}/mysql/german
823%lang(el) %{_datadir}/mysql/greek
824%lang(hu) %{_datadir}/mysql/hungarian
825%lang(it) %{_datadir}/mysql/italian
826%lang(ja) %{_datadir}/mysql/japanese
827%lang(ko) %{_datadir}/mysql/korean
828%lang(no) %{_datadir}/mysql/norwegian
829%lang(no) %{_datadir}/mysql/norwegian-ny
830%lang(pl) %{_datadir}/mysql/polish
831%lang(pt) %{_datadir}/mysql/portuguese
832%lang(ro) %{_datadir}/mysql/romanian
833%lang(ru) %{_datadir}/mysql/russian
834%lang(sr) %{_datadir}/mysql/serbian
835%lang(sk) %{_datadir}/mysql/slovak
836%lang(es) %{_datadir}/mysql/spanish
837%lang(sv) %{_datadir}/mysql/swedish
838%lang(uk) %{_datadir}/mysql/ukrainian
839%{_datadir}/mysql/charsets
840
841%files -n mysql-server%{product_suffix} -f release/support-files/plugins.files
842%defattr(-,root,root)
843%doc release/support-files/*.cnf
844%doc %{_datadir}/info/mysql.info*
845%doc %{src_dir}/Docs/ChangeLog
846%doc %{src_dir}/Docs/INFO_SRC*
847%doc release/Docs/INFO_BIN*
848
849%{_bindir}/myisamchk
850%{_bindir}/myisam_ftdump
851%{_bindir}/myisamlog
852%{_bindir}/myisampack
853%{_bindir}/mysql_convert_table_format
854%{_bindir}/mysql_fix_extensions
855%{_bindir}/mysql_install_db
856%{_bindir}/mysql_plugin
857%{_bindir}/mysql_secure_installation
858%if %{commercial}
859%else
860%{_bindir}/mysql_setpermission
861%endif
862%{_bindir}/mysql_tzinfo_to_sql
863%{_bindir}/mysql_upgrade
864%{_bindir}/mysql_zap
865%{_bindir}/mysqlbug
866%{_bindir}/mysqldumpslow
867%{_bindir}/mysqld_multi
868%{_bindir}/mysqld_safe
869%{_bindir}/mysqlhotcopy
870%{_bindir}/mysqltest
871%{_bindir}/innochecksum
872%{_bindir}/perror
873%{_bindir}/replace
874%{_bindir}/resolve_stack_dump
875%{_bindir}/resolveip
876
877/usr/libexec/mysqld
878/usr/libexec/mysqld-debug
879%{_libdir}/mysql/plugin/daemon_example.ini
880
881%if %{WITH_TCMALLOC}
882%{_libdir}/mysql/%{malloc_lib_target}
883%endif
884
885# obsolete by "-f release/support-files/plugins.files" above
886# %{_libdir}/mysql/plugin
887
888%{_mandir}/man1/msql2mysql.1*
889%{_mandir}/man1/myisamchk.1*
890%{_mandir}/man1/myisamlog.1*
891%{_mandir}/man1/myisampack.1*
892%{_mandir}/man1/mysql_convert_table_format.1*
893%{_mandir}/man1/myisam_ftdump.1*
894%{_mandir}/man1/mysql.server.1*
895%{_mandir}/man1/mysql_fix_extensions.1*
896%{_mandir}/man1/mysql_install_db.1*
897%{_mandir}/man1/mysql_plugin.1*
898%{_mandir}/man1/mysql_secure_installation.1*
899%{_mandir}/man1/mysql_upgrade.1*
900%{_mandir}/man1/mysql_zap.1*
901%{_mandir}/man1/mysqlbug.1*
902%{_mandir}/man1/mysqldumpslow.1*
903%{_mandir}/man1/mysqlbinlog.1*
904%{_mandir}/man1/mysqlcheck.1*
905%{_mandir}/man1/mysqld_multi.1*
906%{_mandir}/man1/mysqld_safe.1*
907%{_mandir}/man1/mysqlhotcopy.1*
908%{_mandir}/man1/mysqlimport.1*
909%{_mandir}/man1/mysqlman.1*
910%if %{commercial}
911%else
912%{_mandir}/man1/mysql_setpermission.1*
913%endif
914%{_mandir}/man1/mysqltest.1*
915%{_mandir}/man1/innochecksum.1*
916%{_mandir}/man1/perror.1*
917%{_mandir}/man1/replace.1*
918%{_mandir}/man1/resolve_stack_dump.1*
919%{_mandir}/man1/resolveip.1*
920%{_mandir}/man1/mysql_tzinfo_to_sql.1*
921%{_mandir}/man8/mysqld.8*
922
923%{_datadir}/mysql/errmsg-utf8.txt
924%{_datadir}/mysql/fill_help_tables.sql
925%{_datadir}/mysql/magic
926%{_datadir}/mysql/mysql_system_tables.sql
927%{_datadir}/mysql/mysql_system_tables_data.sql
928%{_datadir}/mysql/mysql_test_data_timezone.sql
929%{_datadir}/mysql/my-*.cnf
930%{_datadir}/mysql/config.*.ini
931
932/etc/rc.d/init.d/mysqld
933%attr(0755,mysql,mysql) %dir /var/run/mysqld
934%attr(0755,mysql,mysql) %dir /var/lib/mysql
935%attr(0640,mysql,mysql) %config(noreplace) %verify(not md5 size mtime) /var/log/mysqld.log
936
937# TODO / FIXME: Do we need "libmygcc.a"? If yes, append "-f optional-files-devel"
938# and fix the "rm -f" list in the "install" section.
939%files -n mysql-devel%{product_suffix}
940%defattr(-,root,root)
941/usr/include/mysql
942/usr/share/aclocal/mysql.m4
943%{_libdir}/mysql/libmysqlclient*.so
944
945%files -n mysql-embedded%{product_suffix}
946%defattr(-,root,root)
947%doc %{license_files_server}
948%{_libdir}/mysql/libmysqld.so.*
949%{_bindir}/mysql_embedded
950
951%files -n mysql-embedded-devel%{product_suffix}
952%defattr(-,root,root)
953%{_libdir}/mysql/libmysqld.so
954%{_bindir}/mysql_client_test_embedded
955%{_bindir}/mysqltest_embedded
956%{_mandir}/man1/mysql_client_test_embedded.1*
957%{_mandir}/man1/mysqltest_embedded.1*
958
959%files -n mysql-test%{product_suffix}
960%defattr(-,root,root)
961%{_bindir}/mysql_client_test
962%attr(-,mysql,mysql) %{_datadir}/mysql-test
963
964%{_mandir}/man1/mysql_client_test.1*
965
966%changelog
967* Tue Sep 18 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
968- Restrict the vendor check to Oracle: There is no history here
969 which we have to allow for.
970
971* Thu Jul 26 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
972- Add the vendor and release series checks from the traditional MySQL RPM
973 spec file, to protect against errors happening during upgrades.
974- Do some code alignment with the traditional MySQL RPM spec file,
975 to make synchronous maintenance (and possibly even integration?) easier.
976
977* Mon Feb 13 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
978- Add "Provides:" lines for the generic names of the subpackages,
979 independent of "product_suffix".
980
981* Tue Feb 7 2012 Joerg Bruehe <joerg.bruehe@oracle.com>
982- Make "mysql_setpermission" and its man page appear in GPL builds only.
983
984* Thu Nov 24 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
985- Add two patches (#18 + #19) regarding the test suite;
986 version 1 of "mysql-test-run.pl" had to go because the auto-detection
987 of Perl dependencies does not handle differences between run directory
988 and delivery location.
989
990* Thu Nov 3 2011 Joerg Bruehe <joerg.bruehe@oracle.com>
991- Adapt from MySQL 5.1 to 5.5, tested using 5.5.17:
992 - Done by the MySQL Build Team at Oracle:
993 set as packager, set copyright owner and related info;
994 - handle command line options, allowing different configurations, platforms, ...
995 - configurations will show up in the file name as "product_suffix",
996 - use "-n" for all subpackage specifications,
997 - license may be GPL or commercial, mention that in the description,
998 the license output and the included license files will vary,
999 - commercial is "nosource",
1000 - improve "requires" listings for different platforms,
1001 - explicitly use "product_suffix" in the "requires" entries;
1002 - adapt to 5.5 changes in features and function:
1003 - remove "mysql-bench" package (files are outdated, not maintained),
1004 - no InnoDB plugin,
1005 - the set of plugins will vary by configuration, to control the "server"
1006 package contents use "-f release/support-files/plugins.files" in the
1007 "files" section,
1008 - remove "mysqlmanager", "mysql_fix_privilege_tables",
1009 - add "mysql_embedded", "mysql-plugin", "mysqlaccess.conf", "magic",
1010 - "errmsg.txt" is now in UTF8: "errmsg-utf8.txt",
1011 - adapt patches to changed code where needed, rename these to include "5.5",
1012 - stop using patches which are not applicable to 5.5;
1013 - 5.5 uses a different way of building:
1014 - autotools are replaced by cmake,
1015 - both a "release" and a "debug" server are built in separate subtrees
1016 ("out of source"!), this also affects path names in further handling,
1017 - the debug server is added to the "server" subpackage,
1018 - add "mysql-5.5-libdir.patch" to handle file placement at user site.
1019
1020* Mon Dec 20 2010 Tom Lane <tgl@redhat.com> 5.1.52-1.1
1021- Update to MySQL 5.1.52, for various fixes described at
1022 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-52.html
1023 including numerous small security issues
1024Resolves: #652553
1025- Sync with current Fedora package; this includes:
1026- Duplicate COPYING and EXCEPTIONS-CLIENT in -libs and -embedded subpackages,
1027 to ensure they are available when any subset of mysql RPMs are installed,
1028 per revised packaging guidelines
1029- Allow init script's STARTTIMEOUT/STOPTIMEOUT to be overridden from sysconfig
1030
1031* Thu Jul 15 2010 Tom Lane <tgl@redhat.com> 5.1.47-4
1032- Add backported patch for CVE-2010-2008 (upstream bug 53804)
1033Resolves: #614215
1034- Add BuildRequires perl(Time::HiRes) ... seems to no longer be installed
1035 by just pulling in perl.
1036
1037* Mon Jun 28 2010 Tom Lane <tgl@redhat.com> 5.1.47-3
1038- Add -p "$mypidfile" to initscript's status call to improve corner cases.
1039 (Note: can't be fixed in Fedora until 595597 is fixed there.)
1040Resolves: #596008
1041
1042* Mon Jun 7 2010 Tom Lane <tgl@redhat.com> 5.1.47-2
1043- Add back "partition" storage engine
1044Resolves: #598585
1045- Fix broken "federated" storage engine plugin
1046Resolves: #587170
1047- Read all certificates in SSL certificate files, to support chained certs
1048Resolves: #598656
1049
1050* Mon May 24 2010 Tom Lane <tgl@redhat.com> 5.1.47-1
1051- Update to MySQL 5.1.47, for various fixes described at
1052 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-47.html
1053 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-46.html
1054 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-45.html
1055 including fixes for CVE-2010-1621, CVE-2010-1626,
1056 CVE-2010-1848, CVE-2010-1849, CVE-2010-1850
1057Resolves: #590598
1058- Create mysql group explicitly in pre-server script, to ensure correct GID
1059
1060* Mon Mar 8 2010 Tom Lane <tgl@redhat.com> 5.1.44-2
1061- Update to MySQL 5.1.44, for various fixes described at
1062 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-44.html
1063Resolves: #565554
1064- Remove mysql.info, which is not freely redistributable
1065Related: #560181
1066- Revert broken upstream fix for their bug 45058
1067Related: #566547
1068- Bring init script into some modicum of compliance with Fedora/LSB standards
1069Resolves: #557711
1070Resolves: #562749
1071
1072* Mon Feb 15 2010 Tom Lane <tgl@redhat.com> 5.1.43-2
1073- Update to MySQL 5.1.43, for various fixes described at
1074 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-43.html
1075Resolves: #565554
1076- Remove mysql-cluster, which is no longer supported by upstream in this
1077 source distribution. If we want it we'll need a separate SRPM for it.
1078Resolves: #565210
1079
1080* Fri Jan 29 2010 Tom Lane <tgl@redhat.com> 5.1.42-7
1081- Add backported patch for CVE-2008-7247 (upstream bug 39277)
1082Resolves: #549329
1083- Use non-expired certificates for SSL testing (upstream bug 50702)
1084
1085* Tue Jan 26 2010 Tom Lane <tgl@redhat.com> 5.1.42-6
1086- Emit explicit error message if user tries to build RPM as root
1087Resolves: #558915
1088
1089* Wed Jan 20 2010 Tom Lane <tgl@redhat.com> 5.1.42-5
1090- Correct Source0: tag and comment to reflect how to get the tarball
1091
1092* Fri Jan 8 2010 Tom Lane <tgl@redhat.com> 5.1.42-4
1093- Sync with current Fedora build, including:
1094- Update to MySQL 5.1.42, for various fixes described at
1095 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-42.html
1096- Disable symbolic links by default in /etc/my.cnf
1097Resolves: #553653
1098- Remove static libraries (.a files) from package, per packaging guidelines
1099- Change %%define to %%global, per packaging guidelines
1100- Disable building the innodb plugin; it tickles assorted gcc bugs and
1101 doesn't seem entirely ready for prime time anyway.
1102Resolves: #553632
1103- Start mysqld_safe with --basedir=/usr, to avoid unwanted SELinux messages
1104 (see 547485)
1105- Stop waiting during "service mysqld start" if mysqld_safe exits
1106Resolves: #544095
1107
1108* Mon Nov 23 2009 Tom Lane <tgl@redhat.com> 5.1.41-1
1109- Update to MySQL 5.1.41, for various fixes described at
1110 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-41.html
1111 including fixes for CVE-2009-4019
1112Resolves: #549327
1113- Don't set old_passwords=1; we aren't being bug-compatible with 3.23 anymore
1114Resolves: #540735
1115
1116* Tue Nov 10 2009 Tom Lane <tgl@redhat.com> 5.1.40-1
1117- Update to MySQL 5.1.40, for various fixes described at
1118 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-40.html
1119- Do not force the --log-error setting in mysqld init script
1120Resolves: #533736
1121
1122* Sat Oct 17 2009 Tom Lane <tgl@redhat.com> 5.1.39-4
1123- Replace kluge fix for ndbd sparc crash with a real fix (mysql bug 48132)
1124
1125* Thu Oct 15 2009 Tom Lane <tgl@redhat.com> 5.1.39-3
1126- Work around two different compiler bugs on sparc, one by backing off
1127 optimization from -O2 to -O1, and the other with a klugy patch
1128Related: #529298, #529299
1129- Clean up bogosity in multilib stub header support: ia64 should not be
1130 listed (it's not multilib), sparc and sparc64 should be
1131
1132* Wed Sep 23 2009 Tom Lane <tgl@redhat.com> 5.1.39-2
1133- Work around upstream bug 46895 by disabling outfile_loaddata test
1134
1135* Tue Sep 22 2009 Tom Lane <tgl@redhat.com> 5.1.39-1
1136- Update to MySQL 5.1.39, for various fixes described at
1137 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-39.html
1138
1139* Mon Aug 31 2009 Tom Lane <tgl@redhat.com> 5.1.37-5
1140- Work around unportable assumptions about stpcpy(); re-enable main.mysql test
1141- Clean up some obsolete parameters to the configure script
1142
1143* Sat Aug 29 2009 Tom Lane <tgl@redhat.com> 5.1.37-4
1144- Remove one misguided patch; turns out I was chasing a glibc bug
1145- Temporarily disable "main.mysql" test; there's something broken there too,
1146 but we need to get mysql built in rawhide for dependency reasons
1147
1148* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 5.1.37-3
1149- rebuilt with new openssl
1150
1151* Fri Aug 14 2009 Tom Lane <tgl@redhat.com> 5.1.37-2
1152- Add a couple of patches to improve the probability of the regression tests
1153 completing in koji builds
1154
1155* Sun Aug 2 2009 Tom Lane <tgl@redhat.com> 5.1.37-1
1156- Update to MySQL 5.1.37, for various fixes described at
1157 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-37.html
1158
1159* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.36-2
1160- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1161
1162* Fri Jul 10 2009 Tom Lane <tgl@redhat.com> 5.1.36-1
1163- Update to MySQL 5.1.36, for various fixes described at
1164 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-36.html
1165
1166* Sat Jun 6 2009 Tom Lane <tgl@redhat.com> 5.1.35-1
1167- Update to MySQL 5.1.35, for various fixes described at
1168 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-35.html
1169- Ensure that /var/lib/mysql is created with the right SELinux context
1170Resolves: #502966
1171
1172* Fri May 15 2009 Tom Lane <tgl@redhat.com> 5.1.34-1
1173- Update to MySQL 5.1.34, for various fixes described at
1174 http://dev.mysql.com/doc/refman/5.1/en/news-5-1-34.html
1175- Increase startup timeout per bug #472222
1176
1177* Wed Apr 15 2009 Tom Lane <tgl@redhat.com> 5.1.33-2
1178- Increase stack size of ndbd threads for safety's sake.
1179Related: #494631
1180
1181* Tue Apr 7 2009 Tom Lane <tgl@redhat.com> 5.1.33-1
1182- Update to MySQL 5.1.33.
1183- Disable use of pthread_setschedparam; doesn't work the way code expects.
1184Related: #477624
1185
1186* Wed Mar 4 2009 Tom Lane <tgl@redhat.com> 5.1.32-1
1187- Update to MySQL 5.1.32.
1188
1189* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.31-2
1190- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1191
1192* Fri Feb 13 2009 Tom Lane <tgl@redhat.com> 5.1.31-1
1193- Update to MySQL 5.1.31.
1194
1195* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.30-2
1196- hm, apparently --with-innodb and --with-ndbcluster are still needed
1197 even though no longer documented ...
1198
1199* Thu Jan 22 2009 Tom Lane <tgl@redhat.com> 5.1.30-1
1200- Update to MySQL 5.1.30. Note that this includes an ABI break for
1201 libmysqlclient (it's now got .so major version 16).
1202- This also updates mysql for new openssl build
1203
1204* Wed Oct 1 2008 Tom Lane <tgl@redhat.com> 5.0.67-2
1205- Build the "embedded server" library, and package it in a new sub-RPM
1206 mysql-embedded, along with mysql-embedded-devel for devel support files.
1207Resolves: #149829
1208
1209* Sat Aug 23 2008 Tom Lane <tgl@redhat.com> 5.0.67-1
1210- Update to mysql version 5.0.67
1211- Move mysql_config's man page to base package, again (apparently I synced
1212 that change the wrong way while importing specfile changes for ndbcluster)
1213
1214* Sun Jul 27 2008 Tom Lane <tgl@redhat.com> 5.0.51a-2
1215- Enable ndbcluster support
1216Resolves: #163758
1217- Suppress odd crash messages during package build, caused by trying to
1218 build dbug manual (which we don't install anyway) with dbug disabled
1219Resolves: #437053
1220- Improve mysql.init to pass configured datadir to mysql_install_db,
1221 and to force user=mysql for both mysql_install_db and mysqld_safe.
1222Related: #450178
1223
1224* Mon Mar 3 2008 Tom Lane <tgl@redhat.com> 5.0.51a-1
1225- Update to mysql version 5.0.51a
1226
1227* Mon Mar 3 2008 Tom Lane <tgl@redhat.com> 5.0.45-11
1228- Fix mysql-stack-guard patch to work correctly on IA64
1229- Fix mysql.init to wait correctly when socket is not in default place
1230Related: #435494
1231
1232* Mon Mar 03 2008 Dennis Gilmore <dennis@ausil.us> 5.0.45-10
1233- add sparc64 to 64 bit arches for test suite checking
1234- add sparc, sparcv9 and sparc64 to multilib handling
1235
1236* Thu Feb 28 2008 Tom Lane <tgl@redhat.com> 5.0.45-9
1237- Fix the stack overflow problem encountered in January. It seems the real
1238issue is that the buildfarm machines were moved to RHEL5, which uses 64K not
12394K pages on PPC, and because RHEL5 takes the guard area out of the requested
1240thread stack size we no longer had enough headroom.
1241Related: #435337
1242
1243* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 5.0.45-8
1244- Autorebuild for GCC 4.3
1245
1246* Tue Jan 8 2008 Tom Lane <tgl@redhat.com> 5.0.45-7
1247- Unbelievable ... upstream still thinks that it's a good idea to have a
1248 regression test that is guaranteed to begin failing come January 1.
1249- ... and it seems we need to raise STACK_MIN_SIZE again too.
1250
1251* Thu Dec 13 2007 Tom Lane <tgl@redhat.com> 5.0.45-6
1252- Back-port upstream fixes for CVE-2007-5925, CVE-2007-5969, CVE-2007-6303.
1253Related: #422211
1254
1255* Wed Dec 5 2007 Tom Lane <tgl@redhat.com> 5.0.45-5
1256- Rebuild for new openssl
1257
1258* Sat Aug 25 2007 Tom Lane <tgl@redhat.com> 5.0.45-4
1259- Seems we need explicit BuildRequires on gawk and procps now
1260- Rebuild to fix Fedora toolchain issues
1261
1262* Sun Aug 12 2007 Tom Lane <tgl@redhat.com> 5.0.45-3
1263- Recent perl changes in rawhide mean we need a more specific BuildRequires
1264
1265* Thu Aug 2 2007 Tom Lane <tgl@redhat.com> 5.0.45-2
1266- Update License tag to match code.
1267- Work around recent Fedora change that makes "open" a macro name.
1268
1269* Sun Jul 22 2007 Tom Lane <tgl@redhat.com> 5.0.45-1
1270- Update to MySQL 5.0.45
1271Resolves: #246535
1272- Move mysql_config's man page to base package
1273Resolves: #245770
1274- move my_print_defaults to base RPM, for consistency with Stacks packaging
1275- mysql user is no longer deleted at RPM uninstall
1276Resolves: #241912
1277
1278* Thu Mar 29 2007 Tom Lane <tgl@redhat.com> 5.0.37-2
1279- Use a less hacky method of getting default values in initscript
1280Related: #233771, #194596
1281- Improve packaging of mysql-libs per suggestions from Remi Collet
1282Resolves: #233731
1283- Update default /etc/my.cnf ([mysql.server] has been bogus for a long time)
1284
1285* Mon Mar 12 2007 Tom Lane <tgl@redhat.com> 5.0.37-1
1286- Update to MySQL 5.0.37
1287Resolves: #231838
1288- Put client library into a separate mysql-libs RPM to reduce dependencies
1289Resolves: #205630
1290
1291* Fri Feb 9 2007 Tom Lane <tgl@redhat.com> 5.0.33-1
1292- Update to MySQL 5.0.33
1293- Install band-aid fix for "view" regression test designed to fail after 2006
1294- Don't chmod -R the entire database directory tree on every startup
1295Related: #221085
1296- Fix unsafe use of install-info
1297Resolves: #223713
1298- Cope with new automake in F7
1299Resolves: #224171
1300
1301* Thu Nov 9 2006 Tom Lane <tgl@redhat.com> 5.0.27-1
1302- Update to MySQL 5.0.27 (see CVE-2006-4031, CVE-2006-4226, CVE-2006-4227)
1303Resolves: #202247, #202675, #203427, #203428, #203432, #203434, #208641
1304- Fix init script to return status 1 on server start timeout
1305Resolves: #203910
1306- Move mysqldumpslow from base package to mysql-server
1307Resolves: #193559
1308- Adjust link options for BDB module
1309Resolves: #199368
1310
1311* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 5.0.22-2.1
1312- rebuild
1313
1314* Sat Jun 10 2006 Tom Lane <tgl@redhat.com> 5.0.22-2
1315- Work around brew's tendency not to clean up failed builds completely,
1316 by adding code in mysql-testing.patch to kill leftover mysql daemons.
1317
1318* Thu Jun 8 2006 Tom Lane <tgl@redhat.com> 5.0.22-1
1319- Update to MySQL 5.0.22 (fixes CVE-2006-2753)
1320- Install temporary workaround for gcc bug on s390x (bz #193912)
1321
1322* Tue May 2 2006 Tom Lane <tgl@redhat.com> 5.0.21-2
1323- Fix bogus perl Requires for mysql-test
1324
1325* Mon May 1 2006 Tom Lane <tgl@redhat.com> 5.0.21-1
1326- Update to MySQL 5.0.21
1327
1328* Mon Mar 27 2006 Tom Lane <tgl@redhat.com> 5.0.18-4
1329- Modify multilib header hack to not break non-RH arches, per bug #181335
1330- Remove logrotate script, per bug #180639.
1331- Add a new mysql-test RPM to carry the regression test files;
1332 hack up test scripts as needed to make them run in /usr/share/mysql-test.
1333
1334* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-2.1
1335- bump again for double-long bug on ppc(64)
1336
1337* Thu Feb 9 2006 Tom Lane <tgl@redhat.com> 5.0.18-2
1338- err-log option has been renamed to log-error, fix my.cnf and initscript
1339
1340* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 5.0.18-1.1
1341- rebuilt for new gcc4.1 snapshot and glibc changes
1342
1343* Thu Jan 5 2006 Tom Lane <tgl@redhat.com> 5.0.18-1
1344- Update to MySQL 5.0.18
1345
1346* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-4
1347- fix my_config.h for ppc platforms
1348
1349* Thu Dec 15 2005 Tom Lane <tgl@redhat.com> 5.0.16-3
1350- my_config.h needs to guard against 64-bit platforms that also define the
1351 32-bit symbol
1352
1353* Wed Dec 14 2005 Tom Lane <tgl@redhat.com> 5.0.16-2
1354- oops, looks like we want uname -i not uname -m
1355
1356* Mon Dec 12 2005 Tom Lane <tgl@redhat.com> 5.0.16-1
1357- Update to MySQL 5.0.16
1358- Add EXCEPTIONS-CLIENT license info to the shipped documentation
1359- Make my_config.h architecture-independent for multilib installs;
1360 put the original my_config.h into my_config_$ARCH.h
1361- Add -fwrapv to CFLAGS so that gcc 4.1 doesn't break it
1362
1363* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
1364- rebuilt
1365
1366* Mon Nov 14 2005 Tom Lane <tgl@redhat.com> 5.0.15-3
1367- Make stop script wait for daemon process to disappear (bz#172426)
1368
1369* Wed Nov 9 2005 Tom Lane <tgl@redhat.com> 5.0.15-2
1370- Rebuild due to openssl library update.
1371
1372* Thu Nov 3 2005 Tom Lane <tgl@redhat.com> 5.0.15-1
1373- Update to MySQL 5.0.15 (scratch build for now)
1374
1375* Wed Oct 5 2005 Tom Lane <tgl@redhat.com> 4.1.14-1
1376- Update to MySQL 4.1.14
1377
1378* Tue Aug 23 2005 Tom Lane <tgl@redhat.com> 4.1.12-3
1379- Use politically correct patch name.
1380
1381* Tue Jul 12 2005 Tom Lane <tgl@redhat.com> 4.1.12-2
1382- Fix buffer overflow newly exposed in isam code; it's the same issue
1383 previously found in myisam, and not very exciting, but I'm tired of
1384 seeing build warnings.
1385
1386* Mon Jul 11 2005 Tom Lane <tgl@redhat.com> 4.1.12-1
1387- Update to MySQL 4.1.12 (includes a fix for bz#158688, bz#158689)
1388- Extend mysql-test-ssl.patch to solve rpl_openssl test failure (bz#155850)
1389- Update mysql-lock-ssl.patch to match the upstream committed version
1390- Add --with-isam to re-enable the old ISAM table type, per bz#159262
1391- Add dependency on openssl-devel per bz#159569
1392- Remove manual.txt, as upstream decided not to ship it anymore;
1393 it was redundant with the mysql.info file anyway.
1394
1395* Mon May 9 2005 Tom Lane <tgl@redhat.com> 4.1.11-4
1396- Include proper locking for OpenSSL in the server, per bz#155850
1397
1398* Mon Apr 25 2005 Tom Lane <tgl@redhat.com> 4.1.11-3
1399- Enable openssl tests during build, per bz#155850
1400- Might as well turn on --disable-dependency-tracking
1401
1402* Fri Apr 8 2005 Tom Lane <tgl@redhat.com> 4.1.11-2
1403- Avoid dependency on <asm/atomic.h>, cause it won't build anymore on ia64.
1404 This is probably a cleaner solution for bz#143537, too.
1405
1406* Thu Apr 7 2005 Tom Lane <tgl@redhat.com> 4.1.11-1
1407- Update to MySQL 4.1.11 to fix bz#152911 as well as other issues
1408- Move perl-DBI, perl-DBD-MySQL dependencies to server package (bz#154123)
1409- Override configure thread library test to suppress HAVE_LINUXTHREADS check
1410- Fix BDB failure on s390x (bz#143537)
1411- At last we can enable "make test" on all arches
1412
1413* Fri Mar 11 2005 Tom Lane <tgl@redhat.com> 4.1.10a-1
1414- Update to MySQL 4.1.10a to fix security vulnerabilities (bz#150868,
1415 for CAN-2005-0711, and bz#150871 for CAN-2005-0709, CAN-2005-0710).
1416
1417* Sun Mar 6 2005 Tom Lane <tgl@redhat.com> 4.1.10-3
1418- Fix package Requires: interdependencies.
1419
1420* Sat Mar 5 2005 Tom Lane <tgl@redhat.com> 4.1.10-2
1421- Need -fno-strict-aliasing in at least one place, probably more.
1422- Work around some C spec violations in mysql.
1423
1424* Fri Feb 18 2005 Tom Lane <tgl@redhat.com> 4.1.10-1
1425- Update to MySQL 4.1.10.
1426
1427* Sat Jan 15 2005 Tom Lane <tgl@redhat.com> 4.1.9-1
1428- Update to MySQL 4.1.9.
1429
1430* Wed Jan 12 2005 Tom Lane <tgl@redhat.com> 4.1.7-10
1431- Don't assume /etc/my.cnf will specify pid-file (bz#143724)
1432
1433* Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> 4.1.7-9
1434- Rebuilt for new readline.
1435
1436* Tue Dec 21 2004 Tom Lane <tgl@redhat.com> 4.1.7-8
1437- Run make test on all archs except s390x (which seems to have a bdb issue)
1438
1439* Mon Dec 13 2004 Tom Lane <tgl@redhat.com> 4.1.7-7
1440- Suppress someone's silly idea that libtool overhead can be skipped
1441
1442* Sun Dec 12 2004 Tom Lane <tgl@redhat.com> 4.1.7-6
1443- Fix init script to not need a valid username for startup check (bz#142328)
1444- Fix init script to honor settings appearing in /etc/my.cnf (bz#76051)
1445- Enable SSL (bz#142032)
1446
1447* Thu Dec 2 2004 Tom Lane <tgl@redhat.com> 4.1.7-5
1448- Add a restorecon to keep the mysql.log file in the right context (bz#143887)
1449
1450* Tue Nov 23 2004 Tom Lane <tgl@redhat.com> 4.1.7-4
1451- Turn off old_passwords in default /etc/my.cnf file, for better compatibility
1452 with mysql 3.x clients (per suggestion from Joe Orton).
1453
1454* Fri Oct 29 2004 Tom Lane <tgl@redhat.com> 4.1.7-3
1455- Handle ldconfig more cleanly (put a file in /etc/ld.so.conf.d/).
1456
1457* Thu Oct 28 2004 Tom Lane <tgl@redhat.com> 4.1.7-2
1458- rebuild in devel branch
1459
1460* Wed Oct 27 2004 Tom Lane <tgl@redhat.com> 4.1.7-1
1461- Update to MySQL 4.1.x.
1462
1463* Tue Oct 12 2004 Tom Lane <tgl@redhat.com> 3.23.58-13
1464- fix security issues CAN-2004-0835, CAN-2004-0836, CAN-2004-0837
1465 (bugs #135372, 135375, 135387)
1466- fix privilege escalation on GRANT ALL ON `Foo\_Bar` (CAN-2004-0957)
1467
1468* Wed Oct 06 2004 Tom Lane <tgl@redhat.com> 3.23.58-12
1469- fix multilib problem with mysqlbug and mysql_config
1470- adjust chkconfig priority per bug #128852
1471- remove bogus quoting per bug #129409 (MySQL 4.0 has done likewise)
1472- add sleep to mysql.init restart(); may or may not fix bug #133993
1473
1474* Tue Oct 05 2004 Tom Lane <tgl@redhat.com> 3.23.58-11
1475- fix low-priority security issues CAN-2004-0388, CAN-2004-0381, CAN-2004-0457
1476 (bugs #119442, 125991, 130347, 130348)
1477- fix bug with dropping databases under recent kernels (bug #124352)
1478
1479* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> 3.23.58-10
1480- rebuilt
1481
1482* Sat Apr 17 2004 Warren Togami <wtogami@redhat.com> 3.23.58-9
1483- remove redundant INSTALL-SOURCE, manual.*
1484- compress manual.txt.bz2
1485- BR time
1486
1487* Tue Mar 16 2004 Tom Lane <tgl@redhat.com> 3.23.58-8
1488- repair logfile attributes in %%files, per bug #102190
1489- repair quoting problem in mysqlhotcopy, per bug #112693
1490- repair missing flush in mysql_setpermission, per bug #113960
1491- repair broken error message printf, per bug #115165
1492- delete mysql user during uninstall, per bug #117017
1493- rebuilt
1494
1495* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
1496- rebuilt
1497
1498* Tue Feb 24 2004 Tom Lane <tgl@redhat.com>
1499- fix chown syntax in mysql.init
1500- rebuild
1501
1502* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
1503- rebuilt
1504
1505* Tue Nov 18 2003 Kim Ho <kho@redhat.com> 3.23.58-5
1506- update mysql.init to use anonymous user (UNKNOWN_MYSQL_USER) for
1507 pinging mysql server (#108779)
1508
1509* Mon Oct 27 2003 Kim Ho <kho@redhat.com> 3.23.58-4
1510- update mysql.init to wait (max 10 seconds) for mysql server to
1511 start (#58732)
1512
1513* Mon Oct 27 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-3
1514- re-enable Berkeley DB support (#106832)
1515- re-enable ia64 testing
1516
1517* Fri Sep 19 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-2
1518- rebuilt
1519
1520* Mon Sep 15 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.58-1
1521- upgrade to 3.23.58 for security fix
1522
1523* Tue Aug 26 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.57-2
1524- rebuilt
1525
1526* Wed Jul 02 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.57-1
1527- revert to prior version of MySQL due to license incompatibilities
1528 with packages that link against the client. The MySQL folks are
1529 looking into the issue.
1530
1531* Wed Jun 18 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-4
1532- restrict test on ia64 (temporary)
1533
1534* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> 4.0.13-3
1535- rebuilt
1536
1537* Thu May 29 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-2
1538- fix filter-requires-mysql.sh with less restrictive for mysql-bench
1539
1540* Wed May 28 2003 Patrick Macdonald <patrickm@redhat.com> 4.0.13-1
1541- update for MySQL 4.0
1542- back-level shared libraries available in mysqlclient10 package
1543
1544* Fri May 09 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.56-2
1545- add sql-bench package (#90110)
1546
1547* Wed Mar 19 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.56-1
1548- upgrade to 3.23.56 for security fixes
1549- remove patch for double-free (included in 3.23.56)
1550
1551* Tue Feb 18 2003 Patrick Macdonald <patrickm@redhat.com> 3.23.54a-11
1552- enable thread safe client
1553- add patch for double free fix
1554
1555* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
1556- rebuilt
1557
1558* Mon Jan 13 2003 Karsten Hopp <karsten@redhat.de> 3.23.54a-9
1559- disable checks on s390x
1560
1561* Sat Jan 4 2003 Jeff Johnson <jbj@redhat.com> 3.23.54a-8
1562- use internal dep generator.
1563
1564* Wed Jan 1 2003 Bill Nottingham <notting@redhat.com> 3.23.54a-7
1565- fix mysql_config on hammer
1566
1567* Sun Dec 22 2002 Tim Powers <timp@redhat.com> 3.23.54a-6
1568- don't use rpms internal dep generator
1569
1570* Tue Dec 17 2002 Elliot Lee <sopwith@redhat.com> 3.23.54a-5
1571- Push it into the build system
1572
1573* Mon Dec 16 2002 Joe Orton <jorton@redhat.com> 3.23.54a-4
1574- upgrade to 3.23.54a for safe_mysqld fix
1575
1576* Thu Dec 12 2002 Joe Orton <jorton@redhat.com> 3.23.54-3
1577- upgrade to 3.23.54 for latest security fixes
1578
1579* Tue Nov 19 2002 Jakub Jelinek <jakub@redhat.com> 3.23.52-5
1580- Always include <errno.h> for errno
1581- Remove unpackaged files
1582
1583* Tue Nov 12 2002 Florian La Roche <Florian.LaRoche@redhat.de>
1584- do not prereq userdel, not used at all
1585
1586* Mon Sep 9 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-4
1587- Use %%{_libdir}
1588- Add patch for x86-64
1589
1590* Wed Sep 4 2002 Jakub Jelinek <jakub@redhat.com> 3.23.52-3
1591- rebuilt with gcc-3.2-7
1592
1593* Thu Aug 29 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-2
1594- Add --enable-local-infile to configure - a new option
1595 which doesn't default to the old behaviour (#72885)
1596
1597* Fri Aug 23 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.52-1
1598- 3.23.52. Fixes a minor security problem, various bugfixes.
1599
1600* Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com> 3.23.51-5
1601- rebuilt with gcc-3.2 (we hope)
1602
1603* Mon Jul 22 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-4
1604- rebuild
1605
1606* Thu Jul 18 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-3
1607- Fix #63543 and #63542
1608
1609* Thu Jul 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-2
1610- Turn off bdb on PPC(#68591)
1611- Turn off the assembly optimizations, for safety.
1612
1613* Wed Jun 26 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.51-1
1614- Work around annoying auto* thinking this is a crosscompile
1615- 3.23.51
1616
1617* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
1618- automated rebuild
1619
1620* Mon Jun 10 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.50-2
1621- Add dependency on perl-DBI and perl-DBD-MySQL (#66349)
1622
1623* Thu May 30 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.50-1
1624- 3.23.50
1625
1626* Thu May 23 2002 Tim Powers <timp@redhat.com>
1627- automated rebuild
1628
1629* Mon May 13 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-4
1630- Rebuild
1631- Don't set CXX to gcc, it doesn't work anymore
1632- Exclude Alpha
1633
1634* Mon Apr 8 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-3
1635- Add the various .cnf examples as doc files to mysql-server (#60349)
1636- Don't include manual.ps, it's just 200 bytes with a URL inside (#60349)
1637- Don't include random files in /usr/share/mysql (#60349)
1638- langify (#60349)
1639
1640* Thu Feb 21 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-2
1641- Rebuild
1642
1643* Sun Feb 17 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.49-1
1644- 3.23.49
1645
1646* Thu Feb 14 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.48-2
1647- work around perl dependency bug.
1648
1649* Mon Feb 11 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.48-1
1650- 3.23.48
1651
1652* Thu Jan 17 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-4
1653- Use kill, not mysqladmin, to flush logs and shut down. Thus,
1654 an admin password can be set with no problems.
1655- Remove reload from init script
1656
1657* Wed Jan 16 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-3
1658- remove db3-devel from buildrequires,
1659 MySQL has had its own bundled copy since the mid thirties
1660
1661* Sun Jan 6 2002 Trond Eivind Glomsrd <teg@redhat.com> 3.23.47-1
1662- 3.23.47
1663- Don't build for alpha, toolchain immature.
1664
1665* Mon Dec 3 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.46-1
1666- 3.23.46
1667- use -fno-rtti and -fno-exceptions, and set CXX to increase stability.
1668 Recommended by mysql developers.
1669
1670* Sun Nov 25 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.45-1
1671- 3.23.45
1672
1673* Wed Nov 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.44-2
1674- centralize definition of datadir in the initscript (#55873)
1675
1676* Fri Nov 2 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.44-1
1677- 3.23.44
1678
1679* Thu Oct 4 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.43-1
1680- 3.23.43
1681
1682* Mon Sep 10 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.42-1
1683- 3.23.42
1684- reenable innodb
1685
1686* Tue Aug 14 2001 Trond Eivind Glomsrd <teg@redhat.com> 3.23.41-1
1687- 3.23.41 bugfix release
1688- disable innodb, to avoid the broken updates
1689- Use "mysqladmin flush_logs" instead of kill -HUP in logrotate
1690 script (#51711)
1691
1692* Sat Jul 21 2001 Trond Eivind Glomsrd <teg@redhat.com>
1693- 3.23.40, bugfix release
1694- Add zlib-devel to buildrequires:
1695
1696* Fri Jul 20 2001 Trond Eivind Glomsrd <teg@redhat.com>
1697- BuildRequires-tweaking
1698
1699* Thu Jun 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
1700- Reenable test, but don't run them for s390, s390x or ia64
1701- Make /etc/my.cnf config(noplace). Same for /etc/logrotate.d/mysqld
1702
1703* Thu Jun 14 2001 Trond Eivind Glomsrd <teg@redhat.com>
1704- 3.23.29
1705- enable innodb
1706- enable assembly again
1707- disable tests for now...
1708
1709* Tue May 15 2001 Trond Eivind Glomsrd <teg@redhat.com>
1710- 3.23.38
1711- Don't use BDB on Alpha - no fast mutexes
1712
1713* Tue Apr 24 2001 Trond Eivind Glomsrd <teg@redhat.com>
1714- 3.23.37
1715- Add _GNU_SOURCE to the compile flags
1716
1717* Wed Mar 28 2001 Trond Eivind Glomsrd <teg@redhat.com>
1718- Make it obsolete our 6.2 PowerTools packages
1719- 3.23.36 bugfix release - fixes some security issues
1720 which didn't apply to our standard configuration
1721- Make "make test" part of the build process, except on IA64
1722 (it fails there)
1723
1724* Tue Mar 20 2001 Trond Eivind Glomsrd <teg@redhat.com>
1725- 3.23.35 bugfix release
1726- Don't delete the mysql user on uninstall
1727
1728* Tue Mar 13 2001 Trond Eivind Glomsrd <teg@redhat.com>
1729- 3.23.34a bugfix release
1730
1731* Wed Feb 7 2001 Trond Eivind Glomsrd <teg@redhat.com>
1732- added readline-devel to BuildRequires:
1733
1734* Tue Feb 6 2001 Trond Eivind Glomsrd <teg@redhat.com>
1735- small i18n-fixes to initscript (action needs $)
1736
1737* Tue Jan 30 2001 Trond Eivind Glomsrd <teg@redhat.com>
1738- make it shut down and rotate logs without using mysqladmin
1739 (from #24909)
1740
1741* Mon Jan 29 2001 Trond Eivind Glomsrd <teg@redhat.com>
1742- conflict with "MySQL"
1743
1744* Tue Jan 23 2001 Trond Eivind Glomsrd <teg@redhat.com>
1745- improve gettextizing
1746
1747* Mon Jan 22 2001 Trond Eivind Glomsrd <teg@redhat.com>
1748- 3.23.32
1749- fix logrotate script (#24589)
1750
1751* Wed Jan 17 2001 Trond Eivind Glomsrd <teg@redhat.com>
1752- gettextize
1753- move the items in Requires(post): to Requires: in preparation
1754 for an errata for 7.0 when 3.23.31 is released
1755- 3.23.31
1756
1757* Tue Jan 16 2001 Trond Eivind Glomsrd <teg@redhat.com>
1758- add the log file to the rpm database, and make it 0640
1759 (#24116)
1760- as above in logrotate script
1761- changes to the init sequence - put most of the data
1762 in /etc/my.cnf instead of hardcoding in the init script
1763- use /var/run/mysqld/mysqld.pid instead of
1764 /var/run/mysqld/pid
1765- use standard safe_mysqld
1766- shut down cleaner
1767
1768* Mon Jan 08 2001 Trond Eivind Glomsrd <teg@redhat.com>
1769- 3.23.30
1770- do an explicit chmod on /var/lib/mysql in post, to avoid
1771 any problems with broken permissons. There is a report
1772 of rm not changing this on its own (#22989)
1773
1774* Mon Jan 01 2001 Trond Eivind Glomsrd <teg@redhat.com>
1775- bzipped source
1776- changed from 85 to 78 in startup, so it starts before
1777 apache (which can use modules requiring mysql)
1778
1779* Wed Dec 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1780- 3.23.29a
1781
1782* Tue Dec 19 2000 Trond Eivind Glomsrd <teg@redhat.com>
1783- add requirement for new libstdc++, build for errata
1784
1785* Mon Dec 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1786- 3.23.29
1787
1788* Mon Nov 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1789- 3.23.28 (gamma)
1790- remove old patches, as they are now upstreamed
1791
1792* Thu Nov 14 2000 Trond Eivind Glomsrd <teg@redhat.com>
1793- Add a requirement for a new glibc (#20735)
1794- build on IA64
1795
1796* Wed Nov 1 2000 Trond Eivind Glomsrd <teg@redhat.com>
1797- disable more assembly
1798
1799* Wed Nov 1 2000 Jakub Jelinek <jakub@redhat.com>
1800- fix mysql on SPARC (#20124)
1801
1802* Tue Oct 31 2000 Trond Eivind Glomsrd <teg@redhat.com>
1803- 3.23.27
1804
1805* Wed Oct 25 2000 Trond Eivind Glomsrd <teg@redhat.com>
1806- add patch for fixing bogus aliasing in mysql from Jakub,
1807 which should fix #18905 and #18620
1808
1809* Mon Oct 23 2000 Trond Eivind Glomsrd <teg@redhat.com>
1810- check for negative niceness values, and negate it
1811 if present (#17899)
1812- redefine optflags on IA32 FTTB
1813
1814* Wed Oct 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1815- 3.23.26, which among other fixes now uses mkstemp()
1816 instead of tempnam().
1817- revert changes made yesterday, the problem is now
1818 isolated
1819
1820* Tue Oct 17 2000 Trond Eivind Glomsrd <teg@redhat.com>
1821- use the compat C++ compiler FTTB. Argh.
1822- add requirement of ncurses4 (see above)
1823
1824* Sun Oct 01 2000 Trond Eivind Glomsrd <teg@redhat.com>
1825- 3.23.25
1826- fix shutdown problem (#17956)
1827
1828* Tue Sep 26 2000 Trond Eivind Glomsrd <teg@redhat.com>
1829- Don't try to include no-longer-existing PUBLIC file
1830 as doc (#17532)
1831
1832* Thu Sep 12 2000 Trond Eivind Glomsrd <teg@redhat.com>
1833- rename config file to /etc/my.cnf, which is what
1834 mysqld wants... doh. (#17432)
1835- include a changed safe_mysqld, so the pid file option
1836 works.
1837- make mysql dir world readable to they can access the
1838 mysql socket. (#17432)
1839- 3.23.24
1840
1841* Wed Sep 06 2000 Trond Eivind Glomsrd <teg@redhat.com>
1842- 3.23.23
1843
1844* Sun Aug 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1845- Add "|| :" to condrestart to avoid non-zero exit code
1846
1847* Thu Aug 24 2000 Trond Eivind Glomsrd <teg@redhat.com>
1848- it's mysql.com, not mysql.org and use correct path to
1849 source (#16830)
1850
1851* Wed Aug 16 2000 Trond Eivind Glomsrd <teg@redhat.com>
1852- source file from /etc/rc.d, not /etc/rd.d. Doh.
1853
1854* Sun Aug 13 2000 Trond Eivind Glomsrd <teg@redhat.com>
1855- don't run ldconfig -n, it doesn't update ld.so.cache
1856 (#16034)
1857- include some missing binaries
1858- use safe_mysqld to start the server (request from
1859 mysql developers)
1860
1861* Sat Aug 05 2000 Bill Nottingham <notting@redhat.com>
1862- condrestart fixes
1863
1864* Mon Aug 01 2000 Trond Eivind Glomsrd <teg@redhat.com>
1865- 3.23.22. Disable the old patches, they're now in.
1866
1867* Thu Jul 27 2000 Trond Eivind Glomsrd <teg@redhat.com>
1868- bugfixes in the initscript
1869- move the .so link to the devel package
1870
1871* Wed Jul 19 2000 Trond Eivind Glomsrd <teg@redhat.com>
1872- rebuild due to glibc changes
1873
1874* Tue Jul 18 2000 Trond Eivind Glomsrd <teg@redhat.com>
1875- disable compiler patch
1876- don't include info directory file
1877
1878* Mon Jul 17 2000 Trond Eivind Glomsrd <teg@redhat.com>
1879- move back to /etc/rc.d/init.d
1880
1881* Fri Jul 14 2000 Trond Eivind Glomsrd <teg@redhat.com>
1882- more cleanups in initscript
1883
1884* Thu Jul 13 2000 Trond Eivind Glomsrd <teg@redhat.com>
1885- add a patch to work around compiler bug
1886 (from monty@mysql.com)
1887
1888* Wed Jul 12 2000 Trond Eivind Glomsrd <teg@redhat.com>
1889- don't build the SQL daemon statically (glibc problems)
1890- fix the logrotate script - only flush log if mysql
1891 is running
1892- change the reloading procedure
1893- remove icon - glint is obsolete a long time ago
1894
1895* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
1896- automatic rebuild
1897
1898* Mon Jul 10 2000 Trond Eivind Glomsrd <teg@redhat.com>
1899- try the new compiler again
1900- build the SQL daemon statically
1901- add compile time support for complex charsets
1902- enable assembler
1903- more cleanups in initscript
1904
1905* Sun Jul 09 2000 Trond Eivind Glomsrd <teg@redhat.com>
1906- use old C++ compiler
1907- Exclusivearch x86
1908
1909* Sat Jul 08 2000 Trond Eivind Glomsrd <teg@redhat.com>
1910- move .so files to devel package
1911- more cleanups
1912- exclude sparc for now
1913
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches

to all changes: