mysql51.patch 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Index: include/Makefile.in
  2. --- include/Makefile.in.orig 2007-01-30 09:35:30 +0100
  3. +++ include/Makefile.in 2007-02-07 08:54:33 +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 2007-01-30 09:34:31 +0100
  23. +++ include/my_global.h 2007-02-07 08:54:33 +0100
  24. @@ -876,9 +876,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 2007-01-30 09:34:13 +0100
  35. +++ mysys/default.c 2007-02-07 08:56:38 +0100
  36. @@ -1011,8 +1011,7 @@
  37. #elif defined(__NETWARE__)
  38. *ptr++= "sys:/etc/";
  39. #else
  40. - *ptr++= "/etc/";
  41. - *ptr++= "/etc/mysql/";
  42. + *ptr++= "@l_prefix@/etc/mysql/";
  43. #endif
  44. if ((env= getenv(STRINGIFY_ARG(DEFAULT_HOME_ENV))))
  45. *ptr++= env;
  46. Index: scripts/mysql_config.sh
  47. --- scripts/mysql_config.sh.orig 2007-01-30 09:34:12 +0100
  48. +++ scripts/mysql_config.sh 2007-02-07 08:54:33 +0100
  49. @@ -97,9 +97,9 @@
  50. # Create options
  51. # We intentionally add a space to the beginning and end of lib strings, simplifies replace later
  52. -libs=" $ldflags -L$pkglibdir -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"
  53. +libs=" $ldflags -L$pkglibdir -lmysqlclient -lmysys @ZLIB_DEPS@ @NON_THREADED_LIBS@"
  54. libs="$libs @openssl_libs@ @STATIC_NSS_FLAGS@ "
  55. -libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
  56. +libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r -lmysys @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
  57. embedded_libs=" $ldflags -L$pkglibdir -lmysqld @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @innodb_system_libs@ @openssl_libs@ "
  58. cflags="-I$pkgincludedir @CFLAGS@ " #note: end space!
  59. Index: scripts/mysql_create_system_tables.sh
  60. --- scripts/mysql_create_system_tables.sh.orig 2007-01-30 09:34:03 +0100
  61. +++ scripts/mysql_create_system_tables.sh 2007-02-07 08:54:33 +0100
  62. @@ -94,9 +94,6 @@
  63. c_d="$c_d ) engine=MyISAM"
  64. c_d="$c_d CHARACTER SET utf8 COLLATE utf8_bin"
  65. c_d="$c_d comment='Database privileges';"
  66. -
  67. - 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');
  68. - INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y');"
  69. fi
  70. if test ! -f $mdata/host.frm
  71. @@ -187,17 +184,13 @@
  72. then
  73. 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);
  74. 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);
  75. - 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);
  76. - INSERT INTO user (host,user) values ('localhost','');
  77. - INSERT INTO user (host,user) values ('$hostname','');"
  78. + 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);"
  79. else
  80. 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);"
  81. if test "$windows" = "0"
  82. then
  83. i_u="$i_u
  84. - 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);
  85. - INSERT INTO user (host,user) values ('$hostname','');
  86. - INSERT INTO user (host,user) values ('localhost','');"
  87. + 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);"
  88. else
  89. i_u="$i_u
  90. 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);"
  91. Index: sql/Makefile.in
  92. --- sql/Makefile.in.orig 2007-01-30 09:35:40 +0100
  93. +++ sql/Makefile.in 2007-02-07 08:54:33 +0100
  94. @@ -501,7 +501,7 @@
  95. $(top_builddir)/strings/libmystrings.a
  96. mysqld_DEPENDENCIES = @mysql_plugin_libs@ $(SUPPORTING_LIBS)
  97. -LDADD = $(SUPPORTING_LIBS) @ZLIB_LIBS@
  98. +LDADD = $(SUPPORTING_LIBS)
  99. mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
  100. @pstack_libs@ \
  101. @mysql_plugin_libs@ \