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 F190A13877A for ; Wed, 18 Jun 2014 19:46:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A7ACE0A00; Wed, 18 Jun 2014 19:46:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0BFF5E0A00 for ; Wed, 18 Jun 2014 19:46:48 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1788934002E for ; Wed, 18 Jun 2014 19:46:48 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id BEABA187DE for ; Wed, 18 Jun 2014 19:46:46 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1403120767.7f42ea9df4201819e43855eea10fb9ebb15c8649.grknight.pub@gentoo> Subject: [gentoo-commits] proj/mysql:master commit in: eclass/ X-VCS-Repository: proj/mysql X-VCS-Files: eclass/mysql-cmake.eclass eclass/mysql-multilib.eclass eclass/mysql-v2.eclass X-VCS-Directories: eclass/ X-VCS-Committer: grknight.pub X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 7f42ea9df4201819e43855eea10fb9ebb15c8649 X-VCS-Branch: master Date: Wed, 18 Jun 2014 19:46:46 +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: 69e86d64-f109-4a01-bfa6-571e45580623 X-Archives-Hash: fd66a27bac34b0ac00131872c250c2dd commit: 7f42ea9df4201819e43855eea10fb9ebb15c8649 Author: Brian Evans gentoo org> AuthorDate: Wed Jun 18 19:46:07 2014 +0000 Commit: Brian Evans lavabit com> CommitDate: Wed Jun 18 19:46:07 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=7f42ea9d [eclass] Add IUSE='bindist' for bug 513710. Needs more testing --- eclass/mysql-cmake.eclass | 11 ++++++----- eclass/mysql-multilib.eclass | 17 +++++++++++------ eclass/mysql-v2.eclass | 11 ++++++++++- 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/eclass/mysql-cmake.eclass b/eclass/mysql-cmake.eclass index a80680a..908e66e 100644 --- a/eclass/mysql-cmake.eclass +++ b/eclass/mysql-cmake.eclass @@ -301,7 +301,6 @@ mysql-cmake_src_configure() { -DINSTALL_SUPPORTFILESDIR=${EPREFIX}/usr/share/mysql -DWITH_COMMENT="Gentoo Linux ${PF}" $(cmake-utils_use_with test UNIT_TESTS) - -DWITH_READLINE=0 -DWITH_LIBEDIT=0 -DWITH_ZLIB=system -DWITHOUT_LIBWRAP=1 @@ -312,14 +311,16 @@ mysql-cmake_src_configure() { if [[ ${PN} == "mysql" || ${PN} == "percona-server" ]] && mysql_version_is_at_least "5.6.12" ; then mycmakeargs+=( -DWITH_EDITLINE=system ) + else + mycmakeargs+=( + -DWITH_READLINE=$(usex bindist 1 0) + -DNOT_FOR_DISTRIBUTION=$(usex bindist 0 1) + $(usex bindist -DHAVE_BFD_H=0 '') + ) fi - # Bug 412851 - # MariaDB requires NOT_FOR_DISTRIBUTION set to compile with GPLv3 readline linked - # Adds a warning about redistribution to configure if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]] ; then mycmakeargs+=( - -DNOT_FOR_DISTRIBUTION=1 -DWITH_JEMALLOC=$(usex jemalloc system) ) mysql_version_is_at_least "10.0.9" && mycmakeargs+=( -DWITH_PCRE=system ) diff --git a/eclass/mysql-multilib.eclass b/eclass/mysql-multilib.eclass index feb9ba5..fa2ab52 100644 --- a/eclass/mysql-multilib.eclass +++ b/eclass/mysql-multilib.eclass @@ -178,6 +178,10 @@ SLOT="0" IUSE="+community cluster debug embedded extraengine jemalloc latin1 max-idx-128 minimal +perl profiling selinux ssl systemtap static static-libs tcmalloc test" +if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]] || mysql_check_version_range "5.5.38 to 5.6.11.99" ; then + IUSE="bindist ${IUSE}" +fi + if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then IUSE="${IUSE} oqgraph pam sphinx tokudb" # 5.5.33 and 10.0.5 add TokuDB. Authors strongly recommend jemalloc or perfomance suffers @@ -220,7 +224,7 @@ DEPEND=" if [[ ${PN} == "mysql" || ${PN} == "percona-server" ]] && mysql_version_is_at_least "5.6.12" ; then DEPEND="${DEPEND} dev-libs/libedit:0=[${MULTILIB_USEDEP}]" else - DEPEND="${DEPEND} >=sys-libs/readline-4.1:0=[${MULTILIB_USEDEP}]" + DEPEND="${DEPEND} !bindist? ( >=sys-libs/readline-4.1:0=[${MULTILIB_USEDEP}] )" fi if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]] ; then @@ -417,7 +421,6 @@ multilib_src_configure() { -DINSTALL_SUPPORTFILESDIR=${EPREFIX}/usr/share/mysql -DWITH_COMMENT="Gentoo Linux ${PF}" $(cmake-utils_use_with test UNIT_TESTS) - -DWITH_READLINE=0 -DWITH_LIBEDIT=0 -DWITH_ZLIB=system -DWITHOUT_LIBWRAP=1 @@ -428,15 +431,17 @@ multilib_src_configure() { if [[ ${PN} == "mysql" || ${PN} == "percona-server" ]] && mysql_version_is_at_least "5.6.12" ; then mycmakeargs+=( -DWITH_EDITLINE=system ) + else + mycmakeargs+=( + -DWITH_READLINE=$(usex bindist 1 0) + -DNOT_FOR_DISTRIBUTION=$(usex bindist 0 1) + $(usex bindist -DHAVE_BFD_H=0) + ) fi - # Bug 412851 - # MariaDB requires this flag to compile with GPLv3 readline linked - # Adds a warning about redistribution to configure if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]] ; then mycmakeargs+=( - -DNOT_FOR_DISTRIBUTION=1 -DWITH_JEMALLOC=$(usex jemalloc system) ) diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass index f0c919a..9c4e8fa 100644 --- a/eclass/mysql-v2.eclass +++ b/eclass/mysql-v2.eclass @@ -209,6 +209,11 @@ esac # Common IUSE IUSE="${IUSE} latin1 extraengine cluster max-idx-128 +community profiling" +if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]] && \ + mysql_version_is_at_least "5.5" || mysql_check_version_range "5.5.38 to 5.6.11.99" ; then + IUSE="bindist ${IUSE}" +fi + if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then mysql_check_version_range "5.1.38 to 5.3.99" && IUSE="${IUSE} libevent" mysql_version_is_at_least "5.2" && IUSE="${IUSE} oqgraph" && \ @@ -258,7 +263,11 @@ DEPEND=" if [[ ${PN} == "mysql" || ${PN} == "percona-server" ]] && mysql_version_is_at_least "5.6.12" ; then DEPEND="${DEPEND} dev-libs/libedit" else - DEPEND="${DEPEND} >=sys-libs/readline-4.1" + if mysql_version_is_at_least "5.5" ; then + DEPEND="${DEPEND} !bindist? ( >=sys-libs/readline-4.1 )" + else + DEPEND="${DEPEND} >=sys-libs/readline-4.1" + fi fi if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]] ; then