diff options
author | Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org> | 2014-01-18 22:41:50 -0100 |
---|---|---|
committer | Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto@gentoo.org> | 2014-01-18 22:41:50 -0100 |
commit | 445859d4b3390cea7ba542613bb8a891323adc9b (patch) | |
tree | d5789826bb0b36601dbacf02e71d461d090fa0f8 | |
parent | Split client and embedded libs. (diff) | |
download | mysql-extras-445859d4b3390cea7ba542613bb8a891323adc9b.tar.gz mysql-extras-445859d4b3390cea7ba542613bb8a891323adc9b.tar.bz2 mysql-extras-445859d4b3390cea7ba542613bb8a891323adc9b.zip |
Bump cmake_elib patch to mariadb-5.5.33 and higher.
-rw-r--r-- | 00000_index.txt | 7 | ||||
-rw-r--r-- | 20006_all_cmake_elib-mariadb-5.5.32.patch (renamed from 20006_all_cmake_elib.patch) | 0 | ||||
-rw-r--r-- | 20006_all_cmake_elib-mariadb-5.5.33.patch | 130 |
3 files changed, 136 insertions, 1 deletions
diff --git a/00000_index.txt b/00000_index.txt index f1c6274..4659487 100644 --- a/00000_index.txt +++ b/00000_index.txt @@ -1550,7 +1550,12 @@ @pn mysql @@ Fix poor Makefile.am references in unittest/my_decimal -@patch 20006_all_cmake_elib.patch +@patch 20006_all_cmake_elib-mariad-5.5.32.patch @ver 5.05.32.00 to 5.05.32.99 @pn mariadb @@ Add ELIBPATH to split client and embedded libs + +@patch 20006_all_cmake_elib-mariad-5.5.33.patch +@ver 5.05.33.00 to 5.05.99.99 +@pn mariadb +@@ Add ELIBPATH to split client and embedded libs diff --git a/20006_all_cmake_elib.patch b/20006_all_cmake_elib-mariadb-5.5.32.patch index a3c3f38..a3c3f38 100644 --- a/20006_all_cmake_elib.patch +++ b/20006_all_cmake_elib-mariadb-5.5.32.patch diff --git a/20006_all_cmake_elib-mariadb-5.5.33.patch b/20006_all_cmake_elib-mariadb-5.5.33.patch new file mode 100644 index 0000000..50abfe9 --- /dev/null +++ b/20006_all_cmake_elib-mariadb-5.5.33.patch @@ -0,0 +1,130 @@ +diff -ur mysql-old/cmake/install_layout.cmake mysql/cmake/install_layout.cmake +--- mysql-old/cmake/install_layout.cmake 2014-01-18 22:28:40.431273470 -0100 ++++ mysql/cmake/install_layout.cmake 2014-01-18 22:40:48.646301163 -0100 +@@ -44,7 +44,8 @@ + # - INSTALL_SYSCONFDIR (my.cnf config file. Usually /etc or nothing) + # - INSTALL_SYSCONF2DIR (additional config files, e.g. /etc/mysql/conf.d) + # +-# - INSTALL_LIBDIR (directory with client end embedded libraries) ++# - INSTALL_LIBDIR (directory with client libraries) ++# - INSTALL_ELIBDIR (directory with embedded libraries) + # - INSTALL_PLUGINDIR (directory for plugins) + # + # - INSTALL_INCLUDEDIR (directory for MySQL headers) +@@ -120,6 +121,7 @@ + SET(INSTALL_SCRIPTDIR_STANDALONE "scripts") + # + SET(INSTALL_LIBDIR_STANDALONE "lib") ++SET(INSTALL_ELIBDIR_STANDALONE "lib") + SET(INSTALL_PLUGINDIR_STANDALONE "lib/plugin") + # + SET(INSTALL_INCLUDEDIR_STANDALONE "include/mysql") +@@ -150,9 +152,11 @@ + # + IF(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64") + SET(INSTALL_LIBDIR_RPM "lib64") ++ SET(INSTALL_ELIBDIR_RPM "lib64") + SET(INSTALL_PLUGINDIR_RPM "lib64/mysql/plugin") + ELSE() + SET(INSTALL_LIBDIR_RPM "lib") ++ SET(INSTALL_ELIBDIR_RPM "lib") + SET(INSTALL_PLUGINDIR_RPM "lib/mysql/plugin") + ENDIF() + # +@@ -183,6 +187,7 @@ + SET(INSTALL_SYSCONF2DIR_DEB "/etc/mysql/conf.d") + # + SET(INSTALL_LIBDIR_DEB "lib") ++SET(INSTALL_ELIBDIR_DEB "lib") + SET(INSTALL_PLUGINDIR_DEB "lib/mysql/plugin") + # + SET(INSTALL_INCLUDEDIR_DEB "include/mysql") +@@ -210,6 +215,7 @@ + SET(INSTALL_SCRIPTDIR_SVR4 "scripts") + # + SET(INSTALL_LIBDIR_SVR4 "lib") ++SET(INSTALL_ELIBDIR_SVR4 "lib") + SET(INSTALL_PLUGINDIR_SVR4 "lib/plugin") + # + SET(INSTALL_INCLUDEDIR_SVR4 "include/mysql") +@@ -241,7 +247,7 @@ + # Set INSTALL_FOODIR variables for chosen layout (for example, INSTALL_BINDIR + # will be defined as ${INSTALL_BINDIR_STANDALONE} by default if STANDALONE + # layout is chosen) +-FOREACH(var BIN SBIN LIB MYSQLSHARE SHARE PLUGIN INCLUDE SCRIPT DOC MAN SYSCONF SYSCONF2 ++FOREACH(var BIN SBIN LIB ELIB MYSQLSHARE SHARE PLUGIN INCLUDE SCRIPT DOC MAN SYSCONF SYSCONF2 + INFO MYSQLTEST SQLBENCH DOCREADME SUPPORTFILES MYSQLDATA PLUGINTEST UNIX_ADDR) + SET(INSTALL_${var}DIR ${INSTALL_${var}DIR_${INSTALL_LAYOUT}} + CACHE STRING "${var} installation directory" ${FORCE}) +Only in mysql/cmake: install_layout.cmake.orig +diff -ur mysql-old/cmake/libutils.cmake mysql/cmake/libutils.cmake +--- mysql-old/cmake/libutils.cmake 2014-01-18 22:28:40.430273470 -0100 ++++ mysql/cmake/libutils.cmake 2014-01-18 22:28:52.801273941 -0100 +@@ -211,10 +211,11 @@ + # [linklib1 .... linklibN] + # [EXPORTS exported_func1 .... exportedFuncN] + # [OUTPUT_NAME output_name] ++# [OUTPUT_DIR output_dir] + #) + MACRO(MERGE_LIBRARIES) + MYSQL_PARSE_ARGUMENTS(ARG +- "EXPORTS;OUTPUT_NAME;COMPONENT;VERSION;SOVERSION" ++ "EXPORTS;OUTPUT_NAME;COMPONENT;VERSION;SOVERSION;OUTPUT_DIR" + "STATIC;SHARED;MODULE;NOINSTALL" + ${ARGN} + ) +@@ -274,7 +275,11 @@ + IF(ARG_COMPONENT) + SET(COMP COMPONENT ${ARG_COMPONENT}) + ENDIF() +- MYSQL_INSTALL_TARGETS(${TARGET} DESTINATION "${INSTALL_LIBDIR}" ${COMP}) ++ IF(ARG_OUTPUT_DIR) ++ MYSQL_INSTALL_TARGETS(${TARGET} DESTINATION "${ARG_OUTPUT_DIR}" ${COMP}) ++ ELSE() ++ MYSQL_INSTALL_TARGETS(${TARGET} DESTINATION "${INSTALL_LIBDIR}" ${COMP}) ++ ENDIF() + ENDIF() + SET_TARGET_PROPERTIES(${TARGET} PROPERTIES LINK_INTERFACE_LIBRARIES "") + IF(ARG_SHARED AND LINK_FLAG_NO_UNDEFINED) +diff -ur mysql-old/libmysql/CMakeLists.txt mysql/libmysql/CMakeLists.txt +--- mysql-old/libmysql/CMakeLists.txt 2014-01-18 22:28:40.429273470 -0100 ++++ mysql/libmysql/CMakeLists.txt 2014-01-18 22:28:53.025273949 -0100 +@@ -329,7 +329,7 @@ + + # Merge several convenience libraries into one big mysqlclient + # and link them together into shared library. +-MERGE_LIBRARIES(mysqlclient STATIC ${LIBS} COMPONENT Development) ++MERGE_LIBRARIES(mysqlclient STATIC ${LIBS} COMPONENT Development OUTPUT_DIR ${INSTALL_LIBDIR}) + + # Visual Studio users need debug static library for debug projects + IF(MSVC) +diff -ur mysql-old/libmysqld/CMakeLists.txt mysql/libmysqld/CMakeLists.txt +--- mysql-old/libmysqld/CMakeLists.txt 2014-01-18 22:28:40.090273457 -0100 ++++ mysql/libmysqld/CMakeLists.txt 2014-01-18 22:28:53.025273949 -0100 +@@ -134,7 +134,7 @@ + ENDFOREACH() + + MERGE_LIBRARIES(mysqlserver STATIC ${EMBEDDED_LIBS} +- OUTPUT_NAME ${MYSQLSERVER_OUTPUT_NAME} COMPONENT Development) ++ OUTPUT_NAME ${MYSQLSERVER_OUTPUT_NAME} COMPONENT Development OUTPUT_DIR ${INSTALL_ELIBDIR}) + + # Visual Studio users need debug static library + IF(MSVC) +@@ -142,7 +142,7 @@ + ENDIF() + + IF(UNIX) +- INSTALL_DEBUG_TARGET(mysqlserver DESTINATION ${INSTALL_LIBDIR} RENAME ++ INSTALL_DEBUG_TARGET(mysqlserver DESTINATION ${INSTALL_ELIBDIR} RENAME + ${CMAKE_STATIC_LIBRARY_PREFIX}mysqld-debug) + ENDIF() + +@@ -161,7 +161,7 @@ + + IF(NOT DISABLE_SHARED) + MERGE_LIBRARIES(libmysqld SHARED mysqlserver EXPORTS ${EMBEDDED_API} +- COMPONENT Server) ++ COMPONENT Server OUTPUT_DIR ${INSTALL_ELIBDIR}) + IF(UNIX) + # Name the shared library, handle versioning (provides same api as client + # library hence the same version) |