From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id AA05F13800E for ; Thu, 26 Jul 2012 04:51:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E2079E06FE; Thu, 26 Jul 2012 04:51:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B197BE06FE for ; Thu, 26 Jul 2012 04:51:46 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B41131B441E for ; Thu, 26 Jul 2012 04:51:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5D797E543E for ; Thu, 26 Jul 2012 04:51:44 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1343273774.3f6c535d4b19eb6f1b4a0f3e8cd7d59b6a1bf557.robbat2@gentoo> Subject: [gentoo-commits] proj/mysql:master commit in: eclass/ X-VCS-Repository: proj/mysql X-VCS-Files: eclass/mysql-cmake.eclass eclass/mysql-v2.eclass X-VCS-Directories: eclass/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 3f6c535d4b19eb6f1b4a0f3e8cd7d59b6a1bf557 X-VCS-Branch: master Date: Thu, 26 Jul 2012 04:51:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d75bdd1c-117c-4175-b7aa-b1d532ed6d5a X-Archives-Hash: 720e38e2daee31c9ed5ebcdc719caf9c commit: 3f6c535d4b19eb6f1b4a0f3e8cd7d59b6a1bf557 Author: jbergstroem bergstroem nu> AuthorDate: Thu Jul 26 03:36:14 2012 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Thu Jul 26 03:36:14 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=3f6c535d Introduce IUSE=tcmalloc for mysql/mariadb builds Signed-off-by: jbergstroem bergstroem.nu> --- eclass/mysql-cmake.eclass | 4 ++++ eclass/mysql-v2.eclass | 6 ++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/eclass/mysql-cmake.eclass b/eclass/mysql-cmake.eclass index 6e79beb..fb57250 100644 --- a/eclass/mysql-cmake.eclass +++ b/eclass/mysql-cmake.eclass @@ -137,6 +137,10 @@ configure_cmake_standard() { mycmakeargs+=( -DWITH_SSL=0 ) fi + if use tcmalloc; then + mycmakeargs+=( -DCMAKE_EXE_LINKER_FLAGS='-ltcmalloc' -DWITH_SAFEMALLOC=OFF ) + fi + # Storage engines mycmakeargs+=( -DWITH_ARCHIVE_STORAGE_ENGINE=1 diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass index 052c7ba..c4decea 100644 --- a/eclass/mysql-v2.eclass +++ b/eclass/mysql-v2.eclass @@ -186,6 +186,9 @@ IUSE="${IUSE} +community profiling" && mysql_version_is_at_least "5.2.5" \ && IUSE="${IUSE} sphinx" +mysql_version_is_at_least "5.5" \ +&& IUSE="${IUSE} tcmalloc" + mysql_version_is_at_least "5.5.7" \ && IUSE="${IUSE} systemtap" @@ -243,6 +246,9 @@ mysql_version_is_at_least "5.5.8" \ mysql_version_is_at_least "5.5.7" \ && DEPEND="${DEPEND} systemtap? ( >=dev-util/systemtap-1.3 )" +mysql_version_is_at_least "5.5" \ +&& DEPEND="${DEPEND} tcmalloc? ( dev-util/google-perftools )" + # dev-perl/DBD-mysql is needed by some scripts installed by MySQL PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )"