diff options
author | ale <ale@FreeBSD.org> | 2008-12-30 22:02:23 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2008-12-30 22:02:23 +0800 |
commit | 8dbba85c4aac2a1a53e10f4f28b80771db168e02 (patch) | |
tree | 6708aa5f3e3ee40df0bc7d617e0a8ea6a18b805c /databases | |
parent | 252acaea36cab846812f6cecdbdf830a9eacb437 (diff) | |
download | freebsd-ports-gnome-8dbba85c4aac2a1a53e10f4f28b80771db168e02.tar.gz freebsd-ports-gnome-8dbba85c4aac2a1a53e10f4f28b80771db168e02.tar.zst freebsd-ports-gnome-8dbba85c4aac2a1a53e10f4f28b80771db168e02.zip |
Update to 4.1.25 release.
PR: ports/130023
Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
Diffstat (limited to 'databases')
-rw-r--r-- | databases/mysql41-server/Makefile | 8 | ||||
-rw-r--r-- | databases/mysql41-server/distinfo | 6 | ||||
-rw-r--r-- | databases/mysql41-server/files/patch-sql::mysqld.cc | 21 | ||||
-rw-r--r-- | databases/mysql41-server/files/patch-sql_mysql_priv.h | 11 | ||||
-rw-r--r-- | databases/mysql41-server/files/patch-sql_sql_parse.cc | 82 | ||||
-rw-r--r-- | databases/mysql41-server/pkg-plist | 2 | ||||
-rw-r--r-- | databases/mysql41-server/pkg-plist.client | 2 |
7 files changed, 9 insertions, 123 deletions
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile index 69e4abe20bfb..57a8eaf514cb 100644 --- a/databases/mysql41-server/Makefile +++ b/databases/mysql41-server/Makefile @@ -6,11 +6,11 @@ # PORTNAME?= mysql -PORTVERSION= 4.1.22 -PORTREVISION?= 1 +PORTVERSION= 4.1.25 +PORTREVISION?= 0 CATEGORIES= databases -MASTER_SITES= ${MASTER_SITE_MYSQL} -MASTER_SITE_SUBDIR= MySQL-4.1 +MASTER_SITES= ${MASTER_SITE_LOCAL} +MASTER_SITE_SUBDIR= ale PKGNAMESUFFIX?= -server MAINTAINER= ale@FreeBSD.org diff --git a/databases/mysql41-server/distinfo b/databases/mysql41-server/distinfo index b7e9ff67dd5d..72933f66e6a4 100644 --- a/databases/mysql41-server/distinfo +++ b/databases/mysql41-server/distinfo @@ -1,3 +1,3 @@ -MD5 (mysql-4.1.22.tar.gz) = 37b4479951fa0cf052269d27c41ca200 -SHA256 (mysql-4.1.22.tar.gz) = 6bd2436fd0f233bb1518e15975cb4e9fa4434acb53c3c3cd7d4648219abf58e9 -SIZE (mysql-4.1.22.tar.gz) = 17761101 +MD5 (mysql-4.1.25.tar.gz) = 7eb4cb4325ae0945148dd662bc25245d +SHA256 (mysql-4.1.25.tar.gz) = 35fa6be256020ef07ad1dfae8e4dd4aca318906017dad0bdf922d2199d542ed1 +SIZE (mysql-4.1.25.tar.gz) = 17574248 diff --git a/databases/mysql41-server/files/patch-sql::mysqld.cc b/databases/mysql41-server/files/patch-sql::mysqld.cc index 69c124fa1e70..e79f985fcb69 100644 --- a/databases/mysql41-server/files/patch-sql::mysqld.cc +++ b/databases/mysql41-server/files/patch-sql::mysqld.cc @@ -9,24 +9,3 @@ #include <syslog.h> #ifdef NEED_SYS_SYSLOG_H #include <sys/syslog.h> ---- sql/mysqld.cc 2007-11-29 10:52:36 +0000 -+++ sql/mysqld.cc 2008-02-29 09:55:00 +0000 -@@ -390,6 +390,7 @@ - char compiled_default_collation_name[]= MYSQL_DEFAULT_COLLATION_NAME; - char *language_ptr, *default_collation_name, *default_character_set_name; - char mysql_data_home_buff[2], *mysql_data_home=mysql_real_data_home; -+char mysql_unpacked_real_data_home[FN_REFLEN]; - struct passwd *user_info; - char server_version[SERVER_VERSION_LENGTH]; - char *mysqld_unix_port, *opt_mysql_tmpdir; -@@ -6896,6 +6897,9 @@ - pos[1]= 0; - } - convert_dirname(mysql_real_data_home,mysql_real_data_home,NullS); -+ (void) fn_format(buff, mysql_real_data_home, "", "", -+ (MY_RETURN_REAL_PATH|MY_RESOLVE_SYMLINKS)); -+ (void) unpack_dirname(mysql_unpacked_real_data_home, buff); - convert_dirname(language,language,NullS); - (void) my_load_path(mysql_home,mysql_home,""); // Resolve current dir - (void) my_load_path(mysql_real_data_home,mysql_real_data_home,mysql_home); - diff --git a/databases/mysql41-server/files/patch-sql_mysql_priv.h b/databases/mysql41-server/files/patch-sql_mysql_priv.h deleted file mode 100644 index a02b313c0457..000000000000 --- a/databases/mysql41-server/files/patch-sql_mysql_priv.h +++ /dev/null @@ -1,11 +0,0 @@ ---- sql/mysql_priv.h 2007-11-09 12:05:01 +0000 -+++ sql/mysql_priv.h 2008-02-29 09:55:00 +0000 -@@ -890,6 +890,7 @@ - extern time_t start_time; - extern char *mysql_data_home,server_version[SERVER_VERSION_LENGTH], - mysql_real_data_home[], *opt_mysql_tmpdir, mysql_charsets_dir[], -+ mysql_unpacked_real_data_home[], - def_ft_boolean_syntax[sizeof(ft_boolean_syntax)]; - #define mysql_tmpdir (my_tmpdir(&mysql_tmpdir_list)) - extern MY_TMPDIR mysql_tmpdir_list; - diff --git a/databases/mysql41-server/files/patch-sql_sql_parse.cc b/databases/mysql41-server/files/patch-sql_sql_parse.cc deleted file mode 100644 index 418d6d2ce14f..000000000000 --- a/databases/mysql41-server/files/patch-sql_sql_parse.cc +++ /dev/null @@ -1,82 +0,0 @@ ---- sql/sql_parse.cc 2007-06-12 12:47:36 +0000 -+++ sql/sql_parse.cc 2008-02-29 09:55:00 +0000 -@@ -65,7 +65,8 @@ - const char *table_name); - - static TABLE_LIST* get_table_by_alias(TABLE_LIST* tl, const char* db, -- const char* alias); -+ const char* alias); -+static bool test_if_data_home_dir(const char *dir); - - const char *any_db="*any*"; // Special symbol for check_access - -@@ -2531,6 +2532,20 @@ - "INDEX DIRECTORY option ignored"); - create_info.data_file_name= create_info.index_file_name= NULL; - #else -+ -+ if (test_if_data_home_dir(lex->create_info.data_file_name)) -+ { -+ my_error(ER_WRONG_ARGUMENTS,MYF(0),"DATA DIRECORY"); -+ res= -1; -+ break; -+ } -+ if (test_if_data_home_dir(lex->create_info.index_file_name)) -+ { -+ my_error(ER_WRONG_ARGUMENTS,MYF(0),"INDEX DIRECORY"); -+ res= -1; -+ break; -+ } -+ - /* Fix names if symlinked tables */ - if (append_file_to_dir(thd, &create_info.data_file_name, - create_table->real_name) || -@@ -5920,3 +5935,47 @@ - return negated; - return new Item_func_not(expr); - } -+ -+ -+/* -+ Check if path does not contain mysql data home directory -+ -+ SYNOPSIS -+ test_if_data_home_dir() -+ dir directory -+ conv_home_dir converted data home directory -+ home_dir_len converted data home directory length -+ -+ RETURN VALUES -+ 0 ok -+ 1 error -+*/ -+ -+static bool test_if_data_home_dir(const char *dir) -+{ -+ char path[FN_REFLEN], conv_path[FN_REFLEN]; -+ uint dir_len, home_dir_len= strlen(mysql_unpacked_real_data_home); -+ DBUG_ENTER("test_if_data_home_dir"); -+ -+ if (!dir) -+ DBUG_RETURN(0); -+ -+ (void) fn_format(path, dir, "", "", -+ (MY_RETURN_REAL_PATH|MY_RESOLVE_SYMLINKS)); -+ dir_len= unpack_dirname(conv_path, dir); -+ -+ if (home_dir_len <= dir_len) -+ { -+ if (lower_case_file_system) -+ { -+ if (!my_strnncoll(default_charset_info, (const uchar*) conv_path, -+ home_dir_len, -+ (const uchar*) mysql_unpacked_real_data_home, -+ home_dir_len)) -+ DBUG_RETURN(1); -+ } -+ else if (!memcmp(conv_path, mysql_unpacked_real_data_home, home_dir_len)) -+ DBUG_RETURN(1); -+ } -+ DBUG_RETURN(0); -+} - diff --git a/databases/mysql41-server/pkg-plist b/databases/mysql41-server/pkg-plist index 7ec35c2bacad..2d2241699ad8 100644 --- a/databases/mysql41-server/pkg-plist +++ b/databases/mysql41-server/pkg-plist @@ -68,7 +68,7 @@ lib/mysql/libmysys.a %%NDB%%lib/mysql/libndbclient.a %%NDB%%lib/mysql/libndbclient.la %%NDB%%lib/mysql/libndbclient.so -%%NDB%%lib/mysql/libndbclient.so.0 +%%NDB%%lib/mysql/libndbclient.so.1 lib/mysql/libnisam.a lib/mysql/libvio.a libexec/mysqld diff --git a/databases/mysql41-server/pkg-plist.client b/databases/mysql41-server/pkg-plist.client index 94d6384d8057..556634e6ed8a 100644 --- a/databases/mysql41-server/pkg-plist.client +++ b/databases/mysql41-server/pkg-plist.client @@ -11,6 +11,7 @@ bin/mysqlmanager-pwgen bin/mysqlmanagerc bin/mysqlshow bin/mysqltest +include/mysql/abi_check include/mysql/errmsg.h include/mysql/keycache.h include/mysql/m_ctype.h @@ -25,7 +26,6 @@ include/mysql/my_list.h include/mysql/my_net.h include/mysql/my_no_pthread.h include/mysql/my_pthread.h -include/mysql/my_semaphore.h include/mysql/my_sys.h include/mysql/my_xml.h include/mysql/mysql.h |