Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: eclass/
Date: Mon, 28 Jan 2013 02:13:26
Message-Id: 1358825618.ba1ebcdfb6593bd6d60ef713e5476254688edf44.robbat2@gentoo
1 commit: ba1ebcdfb6593bd6d60ef713e5476254688edf44
2 Author: Brian Evans <grknight <AT> lavabit <DOT> com>
3 AuthorDate: Tue Jan 22 03:31:35 2013 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 22 03:33:38 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mysql.git;a=commit;h=ba1ebcdf
7
8 Move USE conflicts to REQUIRED_USE and fix bug 441700
9
10 ---
11 eclass/mysql-v2.eclass | 30 +++++++++---------------------
12 1 files changed, 9 insertions(+), 21 deletions(-)
13
14 diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
15 index 221ed61..faa482b 100644
16 --- a/eclass/mysql-v2.eclass
17 +++ b/eclass/mysql-v2.eclass
18 @@ -192,6 +192,8 @@ if mysql_version_is_at_least "5.5"; then
19 IUSE="${IUSE} jemalloc tcmalloc"
20 fi
21
22 +REQUIRED_USE="${REQUIRED_USE} minimal? ( !cluster !extraengine !embedded ) static? ( !ssl )"
23 +
24 mysql_version_is_at_least "5.5.7" \
25 && IUSE="${IUSE} systemtap"
26
27 @@ -228,6 +230,11 @@ done
28 && mysql_version_is_at_least "5.2.5" \
29 && DEPEND="${DEPEND} sphinx? ( app-misc/sphinx )"
30
31 +# Bug 441700 MariaDB >=5.3 include custom mytop
32 +[[ "${PN}" == "mariadb" ]] \
33 +&& mysql_version_is_at_least "5.3" \
34 +&& DEPEND="${DEPEND} !dev-db/mytop"
35 +
36 mysql_version_is_at_least "5.5.7" \
37 && DEPEND="${DEPEND} systemtap? ( >=dev-util/systemtap-1.3 )" \
38 && DEPEND="${DEPEND} kernel_linux? ( dev-libs/libaio )"
39 @@ -306,6 +313,7 @@ if pbxt_available; then
40
41 IUSE="${IUSE} pbxt"
42 PBXT_NEWSTYLE=1
43 + REQUIRED_USE="${REQUIRED_USE} pbxt? ( !embedded ) "
44 fi
45
46 if xtradb_patch_available; then
47 @@ -318,6 +326,7 @@ if xtradb_patch_available; then
48 XTRADB_SRC_URI3="${XTRADB_SRC_B1}/${PN}/xtradb/${XTRADB_SRC_URI_COMMON}"
49 SRC_URI="${SRC_URI} xtradb? ( ${XTRADB_SRC_URI1} ${XTRADB_SRC_URI2} ${XTRADB_SRC_URI3} )"
50 IUSE="${IUSE} xtradb"
51 + REQUIRED_USE="${REQUIRED_USE} xtradb? ( !embedded ) "
52 fi
53
54 #
55 @@ -367,33 +376,12 @@ mysql-v2_pkg_setup() {
56 fi
57
58 # Check for USE flag problems in pkg_setup
59 - if use static && use ssl ; then
60 - M="MySQL does not support being built statically with SSL support enabled!"
61 - eerror "${M}"
62 - die "${M}"
63 - fi
64 -
65 if ! mysql_version_is_at_least "5.2" \
66 && use debug ; then
67 # Also in package.use.mask
68 die "Bug #344885: Upstream has broken USE=debug for 5.1 series >=5.1.51"
69 fi
70
71 - if ( use cluster || use extraengine || use embedded ) \
72 - && use minimal ; then
73 - M="USE flags 'cluster', 'extraengine', 'embedded' conflict with 'minimal' USE flag!"
74 - eerror "${M}"
75 - die "${M}"
76 - fi
77 -
78 - if xtradb_patch_available \
79 - && use xtradb \
80 - && use embedded ; then
81 - M="USE flags 'xtradb' and 'embedded' conflict and cause build failures"
82 - eerror "${M}"
83 - die "${M}"
84 - fi
85 -
86 # This should come after all of the die statements
87 enewgroup mysql 60 || die "problem adding 'mysql' group"
88 enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user"