Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d391ea24036b8082f9450d3c9ee44e114ea14520
commit d391ea24036b8082f9450d3c9ee44e114ea14520
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date: Fri Aug 15 01:31:19 2008 +0200
mysql-5.0.67-1-i686
- version bump
diff --git a/source/apps-extra/mysql/CVE-2007-5925.patch
b/source/apps-extra/mysql/CVE-2007-5925.patch
deleted file mode 100644
index 1338e28..0000000
--- a/source/apps-extra/mysql/CVE-2007-5925.patch
+++ /dev/null
@@ -1,112 +0,0 @@
-diff -ru old/innobase/include/db0err.h new/innobase/include/db0err.h
---- old/innobase/include/db0err.h 2007-07-04 16:06:59.000000000 +0300
-+++ new/innobase/include/db0err.h 2007-11-15 10:23:51.000000000 +0200
-@@ -57,6 +57,18 @@
- buffer pool (for big transactions,
- InnoDB stores the lock structs in the
- buffer pool) */
-+#define DB_FOREIGN_DUPLICATE_KEY 46 /* foreign key constraints
-+ activated by the operation would
-+ lead to a duplicate key in some
-+ table */
-+#define DB_TOO_MANY_CONCURRENT_TRXS 47 /* when InnoDB runs out of the
-+ preconfigured undo slots, this can
-+ only happen when there are too many
-+ concurrent transactions */
-+#define DB_UNSUPPORTED 48 /* when InnoDB sees any
artefact or
-+ a feature that it can't recoginize or
-+ work with e.g., FT indexes created by
-+ a later version of the engine. */
-
- /* The following are partial failure codes */
- #define DB_FAIL 1000
-diff -ru old/innobase/include/page0cur.h new/innobase/include/page0cur.h
---- old/innobase/include/page0cur.h 2007-07-04 16:06:10.000000000 +0300
-+++ new/innobase/include/page0cur.h 2007-11-15 10:23:51.000000000 +0200
-@@ -22,6 +22,7 @@
-
- /* Page cursor search modes; the values must be in this order! */
-
-+#define PAGE_CUR_UNSUPP 0
- #define PAGE_CUR_G 1
- #define PAGE_CUR_GE 2
- #define PAGE_CUR_L 3
-diff -ru old/sql/ha_innodb.cc new/sql/ha_innodb.cc
---- old/sql/ha_innodb.cc 2007-07-04 16:06:48.000000000 +0300
-+++ new/sql/ha_innodb.cc 2007-11-15 10:25:55.000000000 +0200
-@@ -526,6 +526,9 @@
- }
-
- return(HA_ERR_LOCK_TABLE_FULL);
-+ } else if (error == DB_UNSUPPORTED) {
-+
-+ return(HA_ERR_UNSUPPORTED);
- } else {
- return(-1); // Unknown error
- }
-@@ -3689,11 +3692,21 @@
- and comparison of non-latin1 char type fields in
- innobase_mysql_cmp() to get PAGE_CUR_LE_OR_EXTENDS to
- work correctly. */
--
-- default: assert(0);
-+ case HA_READ_MBR_CONTAIN:
-+ case HA_READ_MBR_INTERSECT:
-+ case HA_READ_MBR_WITHIN:
-+ case HA_READ_MBR_DISJOINT:
-+ my_error(ER_TABLE_CANT_HANDLE_SPKEYS, MYF(0));
-+ return(PAGE_CUR_UNSUPP);
-+ /* do not use "default:" in order to produce a gcc warning:
-+ enumeration value '...' not handled in switch
-+ (if -Wswitch or -Wall is used)
-+ */
- }
-
-- return(0);
-+ my_error(ER_CHECK_NOT_IMPLEMENTED, MYF(0), "this functionality");
-+
-+ return(PAGE_CUR_UNSUPP);
- }
-
- /*
-@@ -3831,11 +3844,18 @@
-
- last_match_mode = (uint) match_mode;
-
-- innodb_srv_conc_enter_innodb(prebuilt->trx);
-+ if (mode != PAGE_CUR_UNSUPP) {
-
-- ret = row_search_for_mysql((byte*) buf, mode, prebuilt, match_mode, 0);
-+ innodb_srv_conc_enter_innodb(prebuilt->trx);
-
-- innodb_srv_conc_exit_innodb(prebuilt->trx);
-+ ret = row_search_for_mysql((byte*) buf, mode, prebuilt,
-+ match_mode, 0);
-+
-+ innodb_srv_conc_exit_innodb(prebuilt->trx);
-+ } else {
-+
-+ ret = DB_UNSUPPORTED;
-+ }
-
- if (ret == DB_SUCCESS) {
- error = 0;
-@@ -5150,8 +5170,16 @@
- mode2 = convert_search_mode_to_innobase(max_key ? max_key->flag :
- HA_READ_KEY_EXACT);
-
-- n_rows = btr_estimate_n_rows_in_range(index, range_start,
-- mode1, range_end, mode2);
-+ if (mode1 != PAGE_CUR_UNSUPP && mode2 != PAGE_CUR_UNSUPP) {
-+
-+ n_rows = btr_estimate_n_rows_in_range(index, range_start,
-+ mode1, range_end,
-+ mode2);
-+ } else {
-+
-+ n_rows = 0;
-+ }
-+
- dtuple_free_for_mysql(heap1);
- dtuple_free_for_mysql(heap2);
-
diff --git a/source/apps-extra/mysql/CVE-2008-2079.patch
b/source/apps-extra/mysql/CVE-2008-2079.patch
deleted file mode 100644
index 6f36917..0000000
--- a/source/apps-extra/mysql/CVE-2008-2079.patch
+++ /dev/null
@@ -1,118 +0,0 @@
-diff -Nur mysql-5.0.51.orig/sql/mysqld.cc mysql-5.0.51/sql/mysqld.cc
---- mysql-5.0.51.orig/sql/mysqld.cc 2008-05-09 16:56:51.000000000 +0300
-+++ mysql-5.0.51/sql/mysqld.cc 2008-05-09 17:00:19.000000000 +0300
-@@ -323,6 +323,7 @@
- static char *default_collation_name;
- static char compiled_default_collation_name[]= MYSQL_DEFAULT_COLLATION_NAME;
- static char mysql_data_home_buff[2];
-+char mysql_unpacked_real_data_home[FN_REFLEN];
- static I_List<THD> thread_cache;
-
- #ifndef EMBEDDED_LIBRARY
-@@ -7565,6 +7566,11 @@
- 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 -Nur mysql-5.0.51.orig/sql/mysql_priv.h mysql-5.0.51/sql/mysql_priv.h
---- mysql-5.0.51.orig/sql/mysql_priv.h 2008-05-09 16:56:51.000000000 +0300
-+++ mysql-5.0.51/sql/mysql_priv.h 2008-05-09 16:57:15.000000000 +0300
-@@ -1255,6 +1255,7 @@
- extern time_t server_start_time, flush_status_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 -Nur mysql-5.0.51.orig/sql/sql_parse.cc mysql-5.0.51/sql/sql_parse.cc
---- mysql-5.0.51.orig/sql/sql_parse.cc 2008-05-09 16:56:51.000000000 +0300
-+++ mysql-5.0.51/sql/sql_parse.cc 2008-05-09 17:07:19.000000000 +0300
-@@ -77,6 +77,8 @@
- const char *table_name);
- static bool check_show_create_table_access(THD *thd, TABLE_LIST *table);
-
-+static bool test_if_data_home_dir(const char *dir);
-+
- const char *any_db="*any*"; // Special symbol for check_access
-
- const char *command_name[]={
-@@ -3001,6 +3003,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->table_name) ||
-@@ -7718,6 +7734,49 @@
- }
-
- /*
-+ 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);
-+}
-+
-+/*
- Set the specified definer to the default value, which is the current user in
- the thread.
-
-Files mysql-5.0.51.orig/sql/.sql_parse.cc.swp and
mysql-5.0.51/sql/.sql_parse.cc.swp differ
diff --git a/source/apps-extra/mysql/FrugalBuild
b/source/apps-extra/mysql/FrugalBuild
index 46869e5..77b2d0d 100644
--- a/source/apps-extra/mysql/FrugalBuild
+++ b/source/apps-extra/mysql/FrugalBuild
@@ -2,9 +2,9 @@
# Maintainer: Miklos Vajna <[EMAIL PROTECTED]>
pkgname=mysql
-pkgver=5.0.51
-pkgrel=4
-extrapkgver=a
+pkgver=5.0.67
+pkgrel=1
+extrapkgver=
pkgdesc="A fast SQL database server"
url="http://www.mysql.com/"
backup=(etc/my.cnf etc/sysconfig/mysqld)
@@ -15,9 +15,8 @@ groups=('apps-extra')
archs=('i686' 'x86_64')
up2date="lynx -dump http://dev.mysql.com/|grep 'GA'|sed 's/.*
\([0-9.]*\)/\1/;s/$extrapkgver//;q'"
mirror="http://mysql.mirrors.crysys.hit.bme.hu/"
-source=($mirror/Downloads/MySQL-5.0/$pkgname-$pkgver$extrapkgver.tar.gz
rc.mysqld my.cnf mysqld \
- CVE-2007-5925.patch CVE-2008-2079.patch)
-signatures=("${source[0]}.asc" '' '' '' '' '')
+source=($mirror/Downloads/MySQL-5.0/$pkgname-$pkgver$extrapkgver.tar.gz
rc.mysqld my.cnf mysqld)
+signatures=("${source[0]}.asc" '' '' '')
subpkgs=('libmysqlclient' 'libmysqld')
subdescs=('MySQL client library.' 'Embedded MySQL Server Library')
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git