Skip to contentSkip to conversation

new package: mysql server and client v5.1 and v5.5

PATCH New heiko at zuerker.org 1 participant 1 message Jul 9, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 new package: mysql server and client v5.1 and v5.5

From: Heiko Zuerker <[email protected]>

---
 package/mysql/Config.in                            |   88 +++++++++++
 .../mysql_client-5.1.53-ac_cache_check.patch       |  156 ++++++++++++++++++++
 ...ql_client-5.1.53-configure-ps-cache-check.patch |   39 +++++
 ...ysql_client-5.1.53-use-new-readline-iface.patch |   21 +++
 .../mysql-5.5.12/mysql-5.5.11-tool-path.patch      |   41 +++++
 package/mysql/mysql.mk                             |  150 +++++++++++++++++++
 package/mysql_client/Config.in                     |   10 --
 .../mysql_client-5.1.53-ac_cache_check.patch       |  156 --------------------
 ...ql_client-5.1.53-configure-ps-cache-check.patch |   39 -----
 ...ysql_client-5.1.53-use-new-readline-iface.patch |   21 ---
 package/mysql_client/mysql_client.mk               |   46 ------
 11 files changed, 495 insertions(+), 272 deletions(-)
 create mode 100644 package/mysql/Config.in
 create mode 100644 package/mysql/mysql-5.1.56/mysql_client-5.1.53-ac_cache_check.patch
 create mode 100644 package/mysql/mysql-5.1.56/mysql_client-5.1.53-configure-ps-cache-check.patch
 create mode 100644 package/mysql/mysql-5.1.56/mysql_client-5.1.53-use-new-readline-iface.patch
 create mode 100644 package/mysql/mysql-5.5.12/mysql-5.5.11-tool-path.patch
 create mode 100644 package/mysql/mysql.mk
 delete mode 100644 package/mysql_client/Config.in
 delete mode 100644 package/mysql_client/mysql_client-5.1.53-ac_cache_check.patch
 delete mode 100644 package/mysql_client/mysql_client-5.1.53-configure-ps-cache-check.patch
 delete mode 100644 package/mysql_client/mysql_client-5.1.53-use-new-readline-iface.patch
 delete mode 100644 package/mysql_client/mysql_client.mk
package/mysql/Config.in new file +88 -0
new file mode 100644
index 0000000..3dc0a2c
@@ -0,0 +1,88 @@
+config BR2_PACKAGE_MYSQL
+	bool "MySQL"
+	depends on BR2_INSTALL_LIBSTDCPP
+	select BR2_PACKAGE_NCURSES
+	select BR2_PACKAGE_READLINE
+	help
+	  MySQL client and optional server
+
+menu "MySQL options"
+depends on BR2_PACKAGE_MYSQL
+
+choice
+	prompt "MySQL Version"
+	default BR2_PACKAGE_MYSQL_51
+	help
+	  The version of MySQL
+
+config BR2_PACKAGE_MYSQL_51
+	bool "5.1.x"
+
+config BR2_PACKAGE_MYSQL_55
+	bool "5.5.x"
+
+endchoice
+
+config BR2_PACKAGE_MYSQL_SERVER
+	bool "Build the MySQL Server"
+	depends on BR2_INSTALL_LIBSTDCPP && BR2_PACKAGE_MYSQL
+	help
+	  MySQL server
+
+config BR2_PACKAGE_MYSQL_DATADIR
+	string "The MySQL data directory"
+	depends on BR2_PACKAGE_MYSQL_SERVER
+	default "/var/mysql"
+	help
+	  This directory will contain the database files
+
+config BR2_PACKAGE_MYSQL_STORAGE_ARCHIVE
+	bool "Archive Storage Engine"
+	depends on BR2_PACKAGE_MYSQL_SERVER
+	depends on BR2_PACKAGE_MYSQL_55
+
+config BR2_PACKAGE_MYSQL_STORAGE_BLACKHOLE
+	bool "Blackhole Storage Engine"
+	depends on BR2_PACKAGE_MYSQL_SERVER
+	depends on BR2_PACKAGE_MYSQL_55
+
+config BR2_PACKAGE_MYSQL_STORAGE_FEDERATED
+	bool "Federated Storage Engine"
+	depends on BR2_PACKAGE_MYSQL_SERVER
+	depends on BR2_PACKAGE_MYSQL_55
+
+config BR2_PACKAGE_MYSQL_STORAGE_INNOBASE
+	bool "Innobase Storage Engine"
+	default y
+	depends on BR2_PACKAGE_MYSQL_SERVER
+	depends on BR2_PACKAGE_MYSQL_55
+
+config BR2_PACKAGE_MYSQL_STORAGE_PARTITION
+	bool "Partition Storage Engine"
+	default y
+	depends on BR2_PACKAGE_MYSQL_SERVER
+	depends on BR2_PACKAGE_MYSQL_55
+
+config BR2_PACKAGE_MYSQL_STORAGE_PERFSCHEMA
+	bool "Perfschema Storage Engine"
+	default y
+	depends on BR2_PACKAGE_MYSQL_SERVER
+	depends on BR2_PACKAGE_MYSQL_55
+
+config BR2_PACKAGE_MYSQL_LOWMEM
+	depends on BR2_PACKAGE_MYSQL_51
+	bool "Compile for low memory consumption"
+
+config BR2_PACKAGE_MYSQL_EMBEDDED
+	bool "Build the embedded server (libmysqld)"
+
+config BR2_PACKAGE_MYSQL_NO_NDBBINLOG
+	bool "Disable ndb binlog"
+	
+config BR2_PACKAGE_MYSQL_REMOVE_TEST_PROGS
+	bool "Remove test programs"
+	
+endmenu
+
+comment "Mysql requires a toolchain with C++ support enabled"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/mysql/mysql-5.1.56/mysql_client-5.1.53-ac_cache_check.patch new file +156 -0

