commit 9301fefeac8568eb11a0f8ca96a5b5a63fa9a6bb2c15a82928ae7d227544226a Author: OBS User autobuild Date: Wed May 5 21:42:29 2010 +0000 Accepting request 39217 from server:database Copy from server:database/mariadb based on submit request 39217 from user -miska- OBS-URL: https://build.opensuse.org/request/show/39217 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mariadb?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/README.SuSE b/README.SuSE new file mode 100644 index 0000000..6ce1c04 --- /dev/null +++ b/README.SuSE @@ -0,0 +1,57 @@ +Notes about MySQL 5.1 package: +============================== + +With MySQL 5.1 package we introduced some changes you may like to know. Most of +them will affect you only if you are upgrading from previous version and you +did some changes to your configuration. + +1) Plugins: +=========== + +One of the new features in MySQL 5.1 is support for plugins. So some of the +storage engines are now shipped like that. You can use following plugins: + + - archive + - blackhole + - federated + - example + +InnoDB is still compiled as internal part of MySQL. If you are upgrading from +version 5.0 or if this is your first installation of MySQL 5.1, all plugins +will be enabled by default and you can disable them manually later (see +http://dev.mysql.com/doc/refman/5.1/en/uninstall-plugin.html). + +With this change you need to remove skip-federated option from your my.cnf file +if you have changed it manually. This option was there by default in previous +versions of MySQL. + +2) File locations: +================== + +There were some changes in files locations. Most of them were made in the +default configuration file so if you are experiencing problems and you have +made some manual adjustments to your /etc/my.cnf, try to merge this file with +/etc/my.cnf.rpmnew. + +File locations changes: + - MySQL socket file and pid file were moved from /var/lib/mysql to more + reasonable location ( /var/run/mysql ) by default. + - MySQL log files are in /var/log/mysql. + +3) BerkeleyDB: +============== + +MySQL no longer contains BerkeleyDB as storage engine. There is no fix for that +and if you used it before, you have to migrate your data to different storage +engine BEFORE updating. This can be done for example using following command: + + ALTER TABLE foo ENGINE = INNODB; + +4) MySQL Upgrade Log +==================== + +If you missed messages displayed during automatic MySQL database upgrade, you +can find them from now on in + + /var/log/mysql/mysqld-upgrade.log + diff --git a/README.debug b/README.debug new file mode 100644 index 0000000..b40480a --- /dev/null +++ b/README.debug @@ -0,0 +1,102 @@ +Debugging mysqld crashes +======================== +Author: Michal Marek +Last modified: 2006-07-31 + +Contents +-------- +1) Query log +2) Coredumps and Backtraces +3) Trace files + +In case your MySQL server crashes, here are some hints on what to +include in a bugreport at https://bugzilla.novell.com/ . Please report +there only bugs in the MySQL packages packaged by Novell/SUSE, bugs in +binaries / source provided by MySQL AB should be reported at +http://bugs.mysql.com/ . + +1) Query log +------------ + Note: Skip this chapter if you already have an exact query that + crashes the server + +To find out which query possibly crashed the server, add the following +line to your /etc/my.cnf into section [mysqld]: + + log=/var/lib/mysql/mysqld-query.log + +Mysqld then will, at some performance cost, log all queries into this +file. After a server crash, you can examine the queries from the time it +crashed and try to reproduce the crash with single queries (this might +not allways work, eg. if the crash is caused by some race condition). + +Note that this log file may become extremly large, so if you decide to +attach it whole to the bugzilla, don't forget to + + bzip2 -k /var/lib/mysql/mysqld-query.log + +and attach the bzipped file instead. + +2) Coredumps and Backtraces +--------------------------- +Another valuable information for the developers is the backtrace. The +easies way to get one is to let mysqld produce a coredump. Add the +following line to your /etc/my.cnf into section [mysqld]: + + core-file + + Note: this unfortunatelly doesn't work in SUSE Linux 10.1 and older. + On these systems, you need to run safe_mysqld directly under user + mysql: + + su - mysql + mysqld_safe --socket=/var/lib/mysql/mysql.sock \ + --datadir=/var/lib/mysql --core-file & + +The core file will be written to the /var/lib/mysql/ directory. I +suggest setting the kernel variable kernel.core_uses_pid to 1 + + sysctl -w kernel.core_uses_pid=1 + +so that the coredumps don't overwrite each other if you experience +multiple crashes. + +After you got the core file, install the gdb and mysql-debuginfo +packages and run + + gdb /usr/sbin/mysqld /var/lib/mysql/core + (gdb) bt + +Replace mysqld with the mysqld version you used (mysqld, mysqld-max or +mysqld-debug) and core with the actual name of the coredump. + +3) Trace files +-------------- +You'll need the mysqld-debug binary from the mysql-debug package to get +a trace file. Install the mysqld-debug package and the start mysqld +using following command: + + $ MYSQLD_DEBUG=yes rcmysql start + + Note: The init script doesn't automatically pick up the mysqld-debug + binary (as it does with mysqld-max), because it is expected to be used + just temporarily to help solving a particular problem. + +The init script will then start mysqld-debug and add the --core-file, +--log and --debug options for you. The query log will be stored in + + /var/lib/mysql/myqld-query.log + +and the trace file in + + /var/lib/mysql/mysqld.trace + +If you don't like the options set by the init script, just put your own +into /etc/my.cnf and the init script will honor it. For information +about the --debug option, see "The DBUG Package": +http://dev.mysql.com/doc/refman/5.0/en/the-dbug-package.html . + +The trace file will contain various debug information and function +calls/returns and will become _extremly_ huge after a while, so don't +attach it to bugzilla unless requested. + diff --git a/abi_test.patch b/abi_test.patch new file mode 100644 index 0000000..3f6f6ec --- /dev/null +++ b/abi_test.patch @@ -0,0 +1,35 @@ +diff -Naru mysql-5.1.44-bak/include/mysql.h mysql-5.1.44/include/mysql.h +--- mysql-5.1.44-bak/include/mysql.h 2010-02-23 00:31:19.000000000 +0100 ++++ mysql-5.1.44/include/mysql.h 2010-02-23 10:51:49.000000000 +0100 +@@ -44,7 +44,9 @@ + #endif + + #ifndef _global_h /* If not standard header */ +-#include ++#ifndef _abi_test_ ++#include ++#endif + #ifdef __LCC__ + #include /* For windows */ + #endif +diff -Naru mysql-5.1.44-bak/include/mysql.h.pp mysql-5.1.44/include/mysql.h.pp +--- mysql-5.1.44-bak/include/mysql.h.pp 2010-02-23 00:31:19.000000000 +0100 ++++ mysql-5.1.44/include/mysql.h.pp 2010-02-23 10:54:46.000000000 +0100 +@@ -1,4 +1,3 @@ +-#include + typedef char my_bool; + typedef int my_socket; + #include "mysql_version.h" +diff -Naru mysql-5.1.44-bak/Makefile.am mysql-5.1.44/Makefile.am +--- mysql-5.1.44-bak/Makefile.am 2010-02-23 00:31:18.000000000 +0100 ++++ mysql-5.1.44/Makefile.am 2010-02-23 10:50:18.000000000 +0100 +@@ -321,7 +321,8 @@ + -I$(top_builddir)/include \ + -I$(top_builddir)/include/mysql \ + -I$(top_builddir)/sql \ +- $$file 2>/dev/null | \ ++ -D_abi_test_ \ ++ $$file | \ + @SED@ -e '/^# /d' \ + -e '/^[ ]*$$/d' \ + -e '/^#pragma GCC set_debug_pwd/d' \ diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..f28702c --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,2 @@ +libmysqlclient16 +libmysqlclient_r16 diff --git a/libmysql-no-pkglibdir.patch b/libmysql-no-pkglibdir.patch new file mode 100644 index 0000000..75f3ff4 --- /dev/null +++ b/libmysql-no-pkglibdir.patch @@ -0,0 +1,27 @@ +--- + libmysql/Makefile.shared | 2 +- + libmysqld/Makefile.am | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- libmysql/Makefile.shared.orig ++++ libmysql/Makefile.shared +@@ -26,7 +26,7 @@ MYSQLBASEdir= $(prefix) + ## We'll use CLIENT_EXTRA_LDFLAGS for threaded and non-threaded + ## until someone complains that they need separate options. + LDADD = @CLIENT_EXTRA_LDFLAGS@ $(target) +-pkglib_LTLIBRARIES = $(target) ++lib_LTLIBRARIES = $(target) + + noinst_PROGRAMS = conf_to_src + +--- libmysqld/Makefile.am.orig ++++ libmysqld/Makefile.am +@@ -36,7 +36,7 @@ INCLUDES= -I$(top_builddir)/include -I$ + @condition_dependent_plugin_includes@ + + noinst_LIBRARIES = libmysqld_int.a +-pkglib_LIBRARIES = libmysqld.a ++lib_LIBRARIES = libmysqld.a + SUBDIRS = . examples + libmysqld_sources= libmysqld.c lib_sql.cc emb_qcache.cc + libmysqlsources = errmsg.c get_password.c libmysql.c client.c pack.c \ diff --git a/mariadb-5.1.44.tar.bz2 b/mariadb-5.1.44.tar.bz2 new file mode 100644 index 0000000..37e296e --- /dev/null +++ b/mariadb-5.1.44.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c8d4f5545d2dc740d1a84a6e11a61122ff25d20be37f35ea8816bba883f82f9 +size 16757135 diff --git a/mariadb.changes b/mariadb.changes new file mode 100644 index 0000000..d869dbb --- /dev/null +++ b/mariadb.changes @@ -0,0 +1,1610 @@ +------------------------------------------------------------------- +Mon Apr 26 10:34:41 CEST 2010 - mhrusecky@suse.cz + +- packaging MariaDB shared libraries to be used by client and tools + +------------------------------------------------------------------- +Wed Apr 7 10:26:52 CEST 2010 - mhrusecky@suse.cz + +- updated to MariaDB 5.1.44 + - changelog: + http://askmonty.org/wiki/index.php/Manual:MariaDB_5.1.44_Changelog + - release notes: + http://askmonty.org/wiki/index.php/Manual:MariaDB_5.1.44_Release_Notes + +------------------------------------------------------------------- +Wed Mar 17 17:44:37 UTC 2010 - mhrusecky@suse.cz + +- adapted to MariaDB 5.1.42 + - changelog: + http://askmonty.org/wiki/index.php/Manual:MariaDB_5.1.42_Changelog + - release notes: + http://askmonty.org/wiki/index.php/Manual:MariaDB_5.1.42_Release_Notes + +------------------------------------------------------------------- +Mon Mar 8 15:13:11 UTC 2010 - mhrusecky@suse.cz + +- updated to 5.1.44, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-43.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-44.html +- splitting out shared libmysqld shared library (quick dirty way) +- preparing spec file to be more general and easily adjustable to + other MySQL flavours + +------------------------------------------------------------------- +Sun Jan 10 00:57:25 CET 2010 - mhrusecky@suse.cz + +- updated to 5.1.42, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-42.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-41.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-40.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-39.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-38.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-37.html + +------------------------------------------------------------------- +Tue Dec 15 01:23:16 CET 2009 - jengelh@medozas.de + +- add baselibs.conf as a source + +------------------------------------------------------------------- +Tue Dec 1 17:52:18 CET 2009 - mhrusecky@suse.cz + +- removing compatibility symlink + - intended for 11.2 but never get there +- fixing various security issues (bnc#557669) + - upstream #47320 - checking server certificates (CVE-2009-4028) + - upstream #48291 - error handling in subqueries (CVE-2009-4019) + - upstream #47780 - preserving null_value flag in GeomFromWKB() + (CVE-2009-4019) + - upstream #39277 - symlink behaviour fixed (CVE-2008-7247) + - upstream #32167 - symlink behaviour refixed (CVE-2009-4030) + +------------------------------------------------------------------- +Wed Nov 11 14:23:43 CET 2009 - mhrusecky@suse.cz + +- making pid file readable by everybody +- fixing 'rcmysql status' for non-root + +------------------------------------------------------------------- +Thu Oct 29 14:11:09 CET 2009 - mhrusecky@suse.cz + +- adding /var/lib/mysql/mysql.sock symlink for compatibility with + applications for older versions +- using kill instead of killproc as killproc matches by default all + running MySQL instances (even KDE ones) +- checking for log consistency in rc script instead of post of spec + as it makes more sense + +------------------------------------------------------------------- +Fri Oct 16 09:32:35 UTC 2009 - adrian@suse.de + +- fix PreRequires or mysql package can't be used in build enviroment +- do not fail on usermod call in %pre as specified + +------------------------------------------------------------------- +Mon Oct 12 18:36:04 UTC 2009 - coolo@novell.com + +- fix prereq for usermod + +------------------------------------------------------------------- +Mon Oct 5 11:11:35 CEST 2009 - mhrusecky@suse.cz + +- fixed my.cnf rights (bnc#539249) +- fixed restart on update (bnc#520876) + +------------------------------------------------------------------- +Tue Sep 15 16:45:23 CEST 2009 - mhrusecky@suse.cz + +- Few better formulations in README.SuSE (bnc#539243) + +------------------------------------------------------------------- +Tue Aug 25 10:19:04 CEST 2009 - mhrusecky@suse.cz + +- Refixing bnc#420313 so mysql_config will return better values + +------------------------------------------------------------------- +Wed Aug 12 13:29:09 CEST 2009 - mhrusecky@suse.cz + +- Using configure option to enforce pthreads rwlocks on s390 instead + of sed substitution + +------------------------------------------------------------------- +Tue Jul 28 17:10:31 CEST 2009 - mhrusecky@suse.cz + +- Applying upstream patch for upstream bug#43594 + (hotcopy will ignore log tables) (bnc#525325) +- Not using bmove512 as it may slow things down + (see upstream bug#19975) + +------------------------------------------------------------------- +Mon Jul 27 14:45:24 CEST 2009 - mhrusecky@suse.cz + +- Applying upstream patch for upstream bug#36259 + 'Optimizing with ORDER BY' + +------------------------------------------------------------------- +Fri Jul 24 17:35:07 CEST 2009 - dmueller@suse.de + +- fix baselibs.conf (bnc#525065) + +------------------------------------------------------------------- +Tue Jul 7 11:19:05 CEST 2009 - mhrusecky@suse.cz + +- updated to 5.1.36, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-36.html + +------------------------------------------------------------------- +Fri Jun 26 11:09:34 CEST 2009 - mhrusecky@suse.cz + +- fixed rcmysql status + +------------------------------------------------------------------- +Tue Jun 23 19:33:08 CEST 2009 - mhrusecky@suse.cz + +- extra escaping in rc script just to be sure +- creating parent directories for logs when they don't exists +- rc script didn't always exited when it should +- checking for incompatible databases in way it can be logged + +------------------------------------------------------------------- +Fri Jun 19 13:17:44 CEST 2009 - mhrusecky@suse.cz + +- actualized README.SuSE + +------------------------------------------------------------------- +Tue Jun 16 14:32:00 CEST 2009 - mhrusecky@suse.cz + +- updated to 5.1.35, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-35.html +- fixed some tests + +------------------------------------------------------------------- +Mon Jun 8 13:33:35 CEST 2009 - mhrusecky@suse.cz + +- putting all log files to subdirectory in /var/log + +------------------------------------------------------------------- +Mon Jun 1 18:33:43 CEST 2009 - mhrusecky@suse.cz + +- moving socket back to /var/lib/mysql for people with old distributions + +------------------------------------------------------------------- +Sat May 2 13:43:40 CEST 2009 - chris@computersalat.de + +- fdupes fix for fedora + +------------------------------------------------------------------- +Fri May 1 17:55:12 CEST 2009 - chris@computersalat.de + +- beautify spec file + o some if's to get Fedora, Centos build +- to minimize effort for admins + o with-charset=utf8 + o with-collation=utf8_unicode_ci + +------------------------------------------------------------------- +Thu Apr 30 10:58:29 CEST 2009 - mhrusecky@suse.cz + +- adding upgrade log + +------------------------------------------------------------------- +Tue Apr 28 18:33:22 CEST 2009 - mhrusecky@suse.cz + +- fixed update so only one at the time is allowed + +------------------------------------------------------------------- +Fri Apr 24 17:27:11 CEST 2009 - mhrusecky@suse.cz + +- updated to 5.1.34, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-34.html +- added README.SuSE with notes about version 5.1 +- fixed migration problem from 5.0.X regarding moved pidfile + +------------------------------------------------------------------- +Fri Apr 10 14:40:54 CEST 2009 - mhrusecky@suse.cz + +- Fixed SSL support on 64-bit machines + +------------------------------------------------------------------- +Tue Apr 7 18:33:16 CEST 2009 - mhrusecky@suse.cz + +- Merging with development version of MySQL 5.1 + - following changes were committed since + Mon Oct 1 19:55:46 CEST 2007 when package development was + branched + * Fri Apr 3 16:05:02 CEST 2009 - mhrusecky@suse.cz + - better fix for rc status + - my_safe_process moved to %_bindir + * Thu Apr 2 18:41:08 CEST 2009 - mhrusecky@suse.cz + - updated to 5.1.33, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-33.html + - fixed path dependent build of scripts + * Tue Mar 17 19:10:09 CET 2009 - mhrusecky@suse.cz + - localstatedir is back to /var/lib/mysql as it is used as + default value for datadir + - fixed upgrade using datadir + * Tue Mar 17 18:23:35 CET 2009 - mhrusecky@suse.cz + - mysql_install_db now uses group option too + - log file migrated to /var/log + * Thu Mar 12 18:07:24 CET 2009 - mhrusecky@suse.cz + - Fixing mysql-test so it can be installed in + /usr/share/mysql-test + * Mon Mar 9 20:17:32 CET 2009 - mhrusecky@suse.cz + - Adjusting suse-test-run as there is no longer mysql-Max + package + * Fri Mar 6 15:59:40 CET 2009 - mhrusecky@suse.cz + - updated to 5.1.32, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-32.html + - mysql-5.1.31-test-allowed-packets.patch no longer needed + as it was fixed upstream + * Tue Mar 3 19:53:11 CET 2009 - mhrusecky@suse.cz + - moving tmp and socket/pidfiles directories to the better + location + * Mon Mar 2 14:40:19 CET 2009 - mhrusecky@suse.cz + - dropping mysql-storage-plugins package (now part of mysql + base package) + * Fri Feb 27 16:04:57 CET 2009 - mhrusecky@suse.cz + - fixed main.variables-big test + * Thu Feb 26 17:48:51 CET 2009 - mhrusecky@suse.cz + - fixed federated plugin to avoid versioning + - fixed main.mysqlbinlog_row_big test + - fixed dependencies and other things because of dropped + mysql-Max + * Mon Feb 23 17:28:38 CET 2009 - mhrusecky@suse.cz + - updated to 5.1.31, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-31.html + * mysql-5.1.30-test-daemon-sbin.patch no longer needed as + something better was accepted upstream + * mysql-openssl-test.patch is already in upstream too + * Mon Feb 23 15:25:22 CET 2009 - mhrusecky@suse.cz + - dropping unused rc.mysql file + - fixed status detection + * Fri Feb 20 15:06:22 CET 2009 - mhrusecky@suse.cz + - innodb support compiled as a static part of MySQL + - getting rid of sysconfig + * Tue Jan 20 18:39:38 CET 2009 - mhrusecky@suse.cz + - automatic plugins loading + * Mon Jan 5 18:34:40 CET 2009 - mhrusecky@suse.cz + - init script checks for relative paths (bnc#463586) + * Mon Dec 8 17:27:29 CET 2008 - mhrusecky@suse.cz + - updated to 5.1.30, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-28.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-29.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-30.html + - indentation in rc scripts fixed (bnc#435519) + - more comments and minor fixes in spec file + - using symlinks for mysql-test-run and mtr as these are the + same files and they needs some patching + - fixed some of the automatic tests + - dropping some patches which are no longer used + * Thu Sep 25 12:05:46 CEST 2008 - mmarek@suse.cz + - merged init script changes from the 5.0 package + * Wed Jul 30 14:57:46 CEST 2008 - mmarek@suse.cz + - updated to 5.1.26-rc, see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-26.html + * Fri Jul 4 12:58:41 CEST 2008 - mmarek@suse.cz + - updated to 5.1.25-rc, for changes see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-24.html + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-25.html + * Fri Mar 14 14:19:36 CET 2008 - mmarek@suse.cz + - fixed mysqld_multi.patch (bnc#371000) + * Fri Mar 14 13:31:01 CET 2008 - mmarek@suse.cz + - add 'user = mysql' to mysqld_multi example groups + * Fri Mar 14 09:06:11 CET 2008 - mmarek@suse.cz + - dropped README.SUSE (bnc#357634) + - moved mysql_upgrade to the server package (bnc#366820) + * Thu Mar 13 17:29:32 CET 2008 - mmarek@suse.cz + - adjusted license tags + * Wed Mar 12 18:48:52 CET 2008 - mmarek@suse.cz + - finally convert err-log to log-error in my.cnf + * Wed Mar 12 17:58:03 CET 2008 - mmarek@suse.cz + - shortened the comment in sysconfig.mysql, a detailed + description or HOWTO can be added to a README (created a + draft) + * Wed Mar 12 16:03:16 CET 2008 - mmarek@suse.cz + - don't preinstall /var/lib/mysql-databases, create datadirs + in mysqld_multi on first startup insteal + * Tue Mar 11 13:38:33 CET 2008 - mmarek@suse.cz + - updated to 5.1.23-rc + * fixes CVE-2007-5970 + * for other changes see + http://dev.mysql.com/doc/refman/5.1/en/news-5-1-23.html + * Tue Feb 12 12:00:00 CET 2008 - richard@radoeka.nl + - Added multi database support by + o updating /etc/init.d/mysql, it has now 2 legs the existing + one to start a single database, and a new one to start and + stop multiple database. + o Added a sysconfig variable + o Added a directory /var/lib/mysql-databases to hold + databases, + o Updated /etc/my.cnf with some examples database + configurations + * Fri Nov 9 15:51:08 CET 2007 - mmarek@suse.cz + - removed the sles9 workaround that's not needed anymore and + breaks sles9 builds instead + * Wed Oct 10 22:30:44 CEST 2007 - mmarek@suse.cz + - merged the standard and Max server packages + - example, csv and federated storage engines are packaged in + mysql-storage-plugins + - build the NDB cluster: + * mysql-ndb-storage + * mysql-ndb-management + * mysql-ndb-tools + * mysql-ndb-extra + - removed libmysqlclient static libraries and .la files + - moved libmysqlclient and libmysqld to %%_libdir, %%_libdir/mysql + will only be used for the server plugins + * Mon Oct 1 19:55:46 CEST 2007 - mmarek@suse.cz + - initial 5.1 packaging (5.1.22-rc) + * ported the 5.0 spec file to make it build at least + * highlights from the "What's New" list + (http://dev.mysql.com/doc/refman/5.1/en/mysql-nutshell.html): + - table partitioning + - plugin API + - event scheduler + - basic XML functions (ExtractValue() and UpdateXML()) + - mysqlslap load emulator + +------------------------------------------------------------------- +Mon Mar 30 01:05:45 CEST 2009 - crrodriguez@suse.de + +- configure flag --with-pic is not really used for libmysqld.a + restore -fPIC in CFLAGS + +------------------------------------------------------------------- +Tue Mar 3 02:15:37 CET 2009 - crrodriguez@suse.de + +- use --disable-static, note that this will only + remove static libraries that have shared counterparts, those + in static form only remain available as usual (saves around 6MB) +- remove "la" files + +------------------------------------------------------------------- +Wed Jan 7 12:34:56 CET 2009 - olh@suse.de + +- obsolete old -XXbit packages (bnc#437293) + +------------------------------------------------------------------- +Thu Oct 23 18:24:37 CEST 2008 - mmarek@suse.cz + +- fix mysql_install_db when the hostname is 'localhost' + (bnc#429618, mysql#35754) + +------------------------------------------------------------------- +Thu Sep 25 16:45:53 CEST 2008 - mmarek@suse.cz + +- build -max and -debug with --with-big-tables and archive, csv, + example, blackhole and federated engines to match the binary + builds provided by MySQL (bnc#427384) + +------------------------------------------------------------------- +Fri Sep 12 18:33:47 CEST 2008 - mmarek@suse.cz + +- better fix for CVE-2008-2079 (bnc#425079, mysql#32167) + +------------------------------------------------------------------- +Fri Sep 12 15:37:25 CEST 2008 - mmarek@suse.de + +- remove no longer needed s390 workaround + +------------------------------------------------------------------- +Tue Sep 2 11:08:38 CEST 2008 - mmarek@suse.cz + +- fix mysql_config --libs output (bnc#420313, mysql#39175) + +------------------------------------------------------------------- +Mon Aug 25 10:04:20 CEST 2008 - mmarek@suse.cz + +- updated to 5.0.67, for changes see + http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-67.html + + +------------------------------------------------------------------- +Mon Aug 18 15:48:07 CEST 2008 - mmarek@suse.de + +- add Required-Stop: $network $remote_fs to the init script + +------------------------------------------------------------------- +Fri May 30 15:35:17 CEST 2008 - mmarek@suse.cz + +- fix a race in rcmysql restart between the old mysql removing it's + pid file and exiting - use checkproc -p (bnc#359522, bnc#332530, + #395710) + +------------------------------------------------------------------- +Thu May 22 22:02:23 CEST 2008 - mmarek@suse.cz + +- increase timeout in rcmysql stop, should fix failed restarts + (bnc#359522, bnc#332530) + +------------------------------------------------------------------- +Mon May 19 15:02:38 CEST 2008 - mmarek@suse.cz + +- fixed a privilege bypass with DATA/INDEX DIRECTORY + (bnc#387746, mysql#32167, CVE-2008-2079) + +------------------------------------------------------------------- +Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de + +- added baselibs.conf file to build xxbit packages + for multilib support + +------------------------------------------------------------------- +Fri Mar 14 14:19:36 CET 2008 - mmarek@suse.cz + +- fixed mysqld_multi.patch (bnc#371000) + +------------------------------------------------------------------- +Fri Mar 14 13:31:01 CET 2008 - mmarek@suse.cz + +- add 'user = mysql' to mysqld_multi example groups + +------------------------------------------------------------------- +Fri Mar 14 09:21:41 CET 2008 - mmarek@suse.cz + +- synced with server:database:mysql51 +- dropped README.SUSE (bnc#357634) +- moved mysql_upgrade to the server package (bnc#366820) +- adjusted license tags +- finally convert err-log to log-error in my.cnf +- Added multi database support by + o updating /etc/init.d/mysql, it has now 2 legs the existing one to start + a single database, and a new one to start and stop multiple database. + o Added a sysconfig variable + o Updated /etc/my.cnf with some examples database configurations + (Done by Richard Bos, minor edits by me, bnc#353120) + + +------------------------------------------------------------------- +Tue Feb 26 13:50:00 CET 2008 - mmarek@suse.cz + +- updated to 5.0.51a + * incorporates previous security fixes + +------------------------------------------------------------------- +Fri Jan 4 15:25:50 CET 2008 - mmarek@suse.cz + +- updated to 5.0.51 + * statements that contain unclosed /*-comments now are rejected + with a syntax error [mysql#28779] + * server parser performance improvements [mysql#30625, + mysql#30237] + * security fix: CVE-2007-5969 / mysql#32111 + * for a full list of changes, see + http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-51.html +- fixed CVE-2007-6303 / mysql#29908 +- fixed CVE-2007-6304 / mysql#29801 +- fixed several testsuite failures + (mybug25359.patch, mybug32458.patch, mybug33050.patch) + +------------------------------------------------------------------- +Wed Dec 26 07:45:12 CET 2007 - crrodriguez@suse.de + +- fix library-without-ldconfig-postun + +------------------------------------------------------------------- +Thu Nov 8 13:39:51 CET 2007 - mmarek@suse.cz + +- avoid using distributed pregenerated files instead of + files generated in the builddirs + +------------------------------------------------------------------- +Fri Aug 31 13:46:48 CEST 2007 - mmarek@suse.cz + +- make sure mysql-shared is replaced by libmysqlclient15 when + updating from 10.1 or 10.2 [#306556] + +------------------------------------------------------------------- +Wed Aug 29 17:55:40 CEST 2007 - mmarek@suse.cz + +- fix for http://bugs.mysql.com/30069 + (thanks to Richard Guenther) + +------------------------------------------------------------------- +Tue Aug 21 10:21:49 CEST 2007 - mmarek@suse.cz + +- make TMPDIR relative to datadir= setting in /etc/my.cnf +- add a hint about changing datadir to rcmysql [#285076] + +------------------------------------------------------------------- +Fri Jul 27 11:14:56 CEST 2007 - mmarek@suse.cz + +- updated to 5.0.45, for changes see + http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-45.html + +------------------------------------------------------------------- +Mon Jul 2 10:58:59 CEST 2007 - mmarek@suse.cz + +- mysql_upgrade: don't fail if the db is already up-to-date + [#287209] (mysql_upgrade-exit-status.patch) + +------------------------------------------------------------------- +Mon Jun 4 15:14:50 CEST 2007 - mmarek@suse.cz + +- updated the mysql-test package (there are still some failures + that don't occur during build-time tests) +- use a new version of the mysql_upgrade program, which finally + handles errors from /usr/bin/mysql correctly + +------------------------------------------------------------------- +Fri Jun 1 09:15:49 CEST 2007 - mmarek@suse.cz + +- fixed build for older distributions in the buildservice + +------------------------------------------------------------------- +Tue May 29 12:58:35 CEST 2007 - mmarek@suse.de + +- run ldconfig in %%post of library packages +- don't copy example my.cnf files to /usr/share/doc (they're + already installed in /usr/share/mysql +- fixed libmysqlclient-devel dependencies + +------------------------------------------------------------------- +Mon May 28 10:34:45 CEST 2007 - mmarek@suse.cz + +- updated to 5.0.41, for changes see + http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-37.html + http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-41.html +- fixed --with testsuite build [#252630] +- renamed subpackages according to library packaging policy: + mysql-shared -> libmysqlclient15, libmysqlclient_r15 + mysql-devel -> libmysqlclient-devel (pulls in both flavors) +- increased rcmysql start timeout to 30 seconds, don't return + failure if mysql doesn't start early enough (except for update + case) [#273938] + +------------------------------------------------------------------- +Thu Mar 29 10:58:14 CEST 2007 - mmarek@suse.de + +- BuildRequires fixes: + + ncurses-devel + + zlib-devel + + procps (configure needs /bin/ps) + + pwdutils (to be able to install the package in the build root) + + use sed instead of ex in the s390 workaround +- build with -DFORCE_INIT_OF_VARS to get rid of some uninitialized + variable warnings + +------------------------------------------------------------------- +Mon Mar 12 10:16:55 CET 2007 - mmarek@suse.cz + +- added openssl-devel to Requires: of mysql-devel to fix build of + packages using mysql-devel + +------------------------------------------------------------------- +Thu Feb 22 17:20:33 CET 2007 - mmarek@suse.cz + +- updated to 5.0.33, see + http://dev.mysql.com/doc/refman/5.0/en/releasenotes-cs-5-0-33.html + for a list of changes +- added SuSEfirewall2 description file [#246917] +- print a friendly message about "Duplicate column" errors in + mysql_upgrade + [#228248] (mysql_upgrade.patch) +- fixed a typo in /etc/logrotate/mysql [#244620] +- build the client, libraries and the Max server with OpenSSL + support (FIXME: not yet tested, there are some failures in the + testsuite) +- don't package the PDF manual (it's constantly out of date and it + might make more sense to create a noarch mysql-manual.rpm or just + point users to http://dev.mysql.com/doc/ instead) +- don't link libmysql to the various client binaries statically +- created a new mysql-tools subpackage with scripts / binaries + that aren't essential for the client and server packages and + bring additional deps (perl-DBD-mysql namely) +- use VPATH builds for building the different server versions for + easier debugging (no 'make clean' in-between) +- build the client and libraries only once to save build time + (mysql-build-only-server.patch) +- cleaned up spec file + +------------------------------------------------------------------- +Mon Jan 22 15:18:36 CET 2007 - mmarek@suse.cz + +- silence some gcc warnings (compiler-warnings.patch) + +------------------------------------------------------------------- +Wed Jan 3 12:09:38 CET 2007 - mmarek@suse.cz + +- mysql-devel doesn't need mysql-client [#231010] + +------------------------------------------------------------------- +Tue Dec 19 11:54:45 CET 2006 - mmarek@suse.cz + +- updated to 5.0.27 + * includes the fix for http://bugs.mysql.com/bug.php?id=23427 +- fixed build with tar-1.16 +- fixed small typo in README.SuSE, renamed to README.SUSE [#226716] + +------------------------------------------------------------------- +Thu Nov 23 11:28:15 CET 2006 - mmarek@suse.de + +- don't run killproc in rcmysql to avoid sending SIGKILL if + possible [#223209] + +------------------------------------------------------------------- +Wed Nov 15 17:16:46 CET 2006 - mmarek@suse.de + +- create user mysql with shell /bin/false, because 'su mysql' is + not needed anymore (see bug #57071) + +------------------------------------------------------------------- +Wed Nov 15 12:30:43 CET 2006 - mmarek@suse.cz + +- use /var/lib/mysql/.tmp instead of /var/lib/mysql/tmp to avoid + collision with a database named 'tmp' [#221188] + +------------------------------------------------------------------- +Tue Nov 14 12:10:16 CET 2006 - mmarek@suse.cz + +- use upstream patch for the varbinary upgrade problem (fixes the + problem in the REPAIR TABLE implementation, not in the mysqlcheck + program) + [#188134, http://bugs.mysql.com/bug.php?id=19371] + +------------------------------------------------------------------- +Tue Oct 31 16:56:24 CET 2006 - mmarek@suse.cz + +- fixed another binary incompatibility in mysql-shared + [http://bugs.mysql.com/bug.php?id=23427] (mybug23427.patch) + +------------------------------------------------------------------- +Thu Oct 19 16:02:59 CEST 2006 - pnemec@suse.cz + +- updated to 5.0.26 + * fixes security bugs CVE-2006-4226 and CVE-2006-4227 + * Ctrl-C in the mysql CLI client tries to kill the current + statement first, instead of exiting + * mysqlshow treats wild characters such as '_' as literal, if the + argument matches a single database name exactly + * DROP VIEW with multiple views will try to drop remaining views + and not stop at first error + * the server now issues a warning if it removes leading spaces + from an alias + * the VIEW_DEFINITION column of the INFORMATION_SCHEMA VIEWS + table now contains information about the view algorithm + * mysql_upgrade doesn't read the [client] section of my.cnf, only + the [mysql_upgrade] section + * the LOAD DATA FROM MASTER and LOAD TABLE FROM MASTER statements + are deprecated, see + http://dev.mysql.com/doc/refman/5.0/en/load-data-from-master.html + * mysqldump now has a --flush-privileges option. It causes + mysqldump to emit a FLUSH PRIVILEGES statement after dumping + the mysql database + * lots of bugfixes +- new patch uninitialized_variable.patch + +------------------------------------------------------------------- +Mon Oct 16 10:37:29 CEST 2006 - mmarek@suse.cz + +- The ISAM storage engine is no longer supported, update the + warning in rc.mysql. + +------------------------------------------------------------------- +Mon Oct 2 13:17:19 CEST 2006 - mmarek@suse.cz + +- updated to version 5.0.24a + * fixes a binary incompatibility of mysql-shared introduced in + 5.0.24 + * fixes a buffer overflow caused by statements with long DEFINER + clause + * fixes crash when closing temporary tables + +------------------------------------------------------------------- +Mon Sep 11 19:45:32 CEST 2006 - joeshaw@suse.de + +- Add the libmysqld static libraries to the devel package. + +------------------------------------------------------------------- +Wed Aug 16 16:17:39 CEST 2006 - mmarek@suse.cz + +- updated to version 5.0.24 + * added the --ssl-verify-server-cert option to MySQL client + programs and MYSQL_OPT_SSL_VERIFY_SERVER_CERT for + mysql_options() + * new ssl_ca, ssl_capath, ssl_cert, ssl_cipher, and ssl_key + system variables + * added --skip-merge option to disable the MERGE storage engine, + because it has a minor security problem + [http://bugs.mysql.com/20230] + * mysql_upgrade script reimplemented in C + * bug fixes +- dropped obsolete CVE-2006-0903.patch and pick_args.patch, + added my_libwrap.patch [http://bugs.mysql.com/18246] + +------------------------------------------------------------------- +Tue Aug 1 16:46:22 CEST 2006 - mmarek@suse.cz + +- removed Recommends: from mysql-debug, it doesn't work on older + dists + +------------------------------------------------------------------- +Mon Jul 31 16:14:05 CEST 2006 - mmarek@suse.cz + +- created a new mysql-debug package compiled with --with-debug + and removed the --with debug rpmbuild option +- fixed --core-file option to really work when the server is + started by root + (coredump.patch) [http://bugs.mysql.com/bug.php?id=21361] +- added a README.debug describing how to debug mysqld crashes +- cleaned up rc.mysql a bit +- the server depends on a minimal mysql-client version to make + sure a recent mysqlcheck is available for rc.mysql + +------------------------------------------------------------------- +Mon Jul 31 10:03:39 CEST 2006 - mmarek@suse.cz + +- fixed some leaks and overflos in varbinary-upgrade.patch + +------------------------------------------------------------------- +Fri Jul 21 10:28:09 CEST 2006 - mmarek@suse.cz + +- workaround an incompatibility with pre-5.0 varbinary fields: + update the .frm file and remove trailing zeros and spaces + in 'mysqlcheck --check-upgrade' + [#188134, http://bugs.mysql.com/bug.php?id=19371] + (varbinary-upgrade.patch) + +------------------------------------------------------------------- +Fri Jun 30 15:17:39 CEST 2006 - mmarek@suse.cz + +- use --skip-networking when running the server with + --skip-grant-tables in rcmysql (problem reported by Lenz Grimmer) + +------------------------------------------------------------------- +Mon Jun 19 10:48:57 CEST 2006 - mmarek@suse.cz + +- updated to 5.0.22 + * new mysql_upgrade script for easies upgrades from previous + versions + * libmysqlclient.so uses versioned symbols + * new 'charset' command in the mysql client to switch charsets + without reconnecting + * lots of bugfixes +- modified rcmysql to use the mysql_upgrade script +- the testsuite can be run in %%build again (run + rpmbuild --with testsuite ... mysql.spec) +- dropped patches: lib64.patch, sql_parse.patch + +------------------------------------------------------------------- +Thu Jun 1 14:32:13 CEST 2006 - mmarek@suse.cz + +- build as user + +------------------------------------------------------------------- +Wed May 3 13:59:11 CEST 2006 - mmarek@suse.cz + +- fix buffer overflow and and reading uninitialized memory using + the COM_TABLE_DUMP protocol command (fix from the 5.0.21 release) + [#172155] (sql_parse.patch) + +------------------------------------------------------------------- +Tue Apr 4 13:58:58 CEST 2006 - mmarek@suse.cz + +- don't allow \0 in SQL even in comments + [#163157] (CVE-2006-0903.patch) + +------------------------------------------------------------------- +Mon Mar 27 13:54:20 CEST 2006 - mmarek@suse.cz + +- require mysql-shared = %%version in mysql-devel + +------------------------------------------------------------------- +Tue Mar 7 11:14:53 CET 2006 - mmarek@suse.cz + +- mail error message and explanation in logrotote script + [#155341] (logrotate.patch) + +------------------------------------------------------------------- +Mon Mar 6 12:45:30 CET 2006 - mmarek@suse.cz + +- make err-log option work again +- put a symlink to the logfile into /var/log + [#155341] (4x-compat.patch) + +------------------------------------------------------------------- +Tue Jan 31 18:23:44 CET 2006 - mmarek@suse.cz + +- run mysql_fix_privilege_tables.sql when upgrading from 4.1 + [#146739] + +------------------------------------------------------------------- +Wed Jan 25 21:38:29 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Tue Jan 10 14:49:32 CET 2006 - mmarek@suse.cz + +- created a new package mysql-test +- removed unnecessary %%suse_update_config + +------------------------------------------------------------------- +Mon Jan 2 13:32:53 CET 2006 - mmarek@suse.cz + +- update to 5.0.18 + +------------------------------------------------------------------- +Tue Dec 6 09:36:35 CET 2005 - mmarek@suse.cz + +- update to 5.0.16 + +------------------------------------------------------------------- +Thu Dec 1 10:54:15 CET 2005 - mmarek@suse.cz + +- try postadal's update in BETA + +------------------------------------------------------------------- +Tue Oct 25 20:28:02 CEST 2005 - postadal@suse.cz + +- updated to version 5.0.15 [#119929] +- removed obsoleted buffer-overflow.patch +- fixed gcc issue + +------------------------------------------------------------------- +Thu Sep 1 12:19:57 CEST 2005 - pnemec@suse.cz + +- fixed bug #95729 : set $TMPDIR to /var/lib/mysql/tmp + +------------------------------------------------------------------- +Tue Aug 30 17:59:08 CEST 2005 - lmuelle@suse.de + +- Use MySQL for any output of the init script and add a space at each line we + output. + +------------------------------------------------------------------- +Tue Jul 26 18:30:33 CEST 2005 - postadal@suse.cz + +- updated to version 4.1.13 +- removed obsoleted sentinel.patch +- added glibc-devel zlib-devel to devel requires + +------------------------------------------------------------------- +Fri May 20 15:56:01 CEST 2005 - mcihar@suse.cz + +- update to 4.1.12 (fixes tmp race, bug #84740) + +------------------------------------------------------------------- +Fri Apr 22 15:54:17 CEST 2005 - mcihar@suse.cz + +- fix buffer overflow in test + +------------------------------------------------------------------- +Thu Apr 21 08:37:42 CEST 2005 - tcrhak@suse.de + +- use $datadir when initializing a new database (bug #63707) + +------------------------------------------------------------------- +Wed Apr 6 12:20:11 CEST 2005 - mcihar@suse.cz + +- update to 4.1.11 +- compile against readline (bug #75901) + +------------------------------------------------------------------- +Sun Apr 3 12:43:10 CEST 2005 - aj@suse.de + +- Fix GCC 4 warning. + +------------------------------------------------------------------- +Fri Apr 1 14:39:04 CEST 2005 - mcihar@suse.cz + +- enable ISAM engine (bug #75320) +- warn about existing ISAM tables (bug #75320) +- fix init script to update MySQL tables on upgrade (bug #75321) + +------------------------------------------------------------------- +Thu Mar 10 11:33:17 CET 2005 - mcihar@suse.cz + +- update to 4.1.10a (bug #71788) + +------------------------------------------------------------------- +Tue Feb 15 14:25:12 CET 2005 - mcihar@suse.cz + +- update to 4.1.10 (bug #50825) + +------------------------------------------------------------------- +Thu Feb 10 15:08:33 CET 2005 - mcihar@suse.cz + +- disable actually test also for second build + +------------------------------------------------------------------- +Tue Feb 8 15:25:50 CET 2005 - mcihar@suse.cz + +- remove tests at all, these timeout in autobuild and work okay when + building manyally + +------------------------------------------------------------------- +Fri Feb 4 17:40:44 CET 2005 - mcihar@suse.cz + +- increase test timeout not to fail so often + +------------------------------------------------------------------- +Mon Jan 24 18:46:30 CET 2005 - mcihar@suse.cz + +- update to 4.1.9 +- normal version now also supports InnoDB as well as original MySQL packages +- update mysql tables on server start if needed + +------------------------------------------------------------------- +Fri Sep 17 16:32:32 CEST 2004 - ro@suse.de + +- added symlinks for libmysqlclient_r also in libdir/mysql + +------------------------------------------------------------------- +Fri Sep 17 14:00:23 CEST 2004 - tcrhak@suse.cz + +- added symlink libmysqlclient_r.so -> libmysqlclient_r.so.12.0.0 + to the file list of mysql-devel (bug #44700) + +------------------------------------------------------------------- +Fri Sep 10 16:41:04 CEST 2004 - tcrhak@suse.cz + +- update to 4.0.21 + +------------------------------------------------------------------- +Thu Sep 02 10:50:22 CEST 2004 - tcrhak@suse.cz + +- do not use /var/adm/notify for notification mails (bug #44357) +- updated README.SuSE (bug #44332) +- be more verbose in the initial welcome message of mysql_install_db + (also bug #44332) + +------------------------------------------------------------------- +Thu Aug 19 13:35:09 CEST 2004 - tcrhak@suse.cz + +- update to version 4.0.20 +- use group 'mysql' instead of 'daemon' for mysqld (bug #42071) +- fixed a lib64 issue in mysql_config +- applied patch for a security hole in mysqlhotcopy (bug #43829) +- fixed a typo in rcmysql (bug #41055) +- fix in order not to use initgroups() (caused segfault when used + with ldap, bug #39798) + +------------------------------------------------------------------- +Fri Apr 02 14:07:42 CEST 2004 - tcrhak@suse.cz + +- fixed tmp race in mysqlbug (bug #37115) + +------------------------------------------------------------------- +Wed Mar 31 11:39:54 CEST 2004 - tcrhak@suse.cz + +- mysql: added dependency on perl-DBD-mysql (bug #36500) +- fixed timezone.test (patch timezone) + +------------------------------------------------------------------- +Sat Mar 27 19:09:25 CET 2004 - ro@suse.de + +- mysql-bench: replace perl-Msql-Mysql-modules by perl-DBD-mysql + in requires + +------------------------------------------------------------------- +Wed Mar 17 16:38:21 CET 2004 - tcrhak@suse.cz + +- use -f when running hostname in mysql_install_db (bug #36060) + +------------------------------------------------------------------- +Fri Feb 20 10:42:00 CET 2004 - tcrhak@suse.cz + +- added /usr/bin/myisam_ftdump to filelist +- updated manual.pdf to the latest version (2004-02-20) + +------------------------------------------------------------------- +Wed Feb 18 13:00:25 CET 2004 - tcrhak@suse.cz + +- update to version 4.0.18 + +------------------------------------------------------------------- +Fri Feb 6 11:05:40 CET 2004 - kukuk@suse.de + +- Compile with -fno-strict-aliasing + +------------------------------------------------------------------- +Wed Oct 29 17:18:33 CET 2003 - tcrhak@suse.cz + +- use socket to detect the start of mysqld instead + of 'mysqladmin ping' again [bug #31605] + +------------------------------------------------------------------- +Tue Sep 16 12:47:18 CEST 2003 - tcrhak@suse.cz + +- fixed the postrotate script [bug #30985] + +------------------------------------------------------------------- +Mon Sep 15 20:25:10 CEST 2003 - tcrhak@suse.cz + +- fixed bogus 'start failed' reporting [bug #30210] + +------------------------------------------------------------------- +Thu Sep 11 14:43:19 CEST 2003 - tcrhak@suse.cz + +- update to version 4.0.15 + +------------------------------------------------------------------- +Thu Aug 28 13:05:51 CEST 2003 - meissner@suse.de + +- Readded ppc/ppc64 mutex patch. + +------------------------------------------------------------------- +Mon Aug 25 09:09:01 CEST 2003 - tcrhak@suse.cz + +- updated to version 4.0.14 +- added patch overflow +- added macros %stop_on_removal and %restart_on_update +- updated the pdf manual to version 2003-08-22 + +------------------------------------------------------------------- +Fri May 30 16:22:59 CEST 2003 - tcrhak@suse.cz + +- fixed installed unpacked files + +------------------------------------------------------------------- +Fri May 16 18:29:57 CEST 2003 - tcrhak@suse.cz + +- update to version 4.0.12 +- require mysql-client in the main package (needed for logrotate) +- use mysqladmin ping in logrotate script +- commented out log_bin in my.cnf (my-medium.cnf) (bug #26716) + +------------------------------------------------------------------- +Thu Apr 24 12:20:23 CEST 2003 - ro@suse.de + +- fix install_info --delete call and move from preun to postun + +------------------------------------------------------------------- +Fri Mar 7 12:13:25 CET 2003 - kukuk@suse.de + +- Fix useradd options + +------------------------------------------------------------------- +Sun Feb 23 11:05:06 CET 2003 - tcrhak@suse.cz + +- added %fillup_prereq and %insserv_prereq [bug #24039] + +------------------------------------------------------------------- +Fri Feb 14 12:31:40 CET 2003 - tcrhak@suse.cz + +- updated to version 3.23.55 +- updated the pdf manual to version 2002-07-26 +- fixed script mysql_install_db to use mysql-max if present + ( necessary if e.g. options concerning innodb are + uncommented prior to starting mysqld ) +- on start-up, detach from the terminal [bug #18440] +- added %install_info macros + +------------------------------------------------------------------- +Fri Jan 17 13:14:25 CET 2003 - bg@suse.de + +- Disabled berkeley db backend for hppa + +------------------------------------------------------------------- +Mon Dec 2 14:49:52 CET 2002 - ro@suse.de + +- include errno.h + +------------------------------------------------------------------- +Tue Sep 17 17:34:28 CEST 2002 - ro@suse.de + +- removed bogus self-provides + +------------------------------------------------------------------- +Sat Aug 24 16:09:52 CEST 2002 - kukuk@suse.de + +- Disabled berkeley db backend for SPARC + +------------------------------------------------------------------- +Mon Aug 19 18:55:07 CEST 2002 - bk@suse.de + +- Update to 3.23.52, which is a bugfix release for 3.23.51. Fixes (trimmed): + o Fixed security bug when having an empty database name in the user.db table. + o Changed initialisation of RND() to make it less predicatable. + o Fixed GROUP BY on result with expression that created a BLOB field. + o Fixed thread bug in SLAVE START, SLAVE STOP and automatic repair of MyISAM + tables that could cause table cache to be corrupted. + o Fixed possible thread related key-cache-corruption problem with OPTIMIZE + TABLE and REPAIR TABLE. + o Fixed bug with creating an auto-increment value on second part of a UNIQUE() + key where first part could contain NULL values. + o Don't write slave-timeout reconnects to the error log. + o Fixed bug with slave net read timeouting + o Fixed a core-dump bug with MERGE tables and MAX() function. + o Fixed bug in ALTER TABLE with BDB tables. + o Fixed bug when logging LOAD DATA INFILE to binary log with no active database. + o Fixed a bug in range optimiser (causing crashes). + o Fixed possible problem in replication when doing DROP DATABASE on a database + with InnoDB tables. +- add fileutils to PreReq and use echo instead of cat. + +------------------------------------------------------------------- +Mon Aug 12 14:22:35 CEST 2002 - max@suse.de + +- Using pthread mutexes instead of atomic_* on s390 and s390x, + because mysql casts &int to (atomic_t *) when calling the atomic + functions which breaks the alignment constraints of atomic_t. + +------------------------------------------------------------------- +Tue Jul 23 20:33:25 CEST 2002 - kukuk@suse.de + +- Fix useradd call + +------------------------------------------------------------------- +Mon Jul 22 10:51:28 CEST 2002 - kukuk@suse.de + +- Create user mysql + +------------------------------------------------------------------- +Mon Jul 22 09:57:30 CEST 2002 - max@suse.de + +- New version: 3.23.51. +- Init script doesn't source /etc/rc.config anymore [#17122]. +- Disabled berkeley db backend for alpha and x86_64 as well. +- Still breaks on s390x, and x86_64. + +------------------------------------------------------------------- +Fri Jun 14 16:43:46 CEST 2002 - meissner@suse.de + +- Reenabled make test. +- Rerun auto* tools so libtool works on ppc64. +- Do not use the berkeley DB backend on s390,s390x,ppc,ppc64,axp,mips + (needs to be fixed some time) +- Use generic AC_SYS_LARGEFILE macro. +- Do not use asm/atomic stuff on ppc64 (long vs int problem). +- Use CONFIG_SMP for other asm/atomic stuff instead of __SMP__. + +------------------------------------------------------------------- +Mon May 27 12:11:31 CEST 2002 - meissner@suse.de + +- Disabled make test for x86_64 for now. +- More %_lib fixes, packaged libmysqlclient.so symlink into devel, the + rest *.so.* into shared. + +------------------------------------------------------------------- +Wed Apr 24 12:57:49 CEST 2002 - meissner@suse.de + +- started x86_64 work. Implemented required fast mutex, + now only the test suite fail. + +------------------------------------------------------------------- +Fri Feb 15 16:07:35 CET 2002 - grimmer@suse.de + +- Update to 3.23.48 (bugfixes) - MySQL 3.23 is now considered + STABLE! + * Fixed bug in complicated join with const tables + * Added internal safety checks for InnoDB + * SHOW GRANTS now shows REFERENCES instead of REFERENCE +- use more libdir macros +- safe_mysqld logfile has been renamed from + /var/lib/mysql/.log to /var/lib/mysql/mysqld.log and + is properly rotated by logrotate +- updated README.SuSE + +------------------------------------------------------------------- +Wed Jan 30 17:10:08 CET 2002 - grimmer@suse.de + +- Update to 3.23.47 (bugfixes) - see the following URLs for the + full list of changes: + http://www.mysql.com/doc/N/e/News-3.23.47.html +- re-enabled and adjusted inline-patch +- use libdir and prefix macros in configure call + +------------------------------------------------------------------- +Thu Dec 20 13:38:29 CET 2001 - grimmer@suse.de + +- added /etc/logrotate.d/mysql +- added log-rotate.patch to fit SuSEs logrotating better +- added debugging symbols and /usr/bin/resolve_stack_dump +- reworked installation section in spec file (create all + directories first) + +------------------------------------------------------------------- +Mon Dec 17 10:20:38 CET 2001 - grimmer@suse.de + +- Update to 3.23.46 (bugfixes) - see the following URLs for the + full list of changes: + http://www.mysql.com/doc/N/e/News-3.23.45.html + http://www.mysql.com/doc/N/e/News-3.23.46.html +- Changed ldflags from "all-static" to "static" and make sure + to archive *.lai files as well before recompiling (required + to build Midgard), thanks to schwab@suse.de for the patch +- changed mysql-shared file list from /usr/lib/libmysqlclient.so* + to /usr/lib/libmysqlclient.so.* +- removed START_MYSQL rc.config entry for SuSE Linux 8.0, adapted + spec file to reflect this change +- updated README.SuSE + +------------------------------------------------------------------- +Wed Nov 21 21:52:49 CET 2001 - grimmer@suse.de + +- added check for "socket=" variable in function "parse_arguments" + in the mysql init script (thanks to Aivo Kalu and Peter Marschall + for spotting this) - the init script would issue a "failed" + notice, if the socket variable had been changed to a different + path than /var/lib/mysql/mysql.sock in /etc/my.cnf even though + the MySQL daemon would be up and running [#12411] + +------------------------------------------------------------------- +Thu Nov 15 21:35:23 CET 2001 - grimmer@suse.de + +- Update to 3.23.44 (bugfixes) - see the following URLs for the + full list of changes: + http://www.mysql.com/doc/N/e/News-3.23.43.html + http://www.mysql.com/doc/N/e/News-3.23.44.html +- added "-felide-constructors -fno-exceptions -fno-rtti" to + CXXFLAGS in spec file (thanks to Monty Widenius for pointing + this out) +- Updated manual.pdf +- disabled inline patch (not required anymore) +- Install /etc/mysqlaccess.conf with permissions set to "640" + instead of "755" [#10871] + +------------------------------------------------------------------- +Mon Oct 1 11:23:10 CEST 2001 - schwab@suse.de + +- Add patch to allow compilation even if the compiler decides to + not actually inline the two largest inline functions, + page_dir_slot_check() and btr_search_check_guess(). +- Don't run automake, fix the extra dependency instead. + +------------------------------------------------------------------- +Mon Sep 17 15:29:30 CEST 2001 - grimmer@suse.de + +- Update to 3.23.42 (bugfixes) - the following bugs were fixed: + * Fixed problem when using LOCK TABLES and BDB tables. + * Fixed problem with REPAIR TABLE on MyISAM tables with row + lengths between 65517 - 65520 bytes + * Fixed rare hang when doing mysqladmin shutdown when there + was a lot of activity in other threads. + * Fixed problem with INSERT DELAYED where delay thread could + be hanging on upgrading locks without any apparent reasons. + * Fixed problem with myisampack and BLOB. + * Fixes problem when one edited .MRG tables by hand. (Patch + from Benjamin Pflugmann). + * Enforce that all tables in a MERGE table come from the same + database. + * Fixed bug with LOAD DATA INFILE and transactional tables. + * Fix bug when using INSERT DELAYED with wrong column definition. + * Fixed coredump during REPAIR of some particularly broken tables. + * Fixed bug in InnoDB and AUTO_INCREMENT columns. + * Fixed bug in InnoDB and RENAME TABLE columns. + * Fixed critical bug in InnoDB and BLOB columns. If one has used + BLOB columns larger than 8000 bytes in an InnoDB table, one + must dump the table with mysqldump, drop it and restore it + from the dump. + * Applied large patch for OS/2 from Yuri Dario. + * Fixed problem with InnoDB when one could get the error + Can't execute the given command... even when one didn't have + an active transaction. + * Applied some minor fixes that concern Gemini. + * Use real arithmetic operations even in integer context if not + all arguments are integers. (Fixes uncommon bug in some integer + contexts). + * Don't force everything to lower cases on Windows. (To fix + problem with Windows and ALTER TABLE). Now --lower_case_names + also works on Unix. + * Fixed that automatic rollback that is done when thread end + doesn't lock other threads. + +------------------------------------------------------------------- +Tue Aug 14 14:11:40 CEST 2001 - grimmer@suse.de + +- Update to 3.23.41 (bugfixes, see the changelog at + http://www.mysql.com/doc/N/e/News-3.23.41.html for details) + +------------------------------------------------------------------- +Mon Jul 30 14:15:29 CEST 2001 - grimmer@suse.de + +- Update to 3.23.40 (see the changelogs at + http://www.mysql.com/doc/N/e/News-3.23.x.html for details) +- spec file: added mysql-Max subpackage that includes all the + new bells and whistles (BerkeleyDB, InnoDB) +- spec file: added "--with-libwrap" compile option to enable + TCP wrapper support +- spec file: reworked the build and install section to ease + the creation of mysqld-max +- rc.mysql: fixed two (trivial) typos +- rc.mysql: make sure to test for mysqld-max as well before + trying to start up +- spec file: moved "replace" and "perror" binaries incl. + man pages to the mysql-client package +- spec file: corrected URLs +- manual.pdf: update to current version +- README.SuSE: updated to document the above changes + +------------------------------------------------------------------- +Fri May 4 20:35:32 CEST 2001 - grimmer@suse.de + +- Fixed a nasty bug when updating after the database files + have been copied to the new location, but the old ones have + not been removed (#7692) - thanks to Jochen Schulz + for spotting this one. + +------------------------------------------------------------------- +Sat Apr 28 19:03:03 CEST 2001 - grimmer@suse.de + +- Update to 3.23.37 (bugfixes, see + http://www.mysql.com/doc/N/e/News-3.23.37.html for full + changelog) +- fixed init script, now start MySQL using the wrapper script + "safe_mysqld" instead of mysqld again (logging did not work), + fixes for bug [#6876] and [#6840] +- we currently do not enable MySQL-Max, since it is still + considered beta (http://www.mysql.com/downloads/mysql-max-3.23.html) + +------------------------------------------------------------------- +Thu Apr 12 14:35:13 CEST 2001 - grimmer@suse.de + +- Update to 3.23.36 (bugfix and security release) + full Changelogs for Changes between 3.23.33 and 3.23.36 are here: + http://www.mysql.com/doc/N/e/News-3.23.36.html + http://www.mysql.com/doc/N/e/News-3.23.35.html + http://www.mysql.com/doc/N/e/News-3.23.34.html +- reworked init script +- added more man pages to file list +- reworked README.SuSE +- added automated testing to spec file + +------------------------------------------------------------------- +Thu Mar 8 09:39:38 CET 2001 - grimmer@suse.de + +- Update to 3.23.33 (bugfix release, see + http://www.mysql.com/doc/N/e/News-3.23.33.html for a complete + list of changes) +- updated manual.pdf +- fixed init script (#6044, "failed" on startup on a 2.4 kernel) + beautified init script output a bit, changed "reload" argument + to "force-reload" and added separate "reload" section +- added some comments about replication and BerkeleyDB code to + README.SuSE +- marked init script as config file in spec file + +------------------------------------------------------------------- +Tue Jan 23 10:30:18 CET 2001 - grimmer@suse.de + +- Update to 3.23.32 - stable release including security fixes + for the SHOW GRANTS statement and a remote buffer overflow + (Bugtraq ID 2262) +- updated manual.pdf +- added some missing files to the file list +- added --without-berkeley-db to the configure options + (according to the release notes, Berkeley DB support and + replication have not been exhaustively tested yet) + +------------------------------------------------------------------- +Wed Jan 10 12:51:02 CET 2001 - grimmer@suse.de + +- Update to 3.23.30-gamma (bugfix-release) +- added manual.pdf as a separate file +- removed verbosity flag from cp-command in preinstall section + +------------------------------------------------------------------- +Fri Dec 22 19:32:57 CET 2000 - grimmer@suse.de + +- fixed initial startup in init script (correct ownerships of + the mysql datadir before starting mysqld using "chown") +- added different mysql sample configurations to directory "cnf" + in the documentation directory +- use my-medium.cnf as default configuration /etc/my.cnf + +------------------------------------------------------------------- +Mon Dec 18 12:19:39 CET 2000 - grimmer@suse.de + +- fixed packaging of mysql-bench (file list was empty) + +------------------------------------------------------------------- +Fri Dec 15 13:29:16 CET 2000 - grimmer@suse.de + +- init script fixes (added $remote_fs to Required-Start, + check if /usr/sbin/mysqld exists) +- README.SuSE updates + +------------------------------------------------------------------- +Fri Dec 1 13:20:12 CET 2000 - ro@suse.de + +- added static libs to devel package + +------------------------------------------------------------------- +Mon Nov 27 15:25:54 CET 2000 - grimmer@suse.de + +- update to 3.23.28-gamma (considered stable enough by Monty) +- added --with-extra-charsets=complex +- database files are now located below /var/lib/mysql +- do not use --with-raid or --with-berkeley-db yet +- adapted to new init scheme (new init script, removed symlinks, + moved init script from /sbin/init.d -> /etc/init.d) +- moved socket from /tmp/mysql.sock to /var/lib/mysql/mysql.sock +- removed AGREEMENT since mysql is GPL now +- removed README.SuSE, rc.config.mysql and rc.mysql from patch + and added them as additional source files instead + +------------------------------------------------------------------- +Fri Nov 10 17:25:51 CET 2000 - grimmer@suse.de + +- added a symlink /usr/lib/mysql/libmysqlclient.so -> + ../libmysqlclient.so.6.0.0 to make libtool happy + +------------------------------------------------------------------- +Mon Nov 6 09:24:10 CET 2000 - grimmer@suse.de + +- fixed Requires: for mysql-bench (mysql-perl -> perl-Msql-Mysql-modules) + +------------------------------------------------------------------- +Thu Nov 2 17:24:47 CET 2000 - grimmer@suse.de + +- switched to long package names: + mysqclnt -> mysql-client + mysqldev -> mysql-devel + mysqbnch -> mysql-bench + mysqllib -> mysql-shared +- removed subpackage mysqperl from mysql.spec and created + separate packages (perl-Msql-Mysql-modules and perl-Data-ShowTable) +- finally use BuildRoot +- updated README.SuSE to reflect changes + +------------------------------------------------------------------- +Wed Aug 23 00:07:55 CEST 2000 - ro@suse.de + +- fixed perl path + +------------------------------------------------------------------- +Fri Jul 21 16:52:02 CEST 2000 - grimmer@suse.de + +- corrected removal of comment - bash does not like + empty if-statements... + +------------------------------------------------------------------- +Thu Jul 13 18:43:17 CEST 2000 - grimmer@suse.de + +- added missing "-" to parameter "hostname --fqdn" in + scripts/mysql_install_db.sh (BUG#3383) +- removed comment from scripts/mysql_install_db.sh about + needing to install an init script, since we supply this already + +------------------------------------------------------------------- +Wed Jul 5 12:54:13 CEST 2000 - grimmer@suse.de + +- removed DBI perl module from subpackage mysqperl (is in a + separate package "perl_dbi" now) and adjusted file list + (BUG#3173) + +------------------------------------------------------------------- +Wed May 24 19:26:20 MEST 2000 - uli@suse.de + +- moved docs to /usr/share + +------------------------------------------------------------------- +Fri May 5 15:35:12 CEST 2000 - freitag@suse.de + +- Security change requested by a feedback mail - sets initially + a full qualified hostname and notifies the user to change the + two root passwords and not only one. +- added autoconf and automake to neededforbuild +- added --host=%{_host} to configure call due to suspicious libtool + probs +- /usr/doc/packages replaced by %{_defaultdocdir} + +------------------------------------------------------------------- +Sat Apr 8 00:21:24 CEST 2000 - bk@suse.de + +- added suse update config macro + +------------------------------------------------------------------- +Wed Feb 23 12:51:51 MET 2000 - grimmer@suse.de + +- Update to 3.22.32 +- created subpackage "mysqllib" which contains shared libs only +- created subpackage "mysqperl" which contains the perl modules +- removed obsolete security patch (is included in new version) +- update now checks for existing database files and chowns them + to "mysql" itself, if they still belong to "root" - specfile + and init script modified +- removed SuSE Linux version from AGREEMENT +- updated README.SuSE to reflect changes + +------------------------------------------------------------------- +Fri Feb 11 17:40:11 MET 2000 - grimmer@suse.de + +- added security patch from monty@tcx.se (password authentication) + +------------------------------------------------------------------- +Thu Jan 13 16:29:16 MET 2000 - grimmer@suse.de + +- update to 3.22.30 (security fix for GRANT privileges) +- now uses version macro in spec file + +------------------------------------------------------------------- +Fri Jan 7 09:55:27 MET 2000 - grimmer@suse.de + +- update to 3.22.29 +- updated Msql-Mysql-modules to 1.2210 and removed obsolete patch +- changed RPM Group of mysqldev to Development/Libraries +- corrected paths in mysqlaccess + +------------------------------------------------------------------- +Thu Oct 28 04:33:56 MEST 1999 - grimmer@suse.de + +- update to 3.22.27 +- updated Msql-Mysql-modules to 1.2209 +- fixed check for ownership of installed db in specfile + +------------------------------------------------------------------- +Mon Oct 25 01:26:07 MEST 1999 - grimmer@suse.de + +- update to 3.22.26a +- now runs as user "mysql" (resolved Bug #371) +- now uses /etc/my.cnf +- updated perl-modules (DBI, Msql-Mysql-modules) +- moved long names from PAC-file to specfile (Provides:) +- misc minor corrections/updates (specfile, init-script...) + +------------------------------------------------------------------- +Mon Aug 30 15:28:36 CEST 1999 - grimmer@suse.de + +- added bugfix for Alpha (TEXT and BLOB were broken) +- modified configure-call in spec +- added long aliases to PAC-files + +------------------------------------------------------------------- +Tue Jul 13 10:14:43 MEST 1999 - grimmer@suse.de + +- update to 3.22.25 +- updated perl-modules (DBI, Msql-Mysql-modules) +- moved libs (mysqlclient.so et al) from /usr/lib/mysql to /usr/lib +- minor corrections (README.SuSE, init-Script) + +------------------------------------------------------------------- +Thu May 20 01:20:25 MEST 1999 - ro@suse.de + +- activate assembler parts only on x86 + +------------------------------------------------------------------- +Wed Apr 28 15:52:37 MEST 1999 - grimmer@suse.de + +- added missing perl module (Mysql.pm) +- added missing perl package (Data-Showtable) + +------------------------------------------------------------------- +Tue Apr 6 17:29:51 MEST 1999 - ro@suse.de + +- update to 3.22.21 +- split into subpackages (mysql, mysqclnt, mysqldev, mysqbnch) +- re-added perl-modules +- updated init-Script +- /etc/mysql.passwd is now obsolete + +------------------------------------------------------------------- +Fri Dec 11 17:02:45 MET 1998 - grimmer@suse.de + +- updated init-Script + +------------------------------------------------------------------- +Sun Nov 29 14:53:08 MET 1998 - bs@suse.de + +- fixed pathes for perl modules. +- remove symlinks before creating them. + +------------------------------------------------------------------- +Fri Nov 27 01:07:18 MET 1998 - ro@suse.de + +- adapted paths to old perl +- this version should not have been in stable + +------------------------------------------------------------------- +Tue Nov 24 17:58:42 MET 1998 - grimmer@suse.de + +- added /usr/doc/packages/AGREEMENT + +------------------------------------------------------------------- +Tue Nov 17 17:00:28 MET 1998 - ro@suse.de + +- adapted paths to perl5.005_02 + +------------------------------------------------------------------- +Wed Nov 11 12:30:18 MET 1998 - ro@suse.de + +- added libgpp to neededforbuild + +------------------------------------------------------------------- +Mon Nov 9 16:49:33 MET 1998 - grimmer@suse.de + +- New Package (Version 3.21.33b) + diff --git a/mariadb.spec b/mariadb.spec new file mode 100644 index 0000000..fe7ef0f --- /dev/null +++ b/mariadb.spec @@ -0,0 +1,972 @@ +# +# spec file for package mariadb (Version 5.1.44) +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +# Few definitions which will alter build +%define prefered 0 +%define cluster 0 +%define srv_vers 5.1.44 + +%if %{?rel:0}%{!?rel:1} +%define rel 1 +%endif +#Distribution: %dist +#Packager: %packager +#Vendor: %vendor + +Name: mariadb +Summary: A True Multiuser, Multithreaded SQL Database Server +Version: 5.1.44 +Release: 1 +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Group: Productivity/Databases/Servers +Url: http://www.mysql.com +# http://dev.mysql.com/get/Downloads/MySQL-5.1/%{name}-%{version}.tar.gz/from/pick +Source: mariadb-%{version}.tar.bz2 +Source2: baselibs.conf +Source3: README.debug +Source4: suse-test-run +Source5: mysql.SuSEfirewall2 +Source7: rc.mysql-multi +Source8: README.SuSE +# Polishing default config file +Patch2: mysql-cnf.patch +Patch3: mysql-multi-configuration.patch +# Adds option to set group to something else similarly to the user settings +Patch4: mysql-group.patch +# Warning about initscript in mysql_install_db disabled, since the SUSE RPM comes with an init script installed +Patch5: mysql-install_db-quiet.patch +# Checks flush-logs exit status in support-files/mysql-log-rotate.sh +Patch7: mysql-logrotate.patch +# Adds reload funcionality to mysqld_multi.sh perl script and adds --datadir support +Patch8: mysqld_multi.patch +# Disables failure on one test during update and improves error message during update a little bit +Patch13: mysql_upgrade-exit-status.patch +# Changes pkglib_LIBRARIES into lib_LIBRARIES in libmysql +Patch18: libmysql-no-pkglibdir.patch +# Adds option -avoid-version to LDFLAGS for plugins blackhole, archive and example +Patch19: mysql-plugins-avoid-version.patch +# This patch loads plugins by default if there is no settings regarding plugins. +Patch23: mysql-enable-plugins.patch +# PATCH-FIX-UPSTREAM mysql-5.1.31-shebang.patch [] mhrusecky@suse.cz -- adds mising shebangs +Patch25: mysql-5.1.31-shebang.patch +# PATCH-FIX-UPSTREAM mysql-5.1.35-test-variables-big.patch [upstream bug #38811] -- different way to test whether server crashed +# http://bugs.mysql.com/bug.php?id=38811 +Patch27: mysql-5.1.35-test-variables-big.patch +# PATCH-FIX-SUSE mysql-5.1.32-myslq-test.patch mhrusecky@suse.cz -- installs tests into datadir not into prefix +Patch28: mysql-5.1.42-myslq-test.patch +# PATCH-FIX-UPSTREAM mysql-5.1.33-scripts-paths.patch [ upstream#45616 ] mhrusecky@suse.cz -- fixes build of scripts when compilation occurs somewhere else +# http://bugs.mysql.com/bug.php?id=45616 +Patch29: mysql-5.1.33-scripts-paths.patch +# PATCH-FIX-SUSE mysql-5.1.33-safe-process-in-bin.patch [] mhrusecky@suse.cz -- this will let us move one binary to /usr/bin instead of /usr/share/mysql-test/... +Patch30: mysql-5.1.33-safe-process-in-bin.patch +# PATCH-FIX-SUSE mysql-5.1.33-ssl-lib64-macro.patch [] mhrusecky@suse.cz -- search for ssl libraries also in lib64 +Patch31: mysql-5.1.33-ssl-lib64-macro.patch +# PATCH-FIX-SUSE mysql-5.1.35-test-utf8.patch [] mhrusecky@suse.cz -- we use utf-8 by default which produces different output with few tests +Patch35: mysql-5.1.35-test-utf8.patch +# PATCH-FIX-UPSTREAM mysql-5.1.36-bmove512.patch [ upstream#19975 ] mhrusecky@suse.cz -- using standard memcpy instead of bmove512 as it should be beeter +# http://bugs.mysql.com/bug.php?id=19975 +Patch37: mysql-5.1.36-bmove512.patch +# PATCH-FIX-UPSTREAM mysql-5.1.36-hotcopy.patch [ upstream#43594, bnc#525325 ] mhrusecky@suse.cz -- hotcopy ignores log tables +# http://bugs.mysql.com/bug.php?id=43594 +Patch38: mysql-5.1.36-hotcopy.patch +# PATCH-FIX-UPSTREAM mysql_config.patch [ upstream#39175, bnc#420313 ] mhrusecky@suse.cz -- Fix linking options. +Patch39: mysql_config.patch +Patch45: abi_test.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} +PreReq: pwdutils +%else +PreReq: /usr/sbin/useradd /usr/sbin/usermod /usr/sbin/groupadd +%endif +PreReq: coreutils sed grep +%if 0%{?suse_version} +PreReq: %install_info_prereq %insserv_prereq +%endif +BuildRequires: gcc-c++ ncurses-devel openssl-devel procps readline-devel zlib-devel +%if 0%{?suse_version} +BuildRequires: pwdutils tcpd-devel +%endif +%if 0%{?suse_version} > 1030 || 0%{?fedora_version} > 8 +BuildRequires: fdupes +%endif +%if 0%{?suse_version} > 1030 +Recommends: logrotate +%else +Requires: logrotate +%endif +# required by rcmysql +Requires: %{name}-client perl-base +Obsoletes: mysql-Max < %{srv_vers} +Provides: mysql-Max = %{srv_vers} +Obsoletes: mysql < %{srv_vers} +Provides: mysql = %{srv_vers} +Conflicts: otherproviders(mysql) + +%description +MariaDB is a backward compatible, drop-in replacement branch of the MySQL +Database Server. It includes all major open source storage engines, including +the Maria storage engine. + +This package only contains the server-side programs. + +%if ! 0%{?prefered} > 0 +#------------------------------------------------------------------------------- + +%package -n libmariadbclient16 +#------------------------------------------------------------------------------- +Summary: MariaDB Shared Libraries +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Group: Development/Libraries/Other + +%description -n libmariadbclient16 +This package contains the shared libraries (.so) which certain +languages and applications need to dynamically load and use MariaDB. + +Authors: +-------- + Michael Widenius + David Axmark + +#------------------------------------------------------------------------------- +%package -n libmariadbclient_r16 +#------------------------------------------------------------------------------- +Summary: MariaDB Shared Libraries +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Group: Development/Libraries/Other + +%description -n libmariadbclient_r16 +This package contains the shared libraries (.so) which certain +languages and applications need to dynamically load and use MariaDB. + +Authors: +-------- + Michael Widenius + David Axmark + +%endif +%if 0%{?prefered} > 0 +#------------------------------------------------------------------------------- + +%package -n libmysqlclient-devel +#------------------------------------------------------------------------------- +# mysql-devel was last used in openSUSE 10.2 +Provides: mysql-devel = %srv_vers-%release +Obsoletes: mysql-devel < %srv_vers +Requires: libmysqlclient16 = %srv_vers libmysqlclient_r16 = %srv_vers glibc-devel zlib-devel openssl-devel +Summary: MariaDB Development Header Files and Libraries +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Group: Development/Libraries/C and C++ + +%description -n libmysqlclient-devel +This package contains the development header files and libraries +necessary to develop MariaDB client applications. + +Authors: +-------- + Michael Widenius + David Axmark + +#------------------------------------------------------------------------------- +%package -n libmysqld0 +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB embedded server development files +# the headers files are the shared +Requires: libmysqlclient-devel = %srv_vers +Group: Development/Libraries/C and C++ + +%description -n libmysqld0 +This package contains the development header files and libraries +for developing application that embed the MariaDB server + + +#------------------------------------------------------------------------------- +%package -n libmysqld-devel +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB embedded server development files +# the headers files are the shared +Requires: libmysqlclient-devel = %srv_vers +Requires: libmysqld0 = %srv_vers +Group: Development/Libraries/C and C++ + +%description -n libmysqld-devel +This package contains the development header files and libraries +for developing application that embed the MariaDB server + +#------------------------------------------------------------------------------- +%package -n libmysqlclient16 +#------------------------------------------------------------------------------- +Summary: MariaDB Shared Libraries +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Group: Development/Libraries/Other + +%description -n libmysqlclient16 +This package contains the shared libraries (.so) which certain +languages and applications need to dynamically load and use MariaDB. + +Authors: +-------- + Michael Widenius + David Axmark + + +#------------------------------------------------------------------------------- +%package -n libmysqlclient_r16 +#------------------------------------------------------------------------------- +Summary: MariaDB Shared Libraries +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Group: Development/Libraries/Other + +%description -n libmysqlclient_r16 +This package contains the shared libraries (.so) which certain +languages and applications need to dynamically load and use MariaDB. + +Authors: +-------- + Michael Widenius + David Axmark + +%endif +#------------------------------------------------------------------------------- + +%package client +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB Client +Group: Productivity/Databases/Clients +Provides: mysql-client = %{srv_vers} +Obsoletes: mysql-client < %{srv_vers} +Conflicts: otherproviders(mysql-client) + +%description client +This package contains the standard MariaDB clients. + +Authors: +-------- + Michael Widenius + David Axmark + + +#------------------------------------------------------------------------------- +%package bench +#------------------------------------------------------------------------------- +Requires: %{name}-client perl-DBD-mysql +License: LGPLv2.1 +Summary: MariaDB - Benchmarks +Group: Productivity/Databases/Tools +Provides: mysql-bench = %{srv_vers} +Obsoletes: mysql-bench < %{srv_vers} +Conflicts: otherproviders(mysql-bench) + +%description bench +This package contains MariaDB benchmark scripts and data. + +To run these database benchmarks, start the script "run-all-tests" in +the directory /usr/share/sql-bench after starting MariaDB. + +Authors: +-------- + Michael Widenius + David Axmark + +#------------------------------------------------------------------------------- +%package debug +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB server with debug options turned on +Group: Productivity/Databases/Servers +Requires: %{name} = %{srv_vers} +Provides: mysql-debug = %{srv_vers} +Obsoletes: mysql-debug < %{srv_vers} +Conflicts: otherproviders(mysql-debug) + +%description debug +A version of the mysql server that has some debug code turned on. +It should be only used to track down problems with the standard +servers. Note that merely installing this package won't replace the +standard server. Read /usr/share/doc/packages/mysql/README.debug for +information on how to use the debug server. + +Authors: +-------- + Michael Widenius + David Axmark + + +#------------------------------------------------------------------------------- +%package test +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB testsuite +Group: Productivity/Databases/Servers +Requires: %{name} = %{srv_vers} +Requires: %{name}-client = %{srv_vers} +Requires: perl-DBD-mysql +Requires: %{name}-tools = %{srv_vers} +Requires: %{name}-bench = %{srv_vers} +Provides: mysql-test = %{srv_vers} +Obsoletes: mysql-test < %{srv_vers} +Conflicts: otherproviders(mysql-test) + +%description test +This package contains the MariaDB test scripts and data. + +To run the testsuite, run /usr/share/mysql-test/suse-test-run. + +Authors: +-------- + Michael Widenius + David Axmark + + +#------------------------------------------------------------------------------- +%package tools +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB tools +Group: Productivity/Databases/Servers +Requires: perl-DBD-mysql +# make sure this package is installed when updating from 10.2 and older +Provides: mysql:/usr/bin/mysqlhotcopy mysql-client:/usr/bin/perror +Provides: mysql-tools = %{srv_vers} +Obsoletes: mysql-tools < %{srv_vers} +Conflicts: otherproviders(mysql-tools) + +%description tools +A set of scripts for administering a MariaDB server or developing +applications with MariaDB. + +Authors: +-------- + Michael Widenius + David Axmark + +%if 0%{?cluster} > 0 +#------------------------------------------------------------------------------- + +%package ndb-storage +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB - ndbcluster storage engine +Group: Productivity/Databases/Servers +Provides: mysql-ndb-storage = %{srv_vers} +Obsoletes: mysql-ndb-storage < %{srv_vers} +Conflicts: otherproviders(mysql-ndb-storage) + +%description ndb-storage +This package contains the ndbcluster storage engine. +It is necessary to have this package installed on all +computers that should store ndbcluster table data. + + +#------------------------------------------------------------------------------- +%package ndb-management +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB - ndbcluster storage engine management +Group: Productivity/Databases/Servers +Provides: mysql-ndb-management = %{srv_vers} +Obsoletes: mysql-ndb-management < %{srv_vers} +Conflicts: otherproviders(mysql-ndb-management) + +%description ndb-management +This package contains ndbcluster storage engine management. +It is necessary to have this package installed on at least +one computer in the cluster. + + +#------------------------------------------------------------------------------- +%package ndb-tools +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB - ndbcluster storage engine basic tools +Group: Productivity/Databases/Servers +Provides: mysql-ndb-tools = %{srv_vers} +Obsoletes: mysql-ndb-tools < %{srv_vers} +Conflicts: otherproviders(mysql-ndb-tools) + +%description ndb-tools +This package contains ndbcluster storage engine basic tools. + + +#------------------------------------------------------------------------------- +%package ndb-extra +#------------------------------------------------------------------------------- +License: GPLv2 ; with additional permissions: EXCEPTIONS-CLIENT +Summary: MariaDB - ndbcluster storage engine extra tools +Group: Productivity/Databases/Servers +Provides: mysql-ndb-extra = %{srv_vers} +Obsoletes: mysql-ndb-extra < %{srv_vers} +Conflicts: otherproviders(mysql-ndb-extra) + +%description ndb-extra +This package contains some extra ndbcluster storage engine tools for the +advanced user. They should be used with caution. + +%endif +#------------------------------------------------------------------------------- + +%prep +#------------------------------------------------------------------------------- +%setup -q -n mariadb-%version +cp %_sourcedir/README.SuSE . +cp %_sourcedir/suse-test-run . +%patch2 +%patch3 +%patch4 +%patch5 +%patch7 +%patch8 +%patch13 +%patch18 +%patch19 +%patch23 +%patch25 -p1 +%patch27 +%patch28 +%patch29 +%patch30 +%patch31 +%patch35 +%patch37 +%patch38 +%patch39 +%patch45 -p1 +# remove unneeded manpages ('make install' basically installs everything under +# man/*) +rm -f man/mysqlman.1 # dummy fallback manpage +rm -f man/mysql.server.1 # init script, not installed in our rpm +rm -f man/make_win_*.1 # windows build scripts +rm -f man/comp_err.1 # built-time utility +# 5.1 Carrier Grade Edition only / still under development as of 5.1.22 +rm -f man/ndbd_redo_log_reader.1 +# breaks VPATH builds when in sourcedir, is generated in the builddirs +rm -f sql/sql_builtin.cc +sed -i 's|@localstatedir@|/var/log|' support-files/mysql-log-rotate.sh +%if ! 0%{?prefered} > 0 +for i in `grep -Rl mysqlclient .`; do + sed -i 's|mysqlclient|mariadbclient|g' $i +done +%endif + +#------------------------------------------------------------------------------- + +%build +#------------------------------------------------------------------------------- +%if 0%{?suse_version} < 1120 && 0%{?suse_version} > 0 +%define socketpath /var/lib/mysql +%else +%define socketpath /var/run/mysql +%endif +autoreconf -f -i +export CFLAGS="$RPM_OPT_FLAGS -DPIC -fPIC -DUNDEF_HAVE_INITGROUPS -DFORCE_INIT_OF_VARS -fno-strict-aliasing" +export CXXFLAGS="$CFLAGS -fno-exceptions -fno-rtti" +# Make the compile a function, since we do multiple builds +BuildMySQL() { + # The --enable-assembler simply does nothing on systems that do not + # support assembler speedups. + suffix="$1"; shift + mkdir _build$suffix + pushd _build$suffix + ../configure \ + --enable-assembler \ + --without-readline \ + --infodir=%{_infodir} \ + --libdir=%{_libdir} \ + --libexecdir=/usr/sbin \ + --localstatedir=/var/lib/mysql \ + --mandir=%{_mandir} \ + --prefix=%{_prefix} \ + --sysconfdir=/etc \ + --with-mysqld-user=mysql \ + --with-mysqld-group=mysql \ + --without-debug \ + --datadir=/usr/share \ + --includedir=/usr/include \ + --with-charset=utf8 \ + --with-collation=utf8_unicode_ci \ + --with-extra-charsets=all \ + --with-unix-socket-path=%{socketpath}/mysql.sock \ + --enable-thread-safe-client \ + --with-comment="SUSE MariaDB RPM" \ + --with-libwrap \ + --with-server-suffix=$suffix \ +%ifarch s390 s390x + --with-atomic-ops=rwlocks \ +%else + --with-atomic-ops=smp \ +%endif + --with-ssl=/usr \ + --with-plugins=partition,csv,heap,myisam,ndbcluster,innobase \ + HOSTNAME="/bin/hostname -f" \ + "$@" + # Add this for MyISAM RAID support: + # --with-raid + # benchdir does not fit in above model. Fix when we make a separate package + make %{?jobs:-j%jobs} + nm --numeric-sort sql/mysqld > sql/mysqld.sym + # needed for make check, which is not VPATH aware + # copy the files unconditionally so that manual 'make check' after + # the build works, too + cp -a ../mysql-test/* mysql-test/ + cp -a ../sql/share/{english,charsets} sql/share/ + cp -a ../scripts/*.sql scripts/ +%if %{?_with_testsuite:1}0 + pushd mysql-test; perl ./mysql-test-run.pl --force; popd +%endif + popd +} +# Build the client, extra tools, libraries +BuildMySQL "" --with-embedded-server +# build mysqld-debug +BuildMySQL "-debug" --with-debug --without-embedded-server + +%if 0%{?prefered} > 0 +mkdir -p _buildlibmysqld/tmp +cd _buildlibmysqld/tmp +ar -x ../../_build/libmysqld/libmysqld.a +gcc $CFLAGS $LDFLAGS -shared -Wl,-soname,libmysqld.so.0 -o ../libmysqld.so.0.0.1 \ +*.o \ +-lpthread -lcrypt -lnsl -lssl -lcrypto -lz -lrt -lstdc++ -lm -lc +cd .. +rm -rf tmp +cd .. +%endif + +#------------------------------------------------------------------------------- + +%install +#------------------------------------------------------------------------------- +# install the debug server first, so that we don't overwrite the standard +# /usr/sbin/mysqld +mkdir -p %buildroot%_libdir/mysql +make -C _build-debug/sql install DESTDIR=%buildroot +mv %buildroot/usr/sbin/mysqld %buildroot/usr/sbin/mysqld-debug +install -m 644 _build-debug/sql/mysqld.sym %buildroot%_libdir/mysql/mysqld-debug.sym +# install the client, extra tools, libraries and the standard server +make -C _build install DESTDIR=%buildroot benchdir_root=/usr/share/ +install -m 644 _build/sql/mysqld.sym %buildroot%_libdir/mysql/mysqld.sym +# remove most static libs (FIXME: don't build them at all...) +rm -f %buildroot%_libdir/libmysqlclient*a +rm -f %buildroot%_libdir/mysql/*.a %buildroot%_libdir/mysql/*.la +rm -f %buildroot%_libdir/mysql/plugin/*a +# XXX: package these? The ndb tools are linked statically atm +rm -f %buildroot%_libdir/mysql/libndbclient.* +rm -f %{buildroot}/usr/share/mysql-test/mysql-test-run +rm -f %{buildroot}/usr/share/mysql-test/mtr +ln -sf mysql-test-run.pl %{buildroot}/usr/share/mysql-test/mtr +ln -sf mysql-test-run.pl %{buildroot}/usr/share/mysql-test/mysql-test-run +mv %{buildroot}/usr/share/mysql-test/lib/My/SafeProcess/my_safe_process %{buildroot}%{_bindir} +# generate filelist for binaries and their manpages (easier than enumerating +# all the binaries and manapages manually, esp. when there are new manpages in +# each release) +filelist() +{ + echo '%%defattr(-, root, root)' + pushd %buildroot >/dev/null + for i; do + if test -e usr/sbin/"$i"; then + echo /usr/sbin/"$i" + fi + if test -e usr/bin/"$i"; then + echo /usr/bin/"$i" + fi + if ls usr/share/man/*/"$i".[1-9]* >/dev/null 2>&1; then + echo "%%doc %_mandir/*/$i.[1-9]*" + fi + done + popd >/dev/null +} +filelist innochecksum my_print_defaults myisam_ftdump myisamchk myisamlog myisampack mysql_fix_extensions mysql_fix_privilege_tables mysql_install_db mysql_secure_installation mysql_upgrade mysqlbug mysqld mysqld_multi mysqld_safe mysqlbinlog mysqldumpslow mysqlmanager resolve_stack_dump resolveip >mysql.files +filelist mysql mysqladmin mysqlcheck mysqldump mysqlimport mysqlshow >mysql-client.files +filelist mysql_config >libmysqlclient-devel.files +filelist mysqlslap >mysql-bench.files +filelist mysql_client_test mysql_client_test_embedded mysql_waitpid mysqltest mysqltest_embedded >mysql-test.files +# all binaries that don't need to be in a "default" install (mysql.rpm + +# mysql-client.rpm) +filelist msql2mysql mysql_convert_table_format mysql_find_rows mysql_setpermission mysql_tzinfo_to_sql mysql_zap mysqlaccess mysqlhotcopy perror replace >mysql-tools.files +filelist ndbd ndbmtd ndbd_redo_log_reader >mysql-ndb-storage.files +filelist ndb_mgmd >mysql-ndb-management.files +filelist ndb_{config,desc,error_reporter,mgm,print_backup_file,print_schema_file,print_sys_file,restore,select_all,select_count,show_tables,size.pl,test_platform,waiter} >mysql-ndb-tools.files +filelist ndb_{cpcd,delete_all,drop_index,drop_table} >mysql-ndb-extra.files +### files not installed by make install +# Create directory structure +DOCS=(COPYING README EXCEPTIONS-CLIENT %_sourcedir/README.debug %_sourcedir/README.SuSE) +DOCDIR=%buildroot%_defaultdocdir/%name +install -d -m 755 ${DOCDIR} +install -d -m 755 %buildroot/etc/logrotate.d +install -d -m 755 %buildroot/etc/init.d +install -m 644 _build/support-files/mysql-log-rotate %buildroot/etc/logrotate.d/mysql +%if 0%{?prefered} > 0 +install -m 644 _buildlibmysqld/*.so* %buildroot%_libdir +ln -s libmysqld.so.0.0.1 %buildroot%_libdir/libmysqld.so.0 +ln -s libmysqld.so.0.0.1 %buildroot%_libdir/libmysqld.so +%endif +install -m 660 _build/support-files/my-medium.cnf %buildroot/etc/my.cnf +install -m 640 scripts/mysqlaccess.conf %buildroot/etc/mysqlaccess.conf +install -m 644 "${DOCS[@]}" ${DOCDIR} +install -m 755 %_sourcedir/rc.mysql-multi %buildroot/etc/init.d/mysql +ln -sf ../../etc/init.d/mysql %buildroot/usr/sbin/rcmysql +# this is used by the init script +install -m 755 -d %buildroot/var/run/mysql +# SuSEfirewall service description +install -D -m 644 %_sourcedir/mysql.SuSEfirewall2 \ + %buildroot/etc/sysconfig/SuSEfirewall2.d/services/mysql +# testsuite +mkdir -p '%buildroot'/usr/share/mysql-test/ +install -m 755 suse-test-run '%buildroot'/usr/share/mysql-test/ +# XXX this should go under /var/..., but some tests get confused by a symlink +# var -> ../../../var/... +#ln -sf ../../../var/lib/mysql/mysql-test %buildroot/usr/share/mysql-test/var +mkdir '%buildroot'/usr/share/mysql-test/var +# Final fixes +find '%buildroot'/usr/share/mysql-test -name '*.orig' -delete +%if 0%{?suse_version} > 1030 +%fdupes -s '%buildroot'/usr/share/mysql-test +%endif +%if 0%{?fedora_version} > 8 +fdupes -q -n -r '%buildroot'/usr/share/mysql-test +%endif +dos2unixConversion() { + %{__sed} -i 's/\r//g' "$1" +} +for i in `grep -Rl '\r' '%buildroot'/usr/share/sql-bench`; do + dos2unixConversion "$i" +done +%if ! 0%{cluster} > 0 +cat mysql-ndb-storage.files mysql-ndb-management.files \ + mysql-ndb-tools.files mysql-ndb-extra.files | \ + sed 's|^%%doc\ ||' | while read tmp; do + cd '%buildroot' + rm -f .$tmp +done +%endif +%if ! 0%{prefered} > 0 +cat libmysqlclient-devel.files | while read tmp; do + cd '%buildroot' + rm -f .$tmp +done +rm -rf '%buildroot'/%_libdir/libmysqld.* +rm -rf '%buildroot'/%_libdir/libmysqlclient* +rm -rf '%buildroot'/%_libdir/libmariadbclient.{a,la,so} +rm -rf '%buildroot'/%_libdir/libmariadbclient_r*.{a,la,so} +rm -rf '%buildroot'/%_includedir +rm -rf '%buildroot'/%_datadir/man/*/mysql_config* +rm -rf '%buildroot'/%_datadir/aclocal +%endif +sed -i 's|doc/packages/mysql|doc/packages/%{name}|g' '%buildroot'/etc/init.d/mysql +ln -s mysqlcheck '%buildroot'%_bindir/mysqlrepair +ln -s mysqlcheck '%buildroot'%_bindir/mysqlanalyze +ln -s mysqlcheck '%buildroot'%_bindir/mysqloptimize + +#------------------------------------------------------------------------------- + +%pre +#------------------------------------------------------------------------------- +/usr/sbin/groupadd -r mysql >/dev/null 2>/dev/null || : +/usr/sbin/useradd -r -o -g mysql -u 60 -c "MySQL database admin" \ + -s /bin/false -d /var/lib/mysql mysql 2> /dev/null || : +/usr/sbin/usermod -g mysql -s /bin/false mysql || : + +#------------------------------------------------------------------------------- + +%preun +#------------------------------------------------------------------------------- +[ $1 = 1 ] || /usr/sbin/rcmysql stop +%pretrans +if [ -x /usr/sbin/rcmysql ]; then + RESTART="" + /usr/sbin/rcmysql status > /dev/null && RESTART="yes" + /usr/sbin/rcmysql stop + [ "$RESTART" ] && mkdir -p /var/run/mysql/restart +fi +dbfile=var/mysql/mysql/db.ISM +olddir=var/mysql +newdir=var/lib/mysql +# Do the database files still belong to root (very old installation)? +# Change ownerships +if [ -O $dbfile ] +then +chown -Rv mysql:mysql var/mysql/ +fi + +#------------------------------------------------------------------------------- + +%posttrans +#------------------------------------------------------------------------------- +%install_info --info-dir=%{_infodir} %{_infodir}/mysql.info.gz +if [ -d /var/lib/mysql ]; then + touch /var/lib/mysql/.run-mysql_upgrade + chown -R mysql:mysql /var/lib/mysql +fi +for i in /var/lib/mysql/{.protected,.tmp}; do + ( [ -d "$i" ] && rmdir "$i" ) || : +done +# start mysql again if it should run +if [ "`ls /etc/rc.d/rc*.d/S*mysql 2> /dev/null`" ] || [ -d /var/run/mysql/restart ]; then + [ -x /usr/sbin/rcmysql ] && /usr/sbin/rcmysql start + rmdir /var/run/mysql/restart || : +fi + +%if ! 0%{prefered} > 0 +#------------------------------------------------------------------------------- + +%post -n libmariadbclient16 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%postun -n libmariadbclient16 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%post -n libmariadbclient_r16 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%postun -n libmariadbclient_r16 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- +%endif +%if 0%{prefered} > 0 +#------------------------------------------------------------------------------- + +%post -n libmysqlclient16 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%postun -n libmysqlclient16 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%post -n libmysqlclient_r16 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%postun -n libmysqlclient_r16 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%post -n libmysqld0 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%postun -n libmysqld0 +#------------------------------------------------------------------------------- +/sbin/ldconfig +#------------------------------------------------------------------------------- +%endif + +#------------------------------------------------------------------------------- + +%postun +#------------------------------------------------------------------------------- +if [ $1 = 0 ]; then + %install_info_delete --info-dir=%{_infodir} %{_infodir}/mysql.info.gz + %{insserv_cleanup} +fi +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%clean +#------------------------------------------------------------------------------- +[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && %{__rm} -rf $RPM_BUILD_ROOT +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files -f mysql.files +#------------------------------------------------------------------------------- +%defattr(-, root, root) +%config(noreplace) %attr(0640, root, mysql) /etc/my.cnf +%config /etc/logrotate.d/mysql +%doc %{_defaultdocdir}/%{name} +%doc %{_infodir}/mysql.info.gz +/etc/init.d/mysql +/usr/sbin/rcmysql +/usr/share/mysql/ +%dir %attr(755,mysql,mysql)/var/run/mysql +%dir %{_libdir}/mysql +%{_libdir}/mysql/mysqld.sym +%config /etc/sysconfig/SuSEfirewall2.d/services/mysql +%dir %_libdir/mysql/plugin +%_libdir/mysql/plugin/*.so +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files client -f mysql-client.files +#------------------------------------------------------------------------------- +%defattr(-, root, root) +%config /etc/mysqlaccess.conf +#------------------------------------------------------------------------------- + +%if ! 0%{prefered} > 0 +#------------------------------------------------------------------------------- + +%files -n libmariadbclient16 +#------------------------------------------------------------------------------- +%defattr(-, root, root) +%{_libdir}/libmariadbclient.so.* +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files -n libmariadbclient_r16 +#------------------------------------------------------------------------------- +%defattr(-, root, root) +%{_libdir}/libmariadbclient_r.so.* +#------------------------------------------------------------------------------- + +%endif +%if 0%{prefered} > 0 +#------------------------------------------------------------------------------- + +%files -n libmysqlclient-devel -f libmysqlclient-devel.files +#------------------------------------------------------------------------------- +%defattr(-, root, root) +/usr/include/mysql +%{_libdir}/libmysqlclient.so +%{_libdir}/libmysqlclient_r.so +/usr/share/aclocal/mysql.m4 +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files -n libmysqld-devel +#------------------------------------------------------------------------------- +%defattr(-,root,root) +%_libdir/libmysqld.a +%_libdir/libmysqld.so +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files -n libmysqld0 +#------------------------------------------------------------------------------- +%defattr(-,root,root) +%_libdir/libmysqld.so.* +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files -n libmysqlclient16 +#------------------------------------------------------------------------------- +%defattr(-, root, root) +%{_libdir}/libmysqlclient.so.* +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files -n libmysqlclient_r16 +#------------------------------------------------------------------------------- +%defattr(-, root, root) +%{_libdir}/libmysqlclient_r.so.* +#------------------------------------------------------------------------------- +%endif + +#------------------------------------------------------------------------------- + +%files bench -f mysql-bench.files +#------------------------------------------------------------------------------- +%defattr(-, root, root) +/usr/share/sql-bench +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files debug +#------------------------------------------------------------------------------- +%defattr(-, root, root) +/usr/sbin/mysqld-debug +%{_libdir}/mysql/mysqld-debug.sym +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files test -f mysql-test.files +#------------------------------------------------------------------------------- +%defattr(-, root, root) +%{_bindir}/my_safe_process +%_mandir/man1/mysql-test-run.pl.1* +%_mandir/man1/mysql-stress-test.pl.1* +/usr/share/mysql-test/valgrind.supp +%dir %attr(755, root, root)/usr/share/mysql-test +/usr/share/mysql-test/[^v]* +%dir %attr(755, mysql, mysql) /usr/share/mysql-test/var +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files tools -f mysql-tools.files +%defattr(-, root, root) +%_bindir/mysqlrepair +%_bindir/mysqlanalyze +%_bindir/mysqloptimize +#------------------------------------------------------------------------------- + +%if 0%{cluster} > 0 +#------------------------------------------------------------------------------- + +%files ndb-storage -f mysql-ndb-storage.files +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files ndb-management -f mysql-ndb-management.files +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files ndb-tools -f mysql-ndb-tools.files +#------------------------------------------------------------------------------- + +#------------------------------------------------------------------------------- + +%files ndb-extra -f mysql-ndb-extra.files +#------------------------------------------------------------------------------- +%endif + +%changelog diff --git a/mysql-5.1.31-shebang.patch b/mysql-5.1.31-shebang.patch new file mode 100644 index 0000000..d9b375b --- /dev/null +++ b/mysql-5.1.31-shebang.patch @@ -0,0 +1,24 @@ +diff -Naru mysql-5.1.31-bak/mysql-test/t/long_tmpdir-master.sh mysql-5.1.31/mysql-test/t/long_tmpdir-master.sh +--- mysql-5.1.31-bak/mysql-test/t/long_tmpdir-master.sh 2009-02-23 17:18:48.000000000 +0100 ++++ mysql-5.1.31/mysql-test/t/long_tmpdir-master.sh 2009-02-24 17:57:42.000000000 +0100 +@@ -1,3 +1,4 @@ ++#!/bin/sh + d="$MYSQLTEST_VARDIR/tmp/long_temporary_directory_path_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789" + test -d "$d" || mkdir "$d" + rm -f "$d"/* +diff -Naru mysql-5.1.31-bak/mysql-test/t/lowercase_mixed_tmpdir-master.sh mysql-5.1.31/mysql-test/t/lowercase_mixed_tmpdir-master.sh +--- mysql-5.1.31-bak/mysql-test/t/lowercase_mixed_tmpdir-master.sh 2009-02-23 17:18:48.000000000 +0100 ++++ mysql-5.1.31/mysql-test/t/lowercase_mixed_tmpdir-master.sh 2009-02-24 17:58:12.000000000 +0100 +@@ -1,3 +1,4 @@ ++#!/bin/sh + # This test requires a non-lowercase tmpdir directory on a case-sensitive + # filesystem. + +diff -Naru mysql-5.1.31-bak/sql-bench/graph-compare-results.sh mysql-5.1.31/sql-bench/graph-compare-results.sh +--- mysql-5.1.31-bak/sql-bench/graph-compare-results.sh 2009-02-23 17:18:49.000000000 +0100 ++++ mysql-5.1.31/sql-bench/graph-compare-results.sh 2009-02-24 18:00:16.000000000 +0100 +@@ -1,3 +1,4 @@ ++#/usr/bin/perl + #### + #### Hello ... this is a heavily hacked script by Luuk + #### instead of printing the result it makes a nice gif diff --git a/mysql-5.1.33-safe-process-in-bin.patch b/mysql-5.1.33-safe-process-in-bin.patch new file mode 100644 index 0000000..2699cf8 --- /dev/null +++ b/mysql-5.1.33-safe-process-in-bin.patch @@ -0,0 +1,20 @@ +--- mysql-test/lib/My/SafeProcess.pm 2009-04-03 15:14:38.000000000 +0200 ++++ mysql-test/lib/My/SafeProcess.pm 2009-03-13 22:49:26.000000000 +0100 +@@ -86,7 +86,7 @@ + my $safe_kill; + if (IS_WIN32PERL or IS_CYGWIN){ + # Use my_safe_process.exe ++ my $exe= my_find_bin(".", ["../../bin","lib/My/SafeProcess", "My/SafeProcess"], +- my $exe= my_find_bin(".", ["lib/My/SafeProcess", "My/SafeProcess"], + "my_safe_process"); + push(@safe_process_cmd, $exe); + +@@ -96,7 +96,7 @@ + else + { + # Use my_safe_process ++ my $exe= my_find_bin(".", ["../../bin", "lib/My/SafeProcess", "My/SafeProcess"], +- my $exe= my_find_bin(".", ["lib/My/SafeProcess", "My/SafeProcess"], + "my_safe_process"); + push(@safe_process_cmd, $exe); + } diff --git a/mysql-5.1.33-scripts-paths.patch b/mysql-5.1.33-scripts-paths.patch new file mode 100644 index 0000000..d436f75 --- /dev/null +++ b/mysql-5.1.33-scripts-paths.patch @@ -0,0 +1,20 @@ +--- scripts/Makefile.am 2009-04-02 18:29:00.292563355 +0200 ++++ scripts/Makefile.am 2009-04-02 18:21:50.462559739 +0200 +@@ -110,7 +110,7 @@ + mysql_fix_privilege_tables.sql: mysql_system_tables.sql \ + mysql_system_tables_fix.sql + @echo "Building $@"; +- @cat mysql_system_tables.sql mysql_system_tables_fix.sql > $@ ++ @cat $(top_srcdir)/scripts/mysql_system_tables.sql $(top_srcdir)/scripts/mysql_system_tables_fix.sql > $@ + + # + # Build mysql_fix_privilege_tables_sql.c from +@@ -123,7 +123,7 @@ + sleep 2 + $(top_builddir)/scripts/comp_sql$(EXEEXT) \ + mysql_fix_privilege_tables \ +- $(top_srcdir)/scripts/mysql_fix_privilege_tables.sql $@ ++ $(top_builddir)/scripts/mysql_fix_privilege_tables.sql $@ + + + SUFFIXES = .sh diff --git a/mysql-5.1.33-ssl-lib64-macro.patch b/mysql-5.1.33-ssl-lib64-macro.patch new file mode 100644 index 0000000..342eca2 --- /dev/null +++ b/mysql-5.1.33-ssl-lib64-macro.patch @@ -0,0 +1,11 @@ +--- config/ac-macros/ssl.m4 2009-04-10 14:05:07.000000000 +0200 ++++ config/ac-macros/ssl.m4 2009-04-10 14:15:15.000000000 +0200 +@@ -102,7 +102,7 @@ + # + # Try to link with openSSL libs in + # +- openssl_libs="-L$location/lib/ -lssl -lcrypto" ++ openssl_libs="-L$location/lib -L$location/lib64 -lssl -lcrypto" + MYSQL_CHECK_SSL_DIR([$openssl_includes], [$openssl_libs]) + + if test "$mysql_ssl_found" == "no" diff --git a/mysql-5.1.35-test-utf8.patch b/mysql-5.1.35-test-utf8.patch new file mode 100644 index 0000000..3430cd8 --- /dev/null +++ b/mysql-5.1.35-test-utf8.patch @@ -0,0 +1,79 @@ +Index: mysql-test/r/information_schema.result +=================================================================== +--- mysql-test/r/information_schema.result.orig ++++ mysql-test/r/information_schema.result +@@ -9,7 +9,7 @@ create user mysqltest_3@localhost; + create user mysqltest_3; + select * from information_schema.SCHEMATA where schema_name > 'm'; + CATALOG_NAME SCHEMA_NAME DEFAULT_CHARACTER_SET_NAME DEFAULT_COLLATION_NAME SQL_PATH +-NULL mtr latin1 latin1_swedish_ci NULL ++NULL mtr utf8 utf8_unicode_ci NULL + NULL mysql latin1 latin1_swedish_ci NULL + NULL test latin1 latin1_swedish_ci NULL + select schema_name from information_schema.schemata; +Index: mysql-test/r/mysql_comments.result +=================================================================== +--- mysql-test/r/mysql_comments.result.orig ++++ mysql-test/r/mysql_comments.result +@@ -13,23 +13,23 @@ drop trigger if exists t1_bi; + foofct("call 1") + call 1 + Function sql_mode Create Function character_set_client collation_connection Database Collation +-foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n\n\n\nx latin1 latin1_swedish_ci latin1_swedish_ci ++foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n\n\n\nx utf8 utf8_unicode_ci latin1_swedish_ci + foofct("call 2") + call 2 + Function sql_mode Create Function character_set_client collation_connection Database Collation +-foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n \n \n \n\n \n\n \n return x;\nend latin1 latin1_swedish_ci latin1_swedish_ci ++foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n \n \n \n\n \n\n \n return x;\nend utf8 utf8_unicode_ci latin1_swedish_ci + Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation +-empty CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci ++empty CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend utf8 utf8_unicode_ci latin1_swedish_ci + id data + foo 42 + Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation +-foosp CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n\n\n\n\n \n\n \n values ("foo", 42) latin1 latin1_swedish_ci latin1_swedish_ci ++foosp CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n\n\n\n\n \n\n \n values ("foo", 42) utf8 utf8_unicode_ci latin1_swedish_ci + Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation +-nicesp CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n \n declare b int;\n declare c float;\n\n \n \n\n \nend latin1 latin1_swedish_ci latin1_swedish_ci ++nicesp CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n \n declare b int;\n declare c float;\n\n \n \n\n \nend utf8 utf8_unicode_ci latin1_swedish_ci + Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation +-t1_empty CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci ++t1_empty CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend utf8 utf8_unicode_ci latin1_swedish_ci + Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation +-t1_bi CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n\n\n\n \n declare b int;\n declare c float;\n\n \n \n\n \n set NEW.data := 12;\nend latin1 latin1_swedish_ci latin1_swedish_ci ++t1_bi CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n\n\n\n \n declare b int;\n declare c float;\n\n \n \n\n \n set NEW.data := 12;\nend utf8 utf8_unicode_ci latin1_swedish_ci + id data + trig 12 + "Pass 2 : --enable-comments" +@@ -40,23 +40,23 @@ trig 12 + foofct("call 1") + call 1 + Function sql_mode Create Function character_set_client collation_connection Database Collation +-foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n-- comment 1a\n# comment 1b\n/* comment 1c */\nx # after body, on same line latin1 latin1_swedish_ci latin1_swedish_ci ++foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nreturn\n-- comment 1a\n# comment 1b\n/* comment 1c */\nx # after body, on same line utf8 utf8_unicode_ci latin1_swedish_ci + foofct("call 2") + call 2 + Function sql_mode Create Function character_set_client collation_connection Database Collation +-foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n -- comment 1a\n # comment 1b\n /*\n comment 1c\n */\n\n -- empty line below\n\n -- empty line above\n return x;\nend latin1 latin1_swedish_ci latin1_swedish_ci ++foofct CREATE DEFINER=`root`@`localhost` FUNCTION `foofct`(x char(20)) RETURNS char(20) CHARSET latin1\nbegin\n -- comment 1a\n # comment 1b\n /*\n comment 1c\n */\n\n -- empty line below\n\n -- empty line above\n return x;\nend utf8 utf8_unicode_ci latin1_swedish_ci + Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation +-empty CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci ++empty CREATE DEFINER=`root`@`localhost` PROCEDURE `empty`()\nbegin\nend utf8 utf8_unicode_ci latin1_swedish_ci + id data + foo 42 + Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation +-foosp CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n## These comments are part of the procedure body, and should be kept.\n# Comment 2a\n-- Comment 2b\n/* Comment 2c */\n -- empty line below\n\n -- empty line above\n values ("foo", 42) # comment 3, still part of the body latin1 latin1_swedish_ci latin1_swedish_ci ++foosp CREATE DEFINER=`root`@`localhost` PROCEDURE `foosp`()\ninsert into test.t1\n## These comments are part of the procedure body, and should be kept.\n# Comment 2a\n-- Comment 2b\n/* Comment 2c */\n -- empty line below\n\n -- empty line above\n values ("foo", 42) # comment 3, still part of the body utf8 utf8_unicode_ci latin1_swedish_ci + Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation +-nicesp CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n -- declare some variables here\n declare b int;\n declare c float;\n\n -- do more stuff here\n -- commented nicely and so on\n\n -- famous last words ...\nend latin1 latin1_swedish_ci latin1_swedish_ci ++nicesp CREATE DEFINER=`root`@`localhost` PROCEDURE `nicesp`(a int)\nbegin\n -- declare some variables here\n declare b int;\n declare c float;\n\n -- do more stuff here\n -- commented nicely and so on\n\n -- famous last words ...\nend utf8 utf8_unicode_ci latin1_swedish_ci + Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation +-t1_empty CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend latin1 latin1_swedish_ci latin1_swedish_ci ++t1_empty CREATE DEFINER=`root`@`localhost` trigger t1_empty after delete on t1\nfor each row\nbegin\nend utf8 utf8_unicode_ci latin1_swedish_ci + Trigger sql_mode SQL Original Statement character_set_client collation_connection Database Collation +-t1_bi CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n# comment 1a\n-- comment 1b\n/*\n comment 1c\n*/\n -- declare some variables here\n declare b int;\n declare c float;\n\n -- do more stuff here\n -- commented nicely and so on\n\n -- famous last words ...\n set NEW.data := 12;\nend latin1 latin1_swedish_ci latin1_swedish_ci ++t1_bi CREATE DEFINER=`root`@`localhost` trigger t1_bi before insert on t1\nfor each row\nbegin\n# comment 1a\n-- comment 1b\n/*\n comment 1c\n*/\n -- declare some variables here\n declare b int;\n declare c float;\n\n -- do more stuff here\n -- commented nicely and so on\n\n -- famous last words ...\n set NEW.data := 12;\nend utf8 utf8_unicode_ci latin1_swedish_ci + id data + trig 12 + End of 5.0 tests diff --git a/mysql-5.1.35-test-variables-big.patch b/mysql-5.1.35-test-variables-big.patch new file mode 100644 index 0000000..82bda43 --- /dev/null +++ b/mysql-5.1.35-test-variables-big.patch @@ -0,0 +1,32 @@ +Index: mysql-test/t/variables-big.test +=================================================================== +--- mysql-test/t/variables-big.test.orig ++++ mysql-test/t/variables-big.test +@@ -40,22 +40,22 @@ SET SESSION transaction_prealloc_size=10 + --replace_column 1 6