Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mysql:master commit in: eclass/
Date: Mon, 17 Jul 2017 19:24:31
Message-Id: 1500319431.80ff75dfa87fdd93388b18c56b92584f3d29b5cf.grknight@gentoo
1 commit: 80ff75dfa87fdd93388b18c56b92584f3d29b5cf
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 17 19:05:09 2017 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 17 19:23:51 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/mysql.git/commit/?id=80ff75df
7
8 Update eclasses for GLEP73 and other bugs
9
10 eclass/mysql-multilib-r1.eclass | 1 +
11 eclass/mysql-multilib.eclass | 19 ++++++-------------
12 eclass/mysql-v2.eclass | 16 +++++-----------
13 3 files changed, 12 insertions(+), 24 deletions(-)
14
15 diff --git a/eclass/mysql-multilib-r1.eclass b/eclass/mysql-multilib-r1.eclass
16 index 44eb631..930411d 100644
17 --- a/eclass/mysql-multilib-r1.eclass
18 +++ b/eclass/mysql-multilib-r1.eclass
19 @@ -450,6 +450,7 @@ multilib_src_configure() {
20
21 if multilib_is_native_abi && use server ; then
22
23 + # systemd is only linked to for server notification
24 if in_iuse systemd ; then
25 mycmakeargs+=( -DWITH_SYSTEMD=$(usex systemd) )
26 fi
27
28 diff --git a/eclass/mysql-multilib.eclass b/eclass/mysql-multilib.eclass
29 index c3f4299..14e1913 100644
30 --- a/eclass/mysql-multilib.eclass
31 +++ b/eclass/mysql-multilib.eclass
32 @@ -1,6 +1,5 @@
33 -# Copyright 1999-2015 Gentoo Foundation
34 +# Copyright 1999-2017 Gentoo Foundation
35 # Distributed under the terms of the GNU General Public License v2
36 -# $Id$
37
38 # @ECLASS: mysql-multilib.eclass
39 # @MAINTAINER:
40 @@ -228,9 +227,9 @@ if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then
41 # 5.5.33 and 10.0.5 add TokuDB. Authors strongly recommend jemalloc or perfomance suffers
42 mysql_version_is_at_least "10.0.5" && IUSE="${IUSE} odbc xml"
43 if [[ ${HAS_TOOLS_PATCH} ]] ; then
44 - REQUIRED_USE="${REQUIRED_USE} !server? ( !oqgraph !sphinx ) tokudb? ( jemalloc )"
45 + REQUIRED_USE="${REQUIRED_USE} !server? ( !oqgraph !sphinx ) tokudb? ( jemalloc !tcmalloc )"
46 else
47 - REQUIRED_USE="${REQUIRED_USE} minimal? ( !oqgraph !sphinx ) tokudb? ( jemalloc )"
48 + REQUIRED_USE="${REQUIRED_USE} minimal? ( !oqgraph !sphinx ) tokudb? ( jemalloc !tcmalloc )"
49 fi
50 # MariaDB 10.1 introduces InnoDB/XtraDB compression with external libraries
51 # Choices are bzip2, lz4, lzma, lzo. bzip2 and lzma enabled by default as they are system libraries
52 @@ -266,7 +265,7 @@ fi
53
54 REQUIRED_USE="
55 ${REQUIRED_USE} tcmalloc? ( !jemalloc ) jemalloc? ( !tcmalloc )
56 - static? ( yassl )"
57 + static? ( yassl !openssl !libressl )"
58
59 #
60 # DEPENDENCIES:
61 @@ -943,14 +942,8 @@ mysql-multilib_pkg_config() {
62 mysql_init_vars
63
64 [[ -z "${MY_DATADIR}" ]] && die "Sorry, unable to find MY_DATADIR"
65 - if [[ ${HAS_TOOLS_PATCH} ]] ; then
66 - if ! built_with_use ${CATEGORY}/${PN} server ; then
67 - die "Minimal builds do NOT include the MySQL server"
68 - fi
69 - else
70 - if built_with_use ${CATEGORY}/${PN} minimal ; then
71 - die "Minimal builds do NOT include the MySQL server"
72 - fi
73 + if [[ ! -x "${EROOT}/usr/sbin/mysqld" ]] ; then
74 + die "Minimal builds do NOT include the MySQL server"
75 fi
76
77 if [[ ( -n "${MY_DATADIR}" ) && ( "${MY_DATADIR}" != "${old_MY_DATADIR}" ) ]]; then
78
79 diff --git a/eclass/mysql-v2.eclass b/eclass/mysql-v2.eclass
80 index dda63c3..3734e19 100644
81 --- a/eclass/mysql-v2.eclass
82 +++ b/eclass/mysql-v2.eclass
83 @@ -1,6 +1,5 @@
84 # Copyright 1999-2015 Gentoo Foundation
85 # Distributed under the terms of the GNU General Public License v2
86 -# $Id$
87
88 # @ECLASS: mysql-v2.eclass
89 # @MAINTAINER:
90 @@ -183,7 +182,6 @@ SRC_URI="${SERVER_URI}"
91 if [[ ${MY_EXTRAS_VER} != "live" && ${MY_EXTRAS_VER} != "none" ]]; then
92 SRC_URI="${SRC_URI}
93 mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
94 - http://g3nt8.org/patches/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
95 https://dev.gentoo.org/~robbat2/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
96 https://dev.gentoo.org/~jmbsvicetto/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
97 https://dev.gentoo.org/~grknight/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2"
98 @@ -242,9 +240,9 @@ if [[ ${PN} == "mariadb" || ${PN} == "mariadb-galera" ]]; then
99 mysql_version_is_at_least "5.2.10" && IUSE="${IUSE} pam"
100 # 5.5.33 and 10.0.5 add TokuDB. Authors strongly recommend jemalloc or perfomance suffers
101 mysql_version_is_at_least "10.0.5" && IUSE="${IUSE} tokudb odbc xml" && \
102 - REQUIRED_USE="${REQUIRED_USE} odbc? ( extraengine ) xml? ( extraengine ) tokudb? ( jemalloc )"
103 + REQUIRED_USE="${REQUIRED_USE} odbc? ( extraengine ) xml? ( extraengine ) tokudb? ( jemalloc !tcmalloc )"
104 mysql_check_version_range "5.5.33 to 5.5.99" && IUSE="${IUSE} tokudb" && \
105 - REQUIRED_USE="${REQUIRED_USE} tokudb? ( jemalloc )"
106 + REQUIRED_USE="${REQUIRED_USE} tokudb? ( jemalloc !tcmalloc )"
107 fi
108
109 if mysql_version_is_at_least "5.5"; then
110 @@ -359,11 +357,8 @@ if [[ ${PN} == "mariadb-galera" ]] ; then
111 # The wsrep API version must match between the ebuild and sys-cluster/galera.
112 # This will be indicated by WSREP_REVISION in the ebuild and the first number
113 # in the version of sys-cluster/galera
114 - #
115 - # lsof is required as of 5.5.38 and 10.0.11 for the rsync sst
116 RDEPEND="${RDEPEND}
117 =sys-cluster/galera-${WSREP_REVISION}*
118 - sys-process/lsof
119 "
120 fi
121
122 @@ -514,8 +509,7 @@ mysql-v2_pkg_setup() {
123 mysql_version_is_at_least "7.2.9" && java-pkg-opt-2_pkg_setup
124 fi
125
126 - if use_if_iuse tokudb && [[ "${MERGE_TYPE}" != "binary" && $(gcc-major-version) -lt 4 || \
127 - $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ; then
128 + if use_if_iuse tokudb && [[ $(gcc-major-version) -lt 4 || $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ; then
129 eerror "${PN} with tokudb needs to be built with gcc-4.7 or later."
130 eerror "Please use gcc-config to switch to gcc-4.7 or later version."
131 die
132 @@ -703,7 +697,7 @@ mysql-v2_pkg_config() {
133
134 [[ -z "${MY_DATADIR}" ]] && die "Sorry, unable to find MY_DATADIR"
135
136 - if built_with_use ${CATEGORY}/${PN} minimal ; then
137 + if [[ ! -x "${EROOT}/usr/sbin/mysqld" ]] ; then
138 die "Minimal builds do NOT include the MySQL server"
139 fi
140
141 @@ -897,7 +891,7 @@ mysql-v2_pkg_config() {
142 -e "${sql}"
143 eend $?
144
145 - ebegin "Loading \"zoneinfo\", this step may require a few seconds ..."
146 + ebegin "Loading \"zoneinfo\", this step may require a few seconds"
147 "${EROOT}/usr/bin/mysql" \
148 --socket=${socket} \
149 -hlocalhost \