mysql51.patch 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Index: include/Makefile.in
  2. --- include/Makefile.in.orig 2006-06-02 20:03:03 +0200
  3. +++ include/Makefile.in 2006-07-05 11:12:33 +0200
  4. @@ -379,14 +379,14 @@
  5. errmsg.h my_global.h my_net.h my_alloc.h \
  6. my_getopt.h sslopt-longopts.h my_dir.h typelib.h \
  7. sslopt-vars.h sslopt-case.h sql_common.h keycache.h \
  8. - mysql_time.h mysql/plugin.h $(BUILT_SOURCES)
  9. + mysql_time.h mysql/plugin.h my_aes.h rijndael.h sha1.h $(BUILT_SOURCES)
  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
  21. Index: include/my_global.h
  22. --- include/my_global.h.orig 2006-02-27 22:24:47 +0100
  23. +++ include/my_global.h 2006-03-11 13:35:05 +0100
  24. @@ -819,9 +819,8 @@
  25. #define FLT_MAX ((float)3.40282346638528860e+38)
  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-06-02 20:00:52 +0200
  35. +++ mysys/default.c 2006-07-05 10:45:08 +0200
  36. @@ -1001,7 +1001,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_create_system_tables.sh
  46. --- scripts/mysql_create_system_tables.sh.orig 2006-02-27 22:25:28 +0100
  47. +++ scripts/mysql_create_system_tables.sh 2006-03-11 13:40:53 +0100
  48. @@ -81,9 +81,6 @@
  49. c_d="$c_d ) engine=MyISAM"
  50. c_d="$c_d CHARACTER SET utf8 COLLATE utf8_bin"
  51. c_d="$c_d comment='Database privileges';"
  52. -
  53. - 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');
  54. - INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');"
  55. fi
  56. if test ! -f $mdata/host.frm
  57. @@ -174,17 +171,13 @@
  58. then
  59. 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);
  60. 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);
  61. - 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);
  62. - INSERT INTO user (host,user) values ('localhost','');
  63. - INSERT INTO user (host,user) values ('$hostname','');"
  64. + 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);"
  65. else
  66. 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);"
  67. if test "$windows" = "0"
  68. then
  69. i_u="$i_u
  70. - 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);
  71. - INSERT INTO user (host,user) values ('$hostname','');
  72. - INSERT INTO user (host,user) values ('localhost','');"
  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. else
  75. i_u="$i_u
  76. 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);"