diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2013-01-28 02:13:05 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2013-01-28 02:13:05 +0000 |
commit | 3f44a23ff752d6b8822e984cd06689ad2c439213 (patch) | |
tree | 362c338de1ee12cb510e1b7bb5260b02406cd822 /eclass | |
parent | revbump for new patchset w/ bug #374349 fixed. (diff) | |
download | gentoo-2-3f44a23ff752d6b8822e984cd06689ad2c439213.tar.gz gentoo-2-3f44a23ff752d6b8822e984cd06689ad2c439213.tar.bz2 gentoo-2-3f44a23ff752d6b8822e984cd06689ad2c439213.zip |
Sync mysql eclasses from gentoo-mysql tree. Fixes: PBXT nice (#374349), MariaDB desc (#453934), REQUIRED_USED (#441700).
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mysql-autotools.eclass | 4 | ||||
-rw-r--r-- | eclass/mysql-v2.eclass | 34 |
2 files changed, 14 insertions, 24 deletions
diff --git a/eclass/mysql-autotools.eclass b/eclass/mysql-autotools.eclass index d9f2a9034fa1..c342b635bd28 100644 --- a/eclass/mysql-autotools.eclass +++ b/eclass/mysql-autotools.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.13 2013/01/21 00:04:34 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-autotools.eclass,v 1.14 2013/01/28 02:13:05 robbat2 Exp $ # @ECLASS: mysql-autotools.eclass # @MAINTAINER: @@ -421,6 +421,8 @@ mysql-autotools_src_prepare() { i='pbxt' [ -d "${i}" ] && rm -rf "${i}" cp -ral "${WORKDIR}/${PBXT_P}" "${i}" + f="${WORKDIR}/mysql-extras/pbxt/fix-low-priority.patch" + [[ -f $f ]] && epatch "$f" popd >/dev/null fi diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass index 221ed61c02a8..4ce13a82344c 100644 --- a/eclass/mysql-v2.eclass +++ b/eclass/mysql-v2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-v2.eclass,v 1.22 2013/01/20 02:23:10 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql-v2.eclass,v 1.23 2013/01/28 02:13:05 robbat2 Exp $ # @ECLASS: mysql-v2.eclass # @MAINTAINER: @@ -152,7 +152,7 @@ DESCRIPTION="A fast, multi-threaded, multi-user SQL database server." HOMEPAGE="http://www.mysql.com/" if [[ "${PN}" == "mariadb" ]]; then HOMEPAGE="http://mariadb.org/" - DESCRIPTION="MariaDB is a MySQL fork with 3rd-party patches and additional storage engines merged." + DESCRIPTION="An enhanced, drop-in replacement for MySQL" fi LICENSE="GPL-2" SLOT="0" @@ -192,6 +192,8 @@ if mysql_version_is_at_least "5.5"; then IUSE="${IUSE} jemalloc tcmalloc" fi +REQUIRED_USE="${REQUIRED_USE} minimal? ( !cluster !extraengine !embedded ) static? ( !ssl )" + mysql_version_is_at_least "5.5.7" \ && IUSE="${IUSE} systemtap" @@ -228,6 +230,11 @@ done && mysql_version_is_at_least "5.2.5" \ && DEPEND="${DEPEND} sphinx? ( app-misc/sphinx )" +# Bug 441700 MariaDB >=5.3 include custom mytop +[[ "${PN}" == "mariadb" ]] \ +&& mysql_version_is_at_least "5.3" \ +&& DEPEND="${DEPEND} !dev-db/mytop" + mysql_version_is_at_least "5.5.7" \ && DEPEND="${DEPEND} systemtap? ( >=dev-util/systemtap-1.3 )" \ && DEPEND="${DEPEND} kernel_linux? ( dev-libs/libaio )" @@ -306,6 +313,7 @@ if pbxt_available; then IUSE="${IUSE} pbxt" PBXT_NEWSTYLE=1 + REQUIRED_USE="${REQUIRED_USE} pbxt? ( !embedded ) " fi if xtradb_patch_available; then @@ -318,6 +326,7 @@ if xtradb_patch_available; then XTRADB_SRC_URI3="${XTRADB_SRC_B1}/${PN}/xtradb/${XTRADB_SRC_URI_COMMON}" SRC_URI="${SRC_URI} xtradb? ( ${XTRADB_SRC_URI1} ${XTRADB_SRC_URI2} ${XTRADB_SRC_URI3} )" IUSE="${IUSE} xtradb" + REQUIRED_USE="${REQUIRED_USE} xtradb? ( !embedded ) " fi # @@ -367,33 +376,12 @@ mysql-v2_pkg_setup() { fi # Check for USE flag problems in pkg_setup - if use static && use ssl ; then - M="MySQL does not support being built statically with SSL support enabled!" - eerror "${M}" - die "${M}" - fi - if ! mysql_version_is_at_least "5.2" \ && use debug ; then # Also in package.use.mask die "Bug #344885: Upstream has broken USE=debug for 5.1 series >=5.1.51" fi - if ( use cluster || use extraengine || use embedded ) \ - && use minimal ; then - M="USE flags 'cluster', 'extraengine', 'embedded' conflict with 'minimal' USE flag!" - eerror "${M}" - die "${M}" - fi - - if xtradb_patch_available \ - && use xtradb \ - && use embedded ; then - M="USE flags 'xtradb' and 'embedded' conflict and cause build failures" - eerror "${M}" - die "${M}" - fi - # This should come after all of the die statements enewgroup mysql 60 || die "problem adding 'mysql' group" enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user" |