diff options
Diffstat (limited to 'databases/mysql5-server')
-rw-r--r-- | databases/mysql5-server/Makefile | 3 | ||||
-rw-r--r-- | databases/mysql5-server/PLIST | 8 | ||||
-rw-r--r-- | databases/mysql5-server/distinfo | 17 | ||||
-rw-r--r-- | databases/mysql5-server/patches/patch-ca | 19 | ||||
-rw-r--r-- | databases/mysql5-server/patches/patch-include_my__time.h | 24 | ||||
-rw-r--r-- | databases/mysql5-server/patches/patch-mysql-test_r_func__time.result | 22 | ||||
-rw-r--r-- | databases/mysql5-server/patches/patch-mysql-test_t_func__time.test | 26 | ||||
-rw-r--r-- | databases/mysql5-server/patches/patch-sql-common_my__time.c | 25 | ||||
-rw-r--r-- | databases/mysql5-server/patches/patch-sql_mysqld.cc | 34 | ||||
-rw-r--r-- | databases/mysql5-server/patches/patch-sql_set__var.cc | 19 | ||||
-rw-r--r-- | databases/mysql5-server/patches/patch-sql_sql__class.h | 15 |
11 files changed, 14 insertions, 198 deletions
diff --git a/databases/mysql5-server/Makefile b/databases/mysql5-server/Makefile index ab2395ee5c2..6223e3267f7 100644 --- a/databases/mysql5-server/Makefile +++ b/databases/mysql5-server/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.32 2011/08/02 16:15:08 taca Exp $ +# $NetBSD: Makefile,v 1.33 2012/04/14 04:04:48 taca Exp $ PKGNAME= ${DISTNAME:S/-/-server-/} -PKGREVISION= 1 SVR4_PKGNAME= mysqs COMMENT= MySQL 5, a free SQL database (server) diff --git a/databases/mysql5-server/PLIST b/databases/mysql5-server/PLIST index 9b146ba127f..ad84e0bc7d2 100644 --- a/databases/mysql5-server/PLIST +++ b/databases/mysql5-server/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.17 2011/02/26 02:58:55 taca Exp $ +@comment $NetBSD: PLIST,v 1.18 2012/04/14 04:04:48 taca Exp $ bin/comp_err bin/innochecksum bin/my_print_defaults @@ -611,6 +611,7 @@ share/mysql-test/r/rpl_change_master.result share/mysql-test/r/rpl_charset.result share/mysql-test/r/rpl_charset_sjis.result share/mysql-test/r/rpl_commit_after_flush.result +share/mysql-test/r/rpl_conditional_comments.result share/mysql-test/r/rpl_create_database.result share/mysql-test/r/rpl_critical_errors.result share/mysql-test/r/rpl_ddl.result @@ -702,6 +703,7 @@ share/mysql-test/r/rpl_user_variables.result share/mysql-test/r/rpl_variables.result share/mysql-test/r/rpl_view.result share/mysql-test/r/schema.result +share/mysql-test/r/secure_file_priv_win.result share/mysql-test/r/select.result share/mysql-test/r/select_found.result share/mysql-test/r/select_safe.result @@ -1894,6 +1896,7 @@ share/mysql-test/t/rpl_change_master.test share/mysql-test/t/rpl_charset.test share/mysql-test/t/rpl_charset_sjis.test share/mysql-test/t/rpl_commit_after_flush.test +share/mysql-test/t/rpl_conditional_comments.test share/mysql-test/t/rpl_create_database-master.opt share/mysql-test/t/rpl_create_database-slave.opt share/mysql-test/t/rpl_create_database.test @@ -2042,6 +2045,8 @@ share/mysql-test/t/rpl_variables-master.opt share/mysql-test/t/rpl_variables.test share/mysql-test/t/rpl_view.test share/mysql-test/t/schema.test +share/mysql-test/t/secure_file_priv_win-master.opt +share/mysql-test/t/secure_file_priv_win.test share/mysql-test/t/select.test share/mysql-test/t/select_found.test share/mysql-test/t/select_safe.test @@ -2214,3 +2219,4 @@ share/mysql/slovak/errmsg.sys share/mysql/spanish/errmsg.sys share/mysql/swedish/errmsg.sys share/mysql/ukrainian/errmsg.sys +@pkgdir share/mysql-test/collections diff --git a/databases/mysql5-server/distinfo b/databases/mysql5-server/distinfo index 9206c729d8b..a11f1fe974c 100644 --- a/databases/mysql5-server/distinfo +++ b/databases/mysql5-server/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.28 2011/08/04 09:09:41 taca Exp $ +$NetBSD: distinfo,v 1.29 2012/04/14 04:04:48 taca Exp $ -SHA1 (mysql-5.0.92.tar.gz) = 10fffc7672a469af4a7fd980922b04d7ba0143ba -RMD160 (mysql-5.0.92.tar.gz) = 24a373a1b124acf39d0c0726e5cb6f47dc1bef08 -Size (mysql-5.0.92.tar.gz) = 22440590 bytes +SHA1 (mysql-5.0.96.tar.gz) = b28a82dccaa8a9d708f49ec5d0d0c3762d4010c8 +RMD160 (mysql-5.0.96.tar.gz) = b7c500f5aa82ab7189acc3c184db25616645e3ec +Size (mysql-5.0.96.tar.gz) = 22686667 bytes SHA1 (patch-aa) = 4517f9e7445ccb6e7cdd6eee44af4fe3d8dc9513 SHA1 (patch-ab) = 7c51a0214c3e6205605047c72b07eac6792600db SHA1 (patch-ae) = dc67ad03f9ea370b17a45f73e974013e0ac48d71 @@ -18,13 +18,6 @@ SHA1 (patch-an) = 1f7ede981f2e7a846f49a5cfd443051acf9f3a02 SHA1 (patch-ap) = 70049d00e30d89201dd8d9fc0ace4e6edfcffae7 SHA1 (patch-aq) = e63b5be7cb1cb2e8ca8ee52e7e42632c05804959 SHA1 (patch-bf) = 180aefb012a0d17269654ba0aeb71ec74ea98e6c -SHA1 (patch-ca) = a1620b5ebad72bcf9265ec0f9b44ecebb2ee22c7 +SHA1 (patch-ca) = 34cd54409f459a8938c7068218d736b6c7916a5c SHA1 (patch-cb) = 3e6e3e5aeb0476b399ce80d7af58564cdad7da7a SHA1 (patch-cc) = 5dc7423892271cf9be86be71de10d275532a8541 -SHA1 (patch-include_my__time.h) = 369fb468388bdec4e8449927e2109a8839fdde8a -SHA1 (patch-mysql-test_r_func__time.result) = c85c6ff7981adf9dd10a4d1724e0b94616dcbe1c -SHA1 (patch-mysql-test_t_func__time.test) = 5ff59d3fb9486a34ab23f33a942c2bd16be87776 -SHA1 (patch-sql-common_my__time.c) = 8fa7f2f54cccf778c316e311dec8a39a87b9fc57 -SHA1 (patch-sql_mysqld.cc) = ae26b56f5ede21ed975005f47994b685b2c8083e -SHA1 (patch-sql_set__var.cc) = 149b35a73c5b82094fc5188b872904aaeb9f2329 -SHA1 (patch-sql_sql__class.h) = 27fc6cc1684288b7ca517915af69a4ef8447c691 diff --git a/databases/mysql5-server/patches/patch-ca b/databases/mysql5-server/patches/patch-ca index 923899b4e48..f769ebd63bd 100644 --- a/databases/mysql5-server/patches/patch-ca +++ b/databases/mysql5-server/patches/patch-ca @@ -1,28 +1,11 @@ -$NetBSD: patch-ca,v 1.4 2011/08/02 16:15:08 taca Exp $ +$NetBSD: patch-ca,v 1.5 2012/04/14 04:04:48 taca Exp $ -* Handling of time_t: http://lists.mysql.com/commits/128103 * Before calling sigsend(), make sure the function actuall exists. Fixes the build on NetBSD >= 4.99.49, in which the macro P_MYID is defined somewhere unrelated to signals. --- configure.in.orig 2011-01-25 11:27:51.000000000 +0000 +++ configure.in -@@ -1956,6 +1956,15 @@ dnl - - MYSQL_CHECK_TIME_T - -+dnl -+dnl check size of time_t -+dnl -+ -+AC_CHECK_SIZEOF(time_t, 8) -+if test "$ac_cv_sizeof_time_t" -eq 0 -+then -+ AC_MSG_ERROR("MySQL needs a time_t type.") -+fi - - # do we need #pragma interface/#pragma implementation ? - # yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin @@ -2051,7 +2060,7 @@ AC_CHECK_HEADERS(varargs.h stdarg.h dire paths.h semaphore.h) diff --git a/databases/mysql5-server/patches/patch-include_my__time.h b/databases/mysql5-server/patches/patch-include_my__time.h deleted file mode 100644 index 87c9a06f592..00000000000 --- a/databases/mysql5-server/patches/patch-include_my__time.h +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-include_my__time.h,v 1.1 2011/08/02 16:15:08 taca Exp $ - -* Handling of time_t: http://lists.mysql.com/commits/128103 - ---- include/my_time.h.orig 2011-01-25 11:28:00.000000000 +0000 -+++ include/my_time.h -@@ -44,6 +44,17 @@ typedef long my_time_t; - #define MY_TIME_T_MIN LONG_MIN - - -+/* -+ check for valid times only if the range of time_t is greater than -+ the range of my_time_t -+*/ -+#if SIZEOF_TIME_T > SIZEOF_LONG -+# define IS_VALID_TIME_T(x) ((x) <= (time_t) MY_TIME_T_MAX && \ -+ (x) >= (time_t) MY_TIME_T_MIN) -+#else -+# define IS_VALID_TIME_T(x) (1 > 0) -+#endif -+ - /* Time handling defaults */ - #define TIMESTAMP_MAX_YEAR 2038 - #define YY_PART_YEAR 70 diff --git a/databases/mysql5-server/patches/patch-mysql-test_r_func__time.result b/databases/mysql5-server/patches/patch-mysql-test_r_func__time.result deleted file mode 100644 index 3bdfc217d48..00000000000 --- a/databases/mysql5-server/patches/patch-mysql-test_r_func__time.result +++ /dev/null @@ -1,22 +0,0 @@ -$NetBSD: patch-mysql-test_r_func__time.result,v 1.1 2011/08/02 16:15:08 taca Exp $ - -* Handling of time_t: http://lists.mysql.com/commits/128103 - ---- mysql-test/r/func_time.result.orig 2011-01-25 11:52:36.000000000 +0000 -+++ mysql-test/r/func_time.result -@@ -1323,4 +1323,15 @@ SELECT '2008-02-18' + INTERVAL 1 FRAC_SE - ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FRAC_SECOND' at line 1 - SELECT '2008-02-18' - INTERVAL 1 FRAC_SECOND; - ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FRAC_SECOND' at line 1 -+# -+# Bug #52315 part 2 : utc_date() crashes when system time > year 2037 -+# -+SET TIMESTAMP=-147490000; -+SELECT UTC_TIMESTAMP(); -+SET TIMESTAMP=2147483648; -+SELECT UTC_TIMESTAMP(); -+SET TIMESTAMP=2147483646; -+SELECT UTC_TIMESTAMP(); -+SET TIMESTAMP=2147483647; -+SELECT UTC_TIMESTAMP(); - End of 5.0 tests diff --git a/databases/mysql5-server/patches/patch-mysql-test_t_func__time.test b/databases/mysql5-server/patches/patch-mysql-test_t_func__time.test deleted file mode 100644 index 5cb060c664c..00000000000 --- a/databases/mysql5-server/patches/patch-mysql-test_t_func__time.test +++ /dev/null @@ -1,26 +0,0 @@ -$NetBSD: patch-mysql-test_t_func__time.test,v 1.1 2011/08/02 16:15:08 taca Exp $ - -* Handling of time_t: http://lists.mysql.com/commits/128103 - ---- mysql-test/t/func_time.test.orig 2011-01-25 11:52:35.000000000 +0000 -+++ mysql-test/t/func_time.test -@@ -838,4 +838,19 @@ SELECT '2008-02-18' + INTERVAL 1 FRAC_SE - --error ER_PARSE_ERROR - SELECT '2008-02-18' - INTERVAL 1 FRAC_SECOND; - -+ -+--echo # -+--echo # Bug #52315 part 2 : utc_date() crashes when system time > year 2037 -+--echo # -+ -+--disable_result_log -+--error ER_UNKNOWN_ERROR -+SET TIMESTAMP=-147490000; SELECT UTC_TIMESTAMP(); -+--error ER_UNKNOWN_ERROR -+SET TIMESTAMP=2147483648; SELECT UTC_TIMESTAMP(); -+SET TIMESTAMP=2147483646; SELECT UTC_TIMESTAMP(); -+SET TIMESTAMP=2147483647; SELECT UTC_TIMESTAMP(); -+--enable_result_log -+ -+ - --echo End of 5.0 tests diff --git a/databases/mysql5-server/patches/patch-sql-common_my__time.c b/databases/mysql5-server/patches/patch-sql-common_my__time.c deleted file mode 100644 index 3b0df49a884..00000000000 --- a/databases/mysql5-server/patches/patch-sql-common_my__time.c +++ /dev/null @@ -1,25 +0,0 @@ -$NetBSD: patch-sql-common_my__time.c,v 1.2 2011/08/04 09:09:41 taca Exp $ - -* Handling of time_t: http://lists.mysql.com/commits/128103 - ---- sql-common/my_time.c.orig 2011-01-25 11:28:00.000000000 +0000 -+++ sql-common/my_time.c -@@ -984,8 +984,17 @@ my_system_gmt_sec(const MYSQL_TIME *t_sr - So, tmp < TIMESTAMP_MIN_VALUE will be triggered. On platfroms - with unsigned time_t tmp+= shift*86400L might result in a number, - larger then TIMESTAMP_MAX_VALUE, so another check will work. -+ -+ tmp being larger than TIMESTAMP_MAX_VALUE can only happen on -+ platforms where the size of time_t is larger than the size of -+ TIMESTAMP_MAX_VALUE (currently INT32 : 4 bytes). -+ #ifdef to avoid the compilation warnings on these platforms (OpenBSD). - */ -- if ((tmp < TIMESTAMP_MIN_VALUE) || (tmp > TIMESTAMP_MAX_VALUE)) -+ if ((tmp < TIMESTAMP_MIN_VALUE) -+#if SIZEOF_TIME_T > 4 -+ || (tmp > TIMESTAMP_MAX_VALUE) -+#endif -+ ) - tmp= 0; - - return (my_time_t) tmp; diff --git a/databases/mysql5-server/patches/patch-sql_mysqld.cc b/databases/mysql5-server/patches/patch-sql_mysqld.cc deleted file mode 100644 index 31d1797af7d..00000000000 --- a/databases/mysql5-server/patches/patch-sql_mysqld.cc +++ /dev/null @@ -1,34 +0,0 @@ -$NetBSD: patch-sql_mysqld.cc,v 1.1 2011/08/02 16:15:08 taca Exp $ - -* Handling of time_t: http://lists.mysql.com/commits/128103 - ---- sql/mysqld.cc.orig 2011-01-25 11:27:51.000000000 +0000 -+++ sql/mysqld.cc -@@ -2836,13 +2836,6 @@ static int init_common_variables(const c - max_system_variables.pseudo_thread_id= (ulong)~0; - server_start_time= flush_status_time= time((time_t*) 0); - -- /* TODO: remove this when my_time_t is 64 bit compatible */ -- if (server_start_time >= (time_t) MY_TIME_T_MAX) -- { -- sql_print_error("This MySQL server doesn't support dates later then 2038"); -- return 1; -- } -- - if (init_thread_environment()) - return 1; - mysql_init_variables(); -@@ -2882,6 +2875,13 @@ static int init_common_variables(const c - mysql_slow_log.init_pthread_objects(); - mysql_bin_log.init_pthread_objects(); - -+ /* TODO: remove this when my_time_t is 64 bit compatible */ -+ if (!IS_VALID_TIME_T(server_start_time)) -+ { -+ sql_print_error("This MySQL server doesn't support dates later then 2038"); -+ return 1; -+ } -+ - if (gethostname(glob_hostname,sizeof(glob_hostname)) < 0) - { - strmake(glob_hostname, STRING_WITH_LEN("localhost")); diff --git a/databases/mysql5-server/patches/patch-sql_set__var.cc b/databases/mysql5-server/patches/patch-sql_set__var.cc deleted file mode 100644 index 549bef24ecf..00000000000 --- a/databases/mysql5-server/patches/patch-sql_set__var.cc +++ /dev/null @@ -1,19 +0,0 @@ -$NetBSD: patch-sql_set__var.cc,v 1.2 2011/08/04 09:09:41 taca Exp $ - -* Handling of time_t: http://lists.mysql.com/commits/128103 - ---- sql/set_var.cc.orig 2011-01-25 11:27:51.000000000 +0000 -+++ sql/set_var.cc -@@ -2717,7 +2717,11 @@ bool sys_var_timestamp::check(THD *thd, - time_t val; - var->save_result.ulonglong_value= var->value->val_int(); - val= (time_t) var->save_result.ulonglong_value; -- if (val < (time_t) MY_TIME_T_MIN || val > (time_t) MY_TIME_T_MAX) -+ if ((val < TIMESTAMP_MIN_VALUE) -+#if SIZEOF_TIME_T > 4 -+ || (val > TIMESTAMP_MAX_VALUE) -+#endif -+ ) - { - my_message(ER_UNKNOWN_ERROR, - "This version of MySQL doesn't support dates later than 2038", diff --git a/databases/mysql5-server/patches/patch-sql_sql__class.h b/databases/mysql5-server/patches/patch-sql_sql__class.h deleted file mode 100644 index d0b6d34ee33..00000000000 --- a/databases/mysql5-server/patches/patch-sql_sql__class.h +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-sql_sql__class.h,v 1.1 2011/08/02 16:15:08 taca Exp $ - -* Handling of time_t: http://lists.mysql.com/commits/128103 - ---- sql/sql_class.h.orig 2011-01-25 11:27:51.000000000 +0000 -+++ sql/sql_class.h -@@ -1710,7 +1710,7 @@ public: - /*TODO: this will be obsolete when we have support for 64 bit my_time_t */ - inline bool is_valid_time() - { -- return (start_time < (time_t) MY_TIME_T_MAX); -+ return (IS_VALID_TIME_T(start_time)); - } - inline void insert_id(ulonglong id_arg) - { |