mysql.patch 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Index: include/my_global.h
  2. --- include/my_global.h.orig 2007-01-09 13:51:49 +0100
  3. +++ include/my_global.h 2007-01-10 08:49:00 +0100
  4. @@ -777,9 +777,8 @@
  5. #define SSIZE_MAX ((~((size_t) 0)) / 2)
  6. #endif
  7. -#if !defined(HAVE_ISINF) && !defined(isinf)
  8. +#undef isinf
  9. #define isinf(X) 0
  10. -#endif
  11. /* Define missing math constants. */
  12. #ifndef M_PI
  13. Index: mysys/default.c
  14. --- mysys/default.c.orig 2007-01-09 13:51:38 +0100
  15. +++ mysys/default.c 2007-01-10 08:49:00 +0100
  16. @@ -1007,7 +1007,7 @@
  17. if ((env= getenv("ETC")))
  18. *ptr++= env;
  19. #endif
  20. - *ptr++= "/etc/";
  21. + *ptr++= "@l_prefix@/etc/mysql/";
  22. #endif
  23. if ((env= getenv(STRINGIFY_ARG(DEFAULT_HOME_ENV))))
  24. *ptr++= env;
  25. Index: scripts/mysql_config.sh
  26. --- scripts/mysql_config.sh.orig 2007-01-09 13:51:28 +0100
  27. +++ scripts/mysql_config.sh 2007-01-10 08:49:00 +0100
  28. @@ -98,9 +98,9 @@
  29. # Create options
  30. # We intentionally add a space to the beginning and end of lib strings, simplifies replace later
  31. -libs=" $ldflags -L$pkglibdir -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@"
  32. +libs=" $ldflags -L$pkglibdir -lmysqlclient -lmysys @ZLIB_DEPS@ @NON_THREADED_LIBS@"
  33. libs="$libs @openssl_libs@ @STATIC_NSS_FLAGS@ "
  34. -libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
  35. +libs_r=" $ldflags -L$pkglibdir -lmysqlclient_r -lmysys @ZLIB_DEPS@ @LIBS@ @openssl_libs@ "
  36. embedded_libs=" $ldflags -L$pkglibdir -lmysqld @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @innodb_system_libs@ @openssl_libs@ "
  37. cflags="-I$pkgincludedir @CFLAGS@ " #note: end space!
  38. Index: scripts/mysql_create_system_tables.sh
  39. --- scripts/mysql_create_system_tables.sh.orig 2007-01-09 13:51:08 +0100
  40. +++ scripts/mysql_create_system_tables.sh 2007-01-10 08:49:00 +0100
  41. @@ -77,9 +77,6 @@
  42. c_d="$c_d ) engine=MyISAM"
  43. c_d="$c_d CHARACTER SET utf8 COLLATE utf8_bin"
  44. c_d="$c_d comment='Database privileges';"
  45. -
  46. - i_d="INSERT INTO db VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N');
  47. - INSERT INTO db VALUES ('%','test\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N');"
  48. fi
  49. if test ! -f $mdata/host.frm
  50. @@ -167,17 +164,13 @@
  51. then
  52. 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','','','','',0,0,0,0);
  53. 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','','','','',0,0,0,0);
  54. - 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','','','','',0,0,0,0);
  55. - INSERT INTO user (host,user) values ('localhost','');
  56. - INSERT INTO user (host,user) values ('$hostname','');"
  57. + 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','','','','',0,0,0,0);"
  58. else
  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','','','','',0,0,0,0);"
  60. if test "$windows" = "0"
  61. then
  62. i_u="$i_u
  63. - 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','','','','',0,0,0,0);
  64. - INSERT INTO user (host,user) values ('$hostname','');
  65. - INSERT INTO user (host,user) values ('localhost','');"
  66. + 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','','','','',0,0,0,0);"
  67. else
  68. i_u="$i_u
  69. 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','','','','',0,0,0);"