mysql51.patch 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Index: include/Makefile.in
  2. --- include/Makefile.in.orig 2007-09-24 12:32:02 +0200
  3. +++ include/Makefile.in 2007-10-01 07:39:56 +0200
  4. @@ -395,14 +395,14 @@
  5. decimal.h errmsg.h my_global.h my_net.h \
  6. my_getopt.h sslopt-longopts.h my_dir.h \
  7. sslopt-vars.h sslopt-case.h sql_common.h keycache.h \
  8. - m_ctype.h mysql/plugin.h my_attribute.h $(HEADERS_GEN)
  9. + m_ctype.h mysql/plugin.h my_attribute.h rijndael.h sha1.h my_aes.h $(HEADERS_GEN)
  10. noinst_HEADERS = config-win.h config-netware.h \
  11. heap.h my_bitmap.h my_uctype.h \
  12. myisam.h myisampack.h myisammrg.h ft_global.h\
  13. mysys_err.h my_base.h help_start.h help_end.h \
  14. - my_nosys.h my_alarm.h queues.h rijndael.h sha1.h \
  15. - my_aes.h my_tree.h my_trie.h hash.h thr_alarm.h \
  16. + my_nosys.h my_alarm.h queues.h \
  17. + my_tree.h my_trie.h hash.h thr_alarm.h \
  18. thr_lock.h t_ctype.h violite.h my_md5.h base64.h \
  19. mysql_version.h.in my_handler.h my_time.h \
  20. my_vle.h my_user.h my_atomic.h atomic/nolock.h \
  21. Index: include/my_global.h
  22. --- include/my_global.h.orig 2007-09-24 12:30:24 +0200
  23. +++ include/my_global.h 2007-10-01 07:39:56 +0200
  24. @@ -562,12 +562,6 @@
  25. #define PURIFY_OR_LINT_INIT(var)
  26. #endif
  27. -/* Define some useful general macros */
  28. -#if !defined(max)
  29. -#define max(a, b) ((a) > (b) ? (a) : (b))
  30. -#define min(a, b) ((a) < (b) ? (a) : (b))
  31. -#endif
  32. -
  33. #if !defined(HAVE_UINT)
  34. #undef HAVE_UINT
  35. #define HAVE_UINT
  36. @@ -1508,4 +1502,10 @@
  37. /* Length of decimal number represented by INT64. */
  38. #define MY_INT64_NUM_DECIMAL_DIGITS 21
  39. +/* Define some useful general macros */
  40. +#if !defined(max)
  41. +#define max(a, b) ((a) > (b) ? (a) : (b))
  42. +#define min(a, b) ((a) < (b) ? (a) : (b))
  43. +#endif
  44. +
  45. #endif /* my_global_h */
  46. Index: mysys/default.c
  47. --- mysys/default.c.orig 2007-09-24 12:30:12 +0200
  48. +++ mysys/default.c 2007-10-01 07:39:56 +0200
  49. @@ -1012,8 +1012,7 @@
  50. #elif defined(__NETWARE__)
  51. *ptr++= "sys:/etc/";
  52. #else
  53. - *ptr++= "/etc/";
  54. - *ptr++= "/etc/mysql/";
  55. + *ptr++= "@l_prefix@/etc/mysql/";
  56. #endif
  57. if ((env= getenv(STRINGIFY_ARG(DEFAULT_HOME_ENV))))
  58. *ptr++= env;
  59. Index: scripts/mysql_config.sh
  60. --- scripts/mysql_config.sh.orig 2007-09-24 12:29:59 +0200
  61. +++ scripts/mysql_config.sh 2007-10-01 07:39:56 +0200
  62. @@ -97,9 +97,9 @@
  63. # Create options
  64. # We intentionally add a space to the beginning and end of lib strings, simplifies replace later
  65. -libs=" $ldflags -L$pkglibdir -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"
  66. +libs=" $ldflags -L$pkglibdir -lmysqlclient -lmysys @ZLIB_DEPS@ @NON_THREADED_LIBS@"
  67. libs="$libs @openssl_libs@ @STATIC_NSS_FLAGS@ "
  68. -libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
  69. +libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r -lmysys @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
  70. embedded_libs=" $ldflags -L$pkglibdir -lmysqld @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @innodb_system_libs@ @openssl_libs@ "
  71. cflags="-I$pkgincludedir @CFLAGS@ " #note: end space!
  72. Index: scripts/mysql_system_tables_data.sql
  73. --- scripts/mysql_system_tables_data.sql.orig 2007-09-24 12:29:43 +0200
  74. +++ scripts/mysql_system_tables_data.sql 2007-10-01 07:39:56 +0200
  75. @@ -5,8 +5,6 @@
  76. -- Fill "db" table with default grants for anyone to
  77. -- access database 'test' and 'test_%' if "db" table didn't exist
  78. CREATE TEMPORARY TABLE tmp_db LIKE db;
  79. -INSERT INTO tmp_db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');
  80. -INSERT INTO tmp_db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');
  81. INSERT INTO db SELECT * FROM tmp_db WHERE @had_db_table=0;
  82. DROP TABLE tmp_db;
  83. Index: sql/Makefile.in
  84. --- sql/Makefile.in.orig 2007-09-24 12:32:16 +0200
  85. +++ sql/Makefile.in 2007-10-01 07:39:56 +0200
  86. @@ -512,7 +512,7 @@
  87. $(top_builddir)/strings/libmystrings.a
  88. mysqld_DEPENDENCIES = @mysql_plugin_libs@ $(SUPPORTING_LIBS) libndb.la
  89. -LDADD = $(SUPPORTING_LIBS) @ZLIB_LIBS@ @NDB_SCI_LIBS@
  90. +LDADD = $(SUPPORTING_LIBS) @NDB_SCI_LIBS@
  91. mysqld_LDADD = libndb.la \
  92. @MYSQLD_EXTRA_LDFLAGS@ \
  93. @pstack_libs@ \