156 lines not on this page · raw message

package/mysql/mysql-5.1.56/mysql_client-5.1.53-configure-ps-cache-check.patch new file +39 -0
new file mode 100644
index 0000000..336e80e
@@ -0,0 +1,39 @@
+Patch borrowed from
+http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/mysql/files/configure-ps-cache-check.patch
+
+It allows to specify through ac_cv_FIND_PROC how ps should be used on
+the target to find the PID of a program.
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+
+---
+ configure.in |    9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+Index: mysql-5.1.53/configure.in
+===================================================================
+--- mysql-5.1.53.orig/configure.in
++++ mysql-5.1.53/configure.in
+@@ -462,8 +462,8 @@
+ # then Make, then shell.  The autoconf substitution uses single quotes, so 
+ # no unprotected single quotes should appear in the expression.
+ AC_PATH_PROG(PS, ps, ps)
+-AC_MSG_CHECKING("how to check if pid exists")
+-PS=$ac_cv_path_PS
++AC_CACHE_CHECK([how to check if pid exists], [ac_cv_FIND_PROC],
++[
+ # Linux style
+ if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null
+ then
+@@ -502,8 +502,9 @@
+       AC_MSG_ERROR([Could not find the right ps and/or grep switches. Which OS is this?  See the Installation chapter in the Reference Manual.])
+   esac
+ fi
+-AC_SUBST(FIND_PROC)
+-AC_MSG_RESULT("$FIND_PROC")
++ac_cv_FIND_PROC="$FIND_PROC"
++])
++AC_SUBST([FIND_PROC], [$ac_cv_FIND_PROC])
+ 
+ # Check if a pid is valid
+ AC_PATH_PROG(KILL, kill, kill)
package/mysql/mysql-5.1.56/mysql_client-5.1.53-use-new-readline-iface.patch new file +21 -0
new file mode 100644
index 0000000..c590656
@@ -0,0 +1,21 @@
+Tell MySQL to use the new readline interface even when an external
+readline is being used.
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+
+---
+ configure.in |    1 +
+ 1 file changed, 1 insertion(+)
+
+Index: mysql-5.1.53/configure.in
+===================================================================
+--- mysql-5.1.53.orig/configure.in
++++ mysql-5.1.53/configure.in
+@@ -2689,6 +2689,7 @@
+ 	    # this way we avoid linking commercial source with GPL readline
+ 	    readline_link="-lreadline"
+ 	    want_to_use_readline="yes"
++	    AC_DEFINE_UNQUOTED(USE_NEW_READLINE_INTERFACE, 1)
+ 	elif [test "$mysql_cv_libedit_interface" = "yes"]
+ 	then
+ 	    # Use libedit
package/mysql/mysql-5.5.12/mysql-5.5.11-tool-path.patch new file +41 -0

41 lines not on this page · raw message

package/mysql/mysql.mk new file +150 -0

150 lines not on this page · raw message

package/mysql_client/Config.in deleted +0 -10
deleted file mode 100644
index f07fdb4..0000000
@@ -1,10 +0,0 @@
-config BR2_PACKAGE_MYSQL_CLIENT
-	bool "MySQL client"
-	depends on BR2_INSTALL_LIBSTDCPP
-	select BR2_PACKAGE_NCURSES
-	select BR2_PACKAGE_READLINE
-	help
-	  MySQL client
-
-comment "Mysql client requires a toolchain with C++ support enabled"
-	depends on !BR2_INSTALL_LIBSTDCPP
package/mysql_client/mysql_client-5.1.53-ac_cache_check.patch deleted +0 -156

156 lines not on this page · raw message

package/mysql_client/mysql_client-5.1.53-configure-ps-cache-check.patch deleted +0 -39
deleted file mode 100644
index 336e80e..0000000
@@ -1,39 +0,0 @@
-Patch borrowed from
-http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/mysql/files/configure-ps-cache-check.patch
-
-It allows to specify through ac_cv_FIND_PROC how ps should be used on
-the target to find the PID of a program.
-
-Signed-off-by: Thomas Petazzoni <[email protected]>
-
----
- configure.in |    9 +++++----
- 1 file changed, 5 insertions(+), 4 deletions(-)
-
-Index: mysql-5.1.53/configure.in
-===================================================================
---- mysql-5.1.53.orig/configure.in
-+++ mysql-5.1.53/configure.in
-@@ -462,8 +462,8 @@
- # then Make, then shell.  The autoconf substitution uses single quotes, so 
- # no unprotected single quotes should appear in the expression.
- AC_PATH_PROG(PS, ps, ps)
--AC_MSG_CHECKING("how to check if pid exists")
--PS=$ac_cv_path_PS
-+AC_CACHE_CHECK([how to check if pid exists], [ac_cv_FIND_PROC],
-+[
- # Linux style
- if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null
- then
-@@ -502,8 +502,9 @@
-       AC_MSG_ERROR([Could not find the right ps and/or grep switches. Which OS is this?  See the Installation chapter in the Reference Manual.])
-   esac
- fi
--AC_SUBST(FIND_PROC)
--AC_MSG_RESULT("$FIND_PROC")
-+ac_cv_FIND_PROC="$FIND_PROC"
-+])
-+AC_SUBST([FIND_PROC], [$ac_cv_FIND_PROC])
- 
- # Check if a pid is valid
- AC_PATH_PROG(KILL, kill, kill)
package/mysql_client/mysql_client-5.1.53-use-new-readline-iface.patch deleted +0 -21
deleted file mode 100644
index c590656..0000000
@@ -1,21 +0,0 @@
-Tell MySQL to use the new readline interface even when an external
-readline is being used.
-
-Signed-off-by: Thomas Petazzoni <[email protected]>
-
----
- configure.in |    1 +
- 1 file changed, 1 insertion(+)
-
-Index: mysql-5.1.53/configure.in
-===================================================================
---- mysql-5.1.53.orig/configure.in
-+++ mysql-5.1.53/configure.in
-@@ -2689,6 +2689,7 @@
- 	    # this way we avoid linking commercial source with GPL readline
- 	    readline_link="-lreadline"
- 	    want_to_use_readline="yes"
-+	    AC_DEFINE_UNQUOTED(USE_NEW_READLINE_INTERFACE, 1)
- 	elif [test "$mysql_cv_libedit_interface" = "yes"]
- 	then
- 	    # Use libedit
package/mysql_client/mysql_client.mk deleted +0 -46

46 lines not on this page · raw message

Signature · 1 line
1.6.4.2