mysql51.patch 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Index: include/Makefile.in
  2. --- include/Makefile.in.orig 2006-12-06 18:06:46 +0100
  3. +++ include/Makefile.in 2006-12-12 19:30:39 +0100
  4. @@ -393,14 +393,14 @@
  5. 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 $(HEADERS_GEN)
  9. + m_ctype.h mysql/plugin.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 md5.h base64.h \
  19. mysql_version.h.in my_handler.h my_time.h decimal.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 2006-12-06 18:05:38 +0100
  23. +++ include/my_global.h 2006-12-12 18:46:44 +0100
  24. @@ -844,9 +844,8 @@
  25. #define SSIZE_MAX ((~((size_t) 0)) / 2)
  26. #endif
  27. -#if !defined(HAVE_ISINF) && !defined(isinf)
  28. +#undef isinf
  29. #define isinf(X) 0
  30. -#endif
  31. /* Define missing math constants. */
  32. #ifndef M_PI
  33. Index: mysys/default.c
  34. --- mysys/default.c.orig 2006-12-06 18:05:36 +0100
  35. +++ mysys/default.c 2006-12-12 18:46:44 +0100
  36. @@ -1011,7 +1011,7 @@
  37. #elif defined(__NETWARE__)
  38. *ptr++= "sys:/etc/";
  39. #else
  40. - *ptr++= "/etc/";
  41. + *ptr++= "@l_prefix@/etc/mysql/";
  42. #endif
  43. if ((env= getenv(STRINGIFY_ARG(DEFAULT_HOME_ENV))))
  44. *ptr++= env;
  45. Index: scripts/mysql_config.sh
  46. --- scripts/mysql_config.sh.orig 2006-12-06 18:05:26 +0100
  47. +++ scripts/mysql_config.sh 2006-12-12 18:46:44 +0100
  48. @@ -98,9 +98,9 @@
  49. # Create options
  50. # We intentionally add a space to the beginning and end of lib strings, simplifies replace later
  51. -libs=" $ldflags -L$pkglibdir -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"
  52. +libs=" $ldflags -L$pkglibdir -lmysqlclient -lmysys @ZLIB_DEPS@ @NON_THREADED_LIBS@"
  53. libs="$libs @openssl_libs@ @STATIC_NSS_FLAGS@ "
  54. -libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
  55. +libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r -lmysys @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
  56. embedded_libs=" $ldflags -L$pkglibdir -lmysqld @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @innodb_system_libs@ @openssl_libs@ "
  57. cflags="-I$pkgincludedir @CFLAGS@ " #note: end space!
  58. Index: scripts/mysql_create_system_tables.sh
  59. --- scripts/mysql_create_system_tables.sh.orig 2006-12-06 18:05:24 +0100
  60. +++ scripts/mysql_create_system_tables.sh 2006-12-12 18:46:44 +0100
  61. @@ -81,9 +81,6 @@
  62. c_d="$c_d ) engine=MyISAM"
  63. c_d="$c_d CHARACTER SET utf8 COLLATE utf8_bin"
  64. c_d="$c_d comment='Database privileges';"
  65. -
  66. - i_d="INSERT INTO db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');
  67. - INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');"
  68. fi
  69. if test ! -f $mdata/host.frm
  70. @@ -174,17 +171,13 @@
  71. then
  72. i_u="INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
  73. INSERT INTO user VALUES ('$hostname','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
  74. - REPLACE INTO user VALUES ('127.0.0.1','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
  75. - INSERT INTO user (host,user) values ('localhost','');
  76. - INSERT INTO user (host,user) values ('$hostname','');"
  77. + REPLACE INTO user VALUES ('127.0.0.1','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);"
  78. else
  79. i_u="INSERT INTO user VALUES ('localhost','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);"
  80. if test "$windows" = "0"
  81. then
  82. i_u="$i_u
  83. - INSERT INTO user VALUES ('$hostname','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);
  84. - INSERT INTO user (host,user) values ('$hostname','');
  85. - INSERT INTO user (host,user) values ('localhost','');"
  86. + INSERT INTO user VALUES ('$hostname','root','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0,0);"
  87. else
  88. i_u="$i_u
  89. INSERT INTO user VALUES ('localhost','','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','','','','',0,0,0);"
  90. Index: sql/Makefile.in
  91. --- sql/Makefile.in.orig 2006-12-06 18:06:54 +0100
  92. +++ sql/Makefile.in 2006-12-12 19:31:27 +0100
  93. @@ -503,7 +503,7 @@
  94. $(top_builddir)/strings/libmystrings.a
  95. mysqld_DEPENDENCIES = @mysql_plugin_libs@ $(SUPPORTING_LIBS)
  96. -LDADD = $(SUPPORTING_LIBS) @ZLIB_LIBS@
  97. +LDADD = $(SUPPORTING_LIBS)
  98. mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
  99. @pstack_libs@ \
  100. @mysql_plugin_libs@ \