[mysql-cmake.eclass] Add CMAKE_BUILD_TYPE to mysql-cmake eclass so the binaries aren...
authorJorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
Fri, 30 Sep 2011 02:10:24 +0000 (02:10 +0000)
committerJorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
Fri, 30 Sep 2011 02:10:24 +0000 (02:10 +0000)
[mysql_fx.eclass] Limit the creation of symlinks to the libdir so not to link to plugins.

eclass/mysql-cmake.eclass
eclass/mysql_fx.eclass

index c7e854114e406385896d844905cff720e6ebbe64..faf1e3548dad5885846395f9df4c5446fe10f7a6 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.1 2011/07/13 07:07:15 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-cmake.eclass,v 1.2 2011/09/30 02:10:24 jmbsvicetto Exp $
 
 # @ECLASS: mysql-cmake.eclass
 # @MAINTAINER:
@@ -192,6 +192,8 @@ mysql-cmake_src_configure() {
 
        debug-print-function ${FUNCNAME} "$@"
 
+       CMAKE_BUILD_TYPE="RelWithDebInfo"
+
        mycmakeargs=(
                -DCMAKE_INSTALL_PREFIX=/usr
                -DMYSQL_DATADIR=/var/lib/mysql
index ef2331bab2f868b55285e94efb3451607bfdd3fb..81049f0fdca9914f2251574f38fe07915b3647be 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2007 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.25 2011/07/29 02:51:25 jmbsvicetto Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/mysql_fx.eclass,v 1.26 2011/09/30 02:10:24 jmbsvicetto Exp $
 
 # Author: Francesco Riosa (Retired) <vivo@gentoo.org>
 # Maintainer:
@@ -199,7 +199,7 @@ mysql_lib_symlinks() {
 
        # waste some time in removing and recreating symlinks
        for d in $dirlist ; do
-               for libname in $( find "${d}" -name "*${libsuffix}*" -and -not -type "l" 2>/dev/null ) ; do
+               for libname in $( find "${d}" -mindepth 1 -maxdepth 1 -name "*${libsuffix}*" -and -not -type "l" 2>/dev/null ) ; do
                        # maxdot is a limit versus infinite loop
                        maxdots=0
                        libnameln=${libname##*/}