diff options
author | Brian Evans <grknight@tuffmail.com> | 2014-04-25 20:57:35 -0400 |
---|---|---|
committer | Brian Evans <grknight@tuffmail.com> | 2014-04-25 20:57:35 -0400 |
commit | d2a5ec77e428e6a0413c7fcbe6e6bc7e2e6f6667 (patch) | |
tree | 12f21703207b2027bcd4c28a2946e6ae13896d98 | |
parent | Respin minimal patch for mysql 5.6 (diff) | |
download | mysql-extras-d2a5ec77e428e6a0413c7fcbe6e6bc7e2e6f6667.tar.gz mysql-extras-d2a5ec77e428e6a0413c7fcbe6e6bc7e2e6f6667.tar.bz2 mysql-extras-d2a5ec77e428e6a0413c7fcbe6e6bc7e2e6f6667.zip |
Fix embedded library location in ELIB patches for 5.5
Signed-off-by: Brian Evans <grknight@tuffmail.com>
-rw-r--r-- | 20006_all_cmake_elib-mariadb-5.5.33.patch | 49 | ||||
-rw-r--r-- | 20006_all_cmake_elib-mysql-5.5.37.patch | 49 |
2 files changed, 98 insertions, 0 deletions
diff --git a/20006_all_cmake_elib-mariadb-5.5.33.patch b/20006_all_cmake_elib-mariadb-5.5.33.patch index 33e902b..ae6447f 100644 --- a/20006_all_cmake_elib-mariadb-5.5.33.patch +++ b/20006_all_cmake_elib-mariadb-5.5.33.patch @@ -151,3 +151,52 @@ diff -ur mysql-old/libmysqld/CMakeLists.txt mysql/libmysqld/CMakeLists.txt IF(UNIX) # Name the shared library, handle versioning (provides same api as client # library hence the same version) +diff -aurN a/mysql/scripts/CMakeLists.txt b/mysql/scripts/CMakeLists.txt +--- a/mysql/scripts/CMakeLists.txt 2014-04-15 07:02:28.000000000 -0400 ++++ b/mysql/scripts/CMakeLists.txt 2014-04-25 19:24:14.000000000 -0400 +@@ -198,6 +198,7 @@ + SET(scriptdir ${prefix}/${INSTALL_BINDIR}) + SET(libexecdir ${prefix}/${INSTALL_SBINDIR}) + SET(pkgdatadir ${prefix}/${INSTALL_MYSQLSHAREDIR}) ++SET(elibdir ${prefix}/${INSTALL_ELIBDIR}) + IF(INSTALL_LAYOUT MATCHES "STANDALONE") + SET(localstatedir ${prefix}/data) + ELSE() +diff -aurN a/mysql/scripts/mysql_config.pl.in b/mysql/scripts/mysql_config.pl.in +--- a/mysql/scripts/mysql_config.pl.in 2014-04-15 07:02:39.000000000 -0400 ++++ b/mysql/scripts/mysql_config.pl.in 2014-04-25 19:28:48.000000000 -0400 +@@ -190,9 +190,10 @@ + else + { + my $linkpath = "-L$pkglibdir @RPATH_OPTION@"; ++ my $elinkpath = "-L@elibdir@ @RPATH_OPTION@"; + @lib_opts = ($linkpath,"-lmysqlclient"); + @lib_r_opts = ($linkpath,"-lmysqlclient_r"); +- @lib_e_opts = ($linkpath,"-lmysqld"); ++ @lib_e_opts = ($elinkpath,"-lmysqld"); + } + + my $flags; +diff -aurN a/mysql/scripts/mysql_config.sh b/mysql/scripts/mysql_config.sh +--- a/mysql/scripts/mysql_config.sh 2014-04-25 20:05:16.000000000 -0400 ++++ b/mysql/scripts/mysql_config.sh 2014-04-25 20:08:01.000000000 -0400 +@@ -91,6 +91,10 @@ + plugindir_rel=`echo $plugindir | sed -e "s;^$basedir/;;"` + fix_path plugindir $plugindir_rel lib/mysql/plugin lib/plugin + ++elibdir='@elibdir@' ++elibdir_rel=`echo $elibdir | sed -e "s;^$basedir/;;"` ++fix_path elibdir $elibdir_rel lib64/mysql lib64 lib/mysql lib ++ + pkgincludedir='@pkgincludedir@' + fix_path pkgincludedir include/mysql + +@@ -109,7 +113,7 @@ + libs=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@" + libs="$libs @openssl_libs@ @STATIC_NSS_FLAGS@ " + libs_r=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqlclient_r @ZLIB_DEPS@ @CLIENT_LIBS@ @openssl_libs@ " +-embedded_libs=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqld @LIBDL@ @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @openssl_libs@ " ++embedded_libs=" $ldflags -L$elibdir @RPATH_OPTION@ -lmysqld @LIBDL@ @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @openssl_libs@ " + + if [ -r "$pkglibdir/libmygcc.a" ]; then + # When linking against the static library with a different version of GCC diff --git a/20006_all_cmake_elib-mysql-5.5.37.patch b/20006_all_cmake_elib-mysql-5.5.37.patch index a56805c..d712067 100644 --- a/20006_all_cmake_elib-mysql-5.5.37.patch +++ b/20006_all_cmake_elib-mysql-5.5.37.patch @@ -170,3 +170,52 @@ diff -ur mysql-old/libmysqld/CMakeLists.txt mysql/libmysqld/CMakeLists.txt + INSTALL(TARGETS mysqlservices DESTINATION ${INSTALL_LIBDIR} COMPONENT Development) +ENDIF() +diff -aurN a/mysql/scripts/CMakeLists.txt b/mysql/scripts/CMakeLists.txt +--- a/mysql/scripts/CMakeLists.txt 2014-04-15 07:02:28.000000000 -0400 ++++ b/mysql/scripts/CMakeLists.txt 2014-04-25 19:24:14.000000000 -0400 +@@ -198,6 +198,7 @@ + SET(scriptdir ${prefix}/${INSTALL_BINDIR}) + SET(libexecdir ${prefix}/${INSTALL_SBINDIR}) + SET(pkgdatadir ${prefix}/${INSTALL_MYSQLSHAREDIR}) ++SET(elibdir ${prefix}/${INSTALL_ELIBDIR}) + IF(INSTALL_LAYOUT MATCHES "STANDALONE") + SET(localstatedir ${prefix}/data) + ELSE() +diff -aurN a/mysql/scripts/mysql_config.pl.in b/mysql/scripts/mysql_config.pl.in +--- a/mysql/scripts/mysql_config.pl.in 2014-04-15 07:02:39.000000000 -0400 ++++ b/mysql/scripts/mysql_config.pl.in 2014-04-25 19:28:48.000000000 -0400 +@@ -190,9 +190,10 @@ + else + { + my $linkpath = "-L$pkglibdir @RPATH_OPTION@"; ++ my $elinkpath = "-L@elibdir@ @RPATH_OPTION@"; + @lib_opts = ($linkpath,"-lmysqlclient"); + @lib_r_opts = ($linkpath,"-lmysqlclient_r"); +- @lib_e_opts = ($linkpath,"-lmysqld"); ++ @lib_e_opts = ($elinkpath,"-lmysqld"); + } + + my $flags; +diff -aurN a/mysql/scripts/mysql_config.sh b/mysql/scripts/mysql_config.sh +--- a/mysql/scripts/mysql_config.sh 2014-04-25 20:05:16.000000000 -0400 ++++ b/mysql/scripts/mysql_config.sh 2014-04-25 20:08:01.000000000 -0400 +@@ -91,6 +91,10 @@ + plugindir_rel=`echo $plugindir | sed -e "s;^$basedir/;;"` + fix_path plugindir $plugindir_rel lib/mysql/plugin lib/plugin + ++elibdir='@elibdir@' ++elibdir_rel=`echo $elibdir | sed -e "s;^$basedir/;;"` ++fix_path elibdir $elibdir_rel lib64/mysql lib64 lib/mysql lib ++ + pkgincludedir='@pkgincludedir@' + fix_path pkgincludedir include/mysql + +@@ -109,7 +113,7 @@ + libs=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqlclient @ZLIB_DEPS@ @NON_THREADED_LIBS@" + libs="$libs @openssl_libs@ @STATIC_NSS_FLAGS@ " + libs_r=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqlclient_r @ZLIB_DEPS@ @CLIENT_LIBS@ @openssl_libs@ " +-embedded_libs=" $ldflags -L$pkglibdir @RPATH_OPTION@ -lmysqld @LIBDL@ @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @openssl_libs@ " ++embedded_libs=" $ldflags -L$elibdir @RPATH_OPTION@ -lmysqld @LIBDL@ @ZLIB_DEPS@ @LIBS@ @WRAPLIBS@ @openssl_libs@ " + + if [ -r "$pkglibdir/libmygcc.a" ]; then + # When linking against the static library with a different version of GCC |