Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mysql/
Date: Mon, 17 Sep 2018 20:38:32
Message-Id: 1537216697.009ae231357cd15733d4512bdf3dee1b628816a4.grknight@gentoo
1 commit: 009ae231357cd15733d4512bdf3dee1b628816a4
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 17 20:35:43 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 17 20:38:17 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=009ae231
7
8 dev-db/mysql: Drop old
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 dev-db/mysql/Manifest | 5 -
13 dev-db/mysql/metadata.xml | 6 --
14 dev-db/mysql/mysql-5.5.60.ebuild | 133 ---------------------------
15 dev-db/mysql/mysql-5.6.38.ebuild | 192 --------------------------------------
16 dev-db/mysql/mysql-5.6.39.ebuild | 193 ---------------------------------------
17 dev-db/mysql/mysql-5.6.40.ebuild | 193 ---------------------------------------
18 6 files changed, 722 deletions(-)
19
20 diff --git a/dev-db/mysql/Manifest b/dev-db/mysql/Manifest
21 index 07571be616a..f1639c3db62 100644
22 --- a/dev-db/mysql/Manifest
23 +++ b/dev-db/mysql/Manifest
24 @@ -1,10 +1,5 @@
25 -DIST mysql-5.5.60.tar.gz 21025041 BLAKE2B c4010c64b30ca72aff011053189981cc0676806ed9f18a0ac584e07f71e1f7fe062a3ca78db6f109a2b96d324d778b239880f96852fdc058892b09d0d09e740b SHA512 734395f3ce2c12e7703fe48d5bb2ce85ff8d7f04ae51cbe2d04a46b72b9689f804e5b498ae0b4722b0c098e2eed43d4f93b622964059525e6d9d14a47d55f775
26 DIST mysql-5.5.61.tar.gz 21027098 BLAKE2B b7589f632a211349fc34cec94e333b878e07113969bf5cf6f78cd37435d95b15c03eaf188ed09768033b182de125c9f018a5fe902094f17ab891f94cab9de6dd SHA512 978384915c145ec8f0d85deb764154d8d4a9764f2d342928bda6ad43a00bc110aa888895416d2ba5684a4432e433037990dd3fe8c5caf024faa487bc2e153f49
27 -DIST mysql-5.6.38.tar.gz 32197625 BLAKE2B 5edd6d05e562568d2418edd81c6822b397103013e92beacc00964401c6df67f8a934f05b57c6679aa25a49ef6db2e4a06056f3f1850e0f2afe4de895c7b8f686 SHA512 8144aec822f053fbdfa11ae542e96d3e7da93552b60ed131f041ec4832f48c95025b322340a2e90a82c18b6ee6bfd708f209735f82e37532198245aad697b93d
28 -DIST mysql-5.6.39.tar.gz 32110958 BLAKE2B 2f279c6745bc995c860bb4f2868409136e112cc8b9fb0c04fa7673bb6d5612f3ef6d3462666de736d6e7fe5439275ab49908a6609175d1cb8c096d5db5ecb59c SHA512 e1e60854c82d71f9600bf611df964f441815d9d0f896134110a749b29fe340fa216d7c89f4da63d492929565f19a2502463549b8c8c038c658e0be8409a3ffb5
29 DIST mysql-5.6.40.tar.gz 32083035 BLAKE2B efcc078341bae239df28ac0504111aa34926885ae47edb5011352b56552a5a3abd1f824f8cbdc23d8d667592b8f5510946ef18c3efa61865dbbc7f4bb8a2d4a0 SHA512 c8e458b4cd34cae87f1b088ed2188bd00de8cdc42709d5964e82fa2e4aaecfc12a75ae006c54ffa0d3d286fbdef9704d0cbb83436437d5705fb8921d960e758c
30 DIST mysql-5.6.41.tar.gz 32111985 BLAKE2B 5ccad59333525b354db4fa892857e237cddf8fe1a4d289c6e410c31d6142a71d3ce4dab8d954fa9932ec1f83b50e8eccd5845e082deaaa56f1c0c5e21b2ce6c0 SHA512 a62d7a68c6bb49de33f8c9e634bce53cb453a87238e92967115e8e928fa9ed291727b8bd5a5271a0b5b634d957eb310c745edfb14b6be1deb9099bb757aa2cff
31 DIST mysql-boost-5.7.23.tar.gz 49025014 BLAKE2B 669f10779bc2cda866d6bd876b4efe55fb4b0c796f596f66513a3ca85f322e2a03e9879eecd72a69729a0cb71d408c46cdd9086ae456712b4adff6ae7c584c97 SHA512 e4317f89d108a68652cd95e41ffd670c37b6663aabd6af3985d18052fb7e8d8879b5822399caf9091cecc0a949ec588c121c87cfd60d69941f68d0ecbedd0953
32 -DIST mysql-extras-20171121-1518Z.tar.bz2 313539 BLAKE2B c397fdf7ffb3fcbcecda20933e18234062a9500dcf4031e9b17131e2a1f23dca7535ed33ff541fc075eb9995c67a9a8fd7261d7524dd42d8d333543c368b4c15 SHA512 dd0d4a00c0ed710e786d157a73f02c6f555ab7a68e57014d958627096a4245a0b45d22ec860dc5389002d106554e80166661c0b6ddcadff1f737e3fa195badda
33 -DIST mysql-extras-20180214-0024Z.tar.bz2 316686 BLAKE2B a893e2975a8062ab236f642d158a7833656942adb31d467b784a9224e7dd87872c3784bb29e93b620a58cd9a835d65248f1a817cdbafa574b5949e2b4262108a SHA512 ad0e81695a70954ad107fe104f9140be24e53d499aed6c123e68e1a062ec5cc90c70f6272fdc014e567794e331301e656ba01b22c2c7a1afaf11e14a9190fb0b
34 DIST mysql-extras-20180804-2323Z.tar.bz2 322215 BLAKE2B cca9e502e375bf43473335868517f6c450fc7bcf03e55de5a294c8bdcfcac2bb783dec09bbb3b6c30a561ba7e3a943543c017e2d42b61d466e699acdef4c0231 SHA512 efd9d416f394cc61b977ab76f05ab3acc5803ff8bdee8e1dbc65cc5b3f07e4f9742140d9586c028908b10fcc44f21c98ebffdebcc5c3578acbe05b07526bcb3d
35
36 diff --git a/dev-db/mysql/metadata.xml b/dev-db/mysql/metadata.xml
37 index 82e3cca3197..8ae0465d923 100644
38 --- a/dev-db/mysql/metadata.xml
39 +++ b/dev-db/mysql/metadata.xml
40 @@ -12,16 +12,10 @@ dev-db/mariadb
41 -->
42 <use>
43 <flag name="client-libs">Build the client libraries from the server package instead of the C Connector packages (not recommended)</flag>
44 - <flag name="cluster">Add support for NDB clustering (deprecated)</flag>
45 - <flag name="community">Enables the community features from upstream.</flag>
46 - <flag name="embedded">Build embedded server (libmysqld)</flag>
47 <flag name="extraengine">Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag>
48 <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations.</flag>
49 <flag name="latin1">Use LATIN1 encoding instead of UTF8</flag>
50 <flag name="libressl">Enable SSL connections and crypto functions using <pkg>dev-libs/libressl</pkg></flag>
51 - <flag name="openssl">Enable SSL connections and crypto functions using <pkg>dev-libs/openssl</pkg></flag>
52 - <flag name="max-idx-128">Raise the max index per table limit from 64 to 128</flag>
53 - <flag name="minimal">Install client programs only, no server</flag>
54 <flag name="numa">Enable NUMA support using <pkg>sys-process/numactl</pkg> (NUMA kernel support is also required)</flag>
55 <flag name="profiling">Add support for statement profiling (requires USE=community).</flag>
56 <flag name="server">Build the server program</flag>
57
58 diff --git a/dev-db/mysql/mysql-5.5.60.ebuild b/dev-db/mysql/mysql-5.5.60.ebuild
59 deleted file mode 100644
60 index 881a4ffb831..00000000000
61 --- a/dev-db/mysql/mysql-5.5.60.ebuild
62 +++ /dev/null
63 @@ -1,133 +0,0 @@
64 -# Copyright 1999-2018 Gentoo Foundation
65 -# Distributed under the terms of the GNU General Public License v2
66 -
67 -EAPI="5"
68 -
69 -MY_EXTRAS_VER="20180214-0024Z"
70 -MY_PV="${PV//_alpha_pre/-m}"
71 -MY_PV="${MY_PV//_/-}"
72 -
73 -# Build type
74 -BUILD="cmake"
75 -#fails to build with ninja
76 -CMAKE_MAKEFILE_GENERATOR=emake
77 -
78 -inherit toolchain-funcs mysql-v2
79 -# only to make repoman happy. it is really set in the eclass
80 -IUSE="$IUSE"
81 -
82 -# Define the mysql-extras source
83 -EGIT_REPO_URI="git://anongit.gentoo.org/proj/mysql-extras.git"
84 -
85 -# REMEMBER: also update eclass/mysql*.eclass before committing!
86 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
87 -
88 -# When MY_EXTRAS is bumped, the index should be revised to exclude these.
89 -EPATCH_EXCLUDE=''
90 -
91 -DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )"
92 -RDEPEND="${RDEPEND}"
93 -
94 -SLOT="0/18"
95 -
96 -# Please do not add a naive src_unpack to this ebuild
97 -# If you want to add a single patch, copy the ebuild to an overlay
98 -# and create your own mysql-extras tarball, looking at 000_index.txt
99 -
100 -# Official test instructions:
101 -# USE='extraengine perl ssl static-libs community' \
102 -# FEATURES='test userpriv -usersandbox' \
103 -# ebuild mysql-X.X.XX.ebuild \
104 -# digest clean package
105 -src_test() {
106 -
107 - local TESTDIR="${BUILD_DIR}/mysql-test"
108 - local retstatus_unit
109 - local retstatus_tests
110 -
111 - # Bug #213475 - MySQL _will_ object strenously if your machine is named
112 - # localhost. Also causes weird failures.
113 - [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
114 -
115 - if ! use "minimal" ; then
116 -
117 - if [[ $UID -eq 0 ]]; then
118 - die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
119 - fi
120 - has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
121 -
122 - einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
123 - addpredict /this-dir-does-not-exist/t9.MYI
124 -
125 - # Run CTest (test-units)
126 - cmake-utils_src_test
127 - retstatus_unit=$?
128 - [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
129 -
130 - # Ensure that parallel runs don't die
131 - export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
132 - # Enable parallel testing, auto will try to detect number of cores
133 - # You may set this by hand.
134 - # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
135 - export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
136 -
137 - # create directories because mysqladmin might right out of order
138 - mkdir -p "${T}"/var-tests{,/log}
139 -
140 - # create symlink for the tests to find mysql_tzinfo_to_sql
141 - ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
142 -
143 - # These are failing in MySQL 5.5 for now and are believed to be
144 - # false positives:
145 - #
146 - # main.information_schema, binlog.binlog_statement_insert_delayed,
147 - # main.mysqld--help-notwin
148 - # fails due to USE=-latin1 / utf8 default
149 - #
150 - # main.mysql_client_test:
151 - # segfaults at random under Portage only, suspect resource limits.
152 - #
153 - # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
154 - # fails due to bad cleanup of previous tests when run in parallel
155 - # The tool is deprecated anyway
156 - # Bug 532288
157 -
158 - for t in main.mysql_client_test main.openssl_1 \
159 - binlog.binlog_statement_insert_delayed main.information_schema \
160 - main.mysqld--help-notwin main.mysqlhotcopy_archive main.mysqlhotcopy_myisam ; do
161 - mysql-v2_disable_test "$t" "False positives in Gentoo"
162 - done
163 -
164 - for t in main.mysql main.mysql_upgrade ; do
165 - mysql-v2_disable_test "$t" "Test $t broken upstream - error return value not updated"
166 - done
167 -
168 - # Run mysql tests
169 - pushd "${TESTDIR}"
170 -
171 - # run mysql-test tests
172 - perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
173 - --testcase-timeout=30 --reorder
174 - retstatus_tests=$?
175 - [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
176 - has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
177 -
178 - popd
179 -
180 - # Cleanup is important for these testcases.
181 - pkill -9 -f "${S}/ndb" 2>/dev/null
182 - pkill -9 -f "${S}/sql" 2>/dev/null
183 -
184 - failures=""
185 - [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
186 - [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
187 - has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
188 -
189 - [[ -z "$failures" ]] || die "Test failures: $failures"
190 - einfo "Tests successfully completed"
191 -
192 - else
193 -
194 - einfo "Skipping server tests due to minimal build."
195 - fi
196 -}
197
198 diff --git a/dev-db/mysql/mysql-5.6.38.ebuild b/dev-db/mysql/mysql-5.6.38.ebuild
199 deleted file mode 100644
200 index dd37abf2cc6..00000000000
201 --- a/dev-db/mysql/mysql-5.6.38.ebuild
202 +++ /dev/null
203 @@ -1,192 +0,0 @@
204 -# Copyright 1999-2018 Gentoo Foundation
205 -# Distributed under the terms of the GNU General Public License v2
206 -
207 -EAPI="6"
208 -
209 -MY_EXTRAS_VER="20171121-1518Z"
210 -MY_PV="${PV//_alpha_pre/-m}"
211 -MY_PV="${MY_PV//_/-}"
212 -HAS_TOOLS_PATCH="1"
213 -SUBSLOT="18"
214 -#fails to build with ninja
215 -CMAKE_MAKEFILE_GENERATOR=emake
216 -
217 -inherit mysql-multilib-r1
218 -# only to make repoman happy. it is really set in the eclass
219 -IUSE="$IUSE numa"
220 -
221 -# REMEMBER: also update eclass/mysql*.eclass before committing!
222 -KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
223 -
224 -COMMON_DEPEND="numa? ( sys-process/numactl:= )"
225 -
226 -DEPEND="${COMMON_DEPEND}
227 - || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
228 - test? ( dev-perl/JSON )"
229 -RDEPEND="${COMMON_DEPEND}"
230 -
231 -MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
232 -
233 -PATCHES=(
234 - "${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
235 - "${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
236 - "${MY_PATCH_DIR}"/20006_all_cmake_elib-mysql-5.6.35.patch
237 - "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
238 - "${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink-5.6.37.patch
239 - "${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
240 - "${MY_PATCH_DIR}"/20018_all_mysql-5.6.25-without-clientlibs-tools.patch
241 - "${MY_PATCH_DIR}"/20027_all_mysql-5.5-perl5.26-includes.patch
242 - "${MY_PATCH_DIR}"/20028_all_mysql-5.6-gcc7.patch
243 -)
244 -
245 -# Please do not add a naive src_unpack to this ebuild
246 -# If you want to add a single patch, copy the ebuild to an overlay
247 -# and create your own mysql-extras tarball, looking at 000_index.txt
248 -
249 -src_prepare() {
250 - mysql-multilib-r1_src_prepare
251 - if use libressl ; then
252 - sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
253 - "${S}/cmake/ssl.cmake" || die
254 - fi
255 -}
256 -
257 -src_configure() {
258 - # validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
259 - # disable until we see what happens with it
260 - local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITHOUT_VALIDATE_PASSWORD=1 -DWITH_NUMA=$(usex numa ON OFF) )
261 - mysql-multilib-r1_src_configure
262 -}
263 -
264 -# Official test instructions:
265 -# USE='server embedded extraengine perl openssl static-libs' \
266 -# FEATURES='test userpriv -usersandbox' \
267 -# ebuild mysql-X.X.XX.ebuild \
268 -# digest clean package
269 -multilib_src_test() {
270 -
271 - if ! multilib_is_native_abi ; then
272 - einfo "Server tests not available on non-native abi".
273 - return 0;
274 - fi
275 -
276 - local TESTDIR="${BUILD_DIR}/mysql-test"
277 - local retstatus_unit
278 - local retstatus_tests
279 -
280 - # Bug #213475 - MySQL _will_ object strenously if your machine is named
281 - # localhost. Also causes weird failures.
282 - [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
283 -
284 - if use server ; then
285 -
286 - if [[ $UID -eq 0 ]]; then
287 - die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
288 - fi
289 - has usersandbox $FEATURES && ewarn "Some tests may fail with FEATURES=usersandbox"
290 -
291 - einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
292 -
293 - # Run CTest (test-units)
294 - cmake-utils_src_test
295 - retstatus_unit=$?
296 -
297 - # Ensure that parallel runs don't die
298 - export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
299 - # Enable parallel testing, auto will try to detect number of cores
300 - # You may set this by hand.
301 - # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
302 - export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
303 -
304 - # create directories because mysqladmin might right out of order
305 - mkdir -p "${T}"/var-tests{,/log}
306 -
307 - # create symlink for the tests to find mysql_tzinfo_to_sql
308 - ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
309 -
310 - # These are failing in MySQL 5.5/5.6 for now and are believed to be
311 - # false positives:
312 - #
313 - # main.information_schema, binlog.binlog_statement_insert_delayed,
314 - # funcs_1.is_triggers funcs_1.is_tables_mysql,
315 - # funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
316 - # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
317 - # mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
318 - # perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
319 - # fails due to USE=-latin1 / utf8 default
320 - #
321 - # main.mysql_client_test:
322 - # segfaults at random under Portage only, suspect resource limits.
323 - #
324 - # rpl.rpl_plugin_load
325 - # fails due to included file not listed in expected result
326 - # appears to be poor planning
327 - #
328 - # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
329 - # fails due to bad cleanup of previous tests when run in parallel
330 - # The tool is deprecated anyway
331 - # Bug 532288
332 - #
333 - # main.events_2
334 - # Fails on date in past without preserve causing the drop to fail
335 -
336 - for t in \
337 - binlog.binlog_mysqlbinlog_filter \
338 - binlog.binlog_statement_insert_delayed \
339 - funcs_1.is_columns_mysql \
340 - funcs_1.is_tables_mysql \
341 - funcs_1.is_triggers \
342 - main.information_schema \
343 - main.mysql_client_test \
344 - main.mysqld--help-notwin \
345 - perfschema.binlog_edge_mix \
346 - perfschema.binlog_edge_stmt \
347 - rpl.rpl_plugin_load \
348 - main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
349 - main.events_2 \
350 - ; do
351 - mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
352 - done
353 -
354 - if ! use extraengine ; then
355 - # bug 401673, 530766
356 - for t in federated.federated_plugin ; do
357 - mysql-multilib-r1_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
358 - done
359 - fi
360 -
361 - for t in main.mysql main.mysql_upgrade ; do
362 - mysql-multilib-r1_disable_test "$t" "Test $t broken upstream - error return value not updated"
363 - done
364 -
365 - # Run mysql tests
366 - pushd "${TESTDIR}"
367 -
368 - # Set file limits higher so tests run
369 - ulimit -n 3000
370 -
371 - # run mysql-test tests
372 - perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
373 - --suite-timeout=5000 --reorder
374 - retstatus_tests=$?
375 -# [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
376 -# has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
377 -
378 - popd
379 -
380 - # Cleanup is important for these testcases.
381 - pkill -9 -f "${S}/ndb" 2>/dev/null
382 - pkill -9 -f "${S}/sql" 2>/dev/null
383 -
384 - failures=""
385 - [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
386 - [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
387 -# has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
388 -
389 - [[ -z "$failures" ]] || die "Test failures: $failures"
390 - einfo "Tests successfully completed"
391 -
392 - else
393 - einfo "Skipping server tests due to minimal build."
394 - fi
395 -}
396
397 diff --git a/dev-db/mysql/mysql-5.6.39.ebuild b/dev-db/mysql/mysql-5.6.39.ebuild
398 deleted file mode 100644
399 index a85b1579d4c..00000000000
400 --- a/dev-db/mysql/mysql-5.6.39.ebuild
401 +++ /dev/null
402 @@ -1,193 +0,0 @@
403 -# Copyright 1999-2018 Gentoo Foundation
404 -# Distributed under the terms of the GNU General Public License v2
405 -
406 -EAPI="6"
407 -
408 -MY_EXTRAS_VER="20180214-0024Z"
409 -MY_PV="${PV//_alpha_pre/-m}"
410 -MY_PV="${MY_PV//_/-}"
411 -HAS_TOOLS_PATCH="1"
412 -SUBSLOT="18"
413 -#fails to build with ninja
414 -CMAKE_MAKEFILE_GENERATOR=emake
415 -
416 -inherit mysql-multilib-r1
417 -# only to make repoman happy. it is really set in the eclass
418 -IUSE="$IUSE numa"
419 -
420 -# REMEMBER: also update eclass/mysql*.eclass before committing!
421 -KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
422 -
423 -COMMON_DEPEND="numa? ( sys-process/numactl:= )"
424 -
425 -DEPEND="${COMMON_DEPEND}
426 - || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
427 - test? ( dev-perl/JSON )"
428 -RDEPEND="${COMMON_DEPEND}"
429 -
430 -MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
431 -
432 -PATCHES=(
433 - "${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
434 - "${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
435 - "${MY_PATCH_DIR}"/20006_all_cmake_elib-mysql-5.6.35.patch
436 - "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
437 - "${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink-5.6.37.patch
438 - "${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
439 - "${MY_PATCH_DIR}"/20018_all_mysql-5.6.25-without-clientlibs-tools.patch
440 - "${MY_PATCH_DIR}"/20027_all_mysql-5.5-perl5.26-includes.patch
441 - "${MY_PATCH_DIR}"/20028_all_mysql-5.6-gcc7.patch
442 - "${MY_PATCH_DIR}"/20031_all_mysql-5.6-fix-monitor.test.patch
443 -)
444 -
445 -# Please do not add a naive src_unpack to this ebuild
446 -# If you want to add a single patch, copy the ebuild to an overlay
447 -# and create your own mysql-extras tarball, looking at 000_index.txt
448 -
449 -src_prepare() {
450 - mysql-multilib-r1_src_prepare
451 - if use libressl ; then
452 - sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
453 - "${S}/cmake/ssl.cmake" || die
454 - fi
455 -}
456 -
457 -src_configure() {
458 - # validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
459 - # disable until we see what happens with it
460 - local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITHOUT_VALIDATE_PASSWORD=1 -DWITH_NUMA=$(usex numa ON OFF) )
461 - mysql-multilib-r1_src_configure
462 -}
463 -
464 -# Official test instructions:
465 -# USE='server extraengine perl openssl static-libs' \
466 -# FEATURES='test userpriv -usersandbox' \
467 -# ebuild mysql-X.X.XX.ebuild \
468 -# digest clean package
469 -multilib_src_test() {
470 -
471 - if ! multilib_is_native_abi ; then
472 - einfo "Server tests not available on non-native abi".
473 - return 0;
474 - fi
475 -
476 - local TESTDIR="${BUILD_DIR}/mysql-test"
477 - local retstatus_unit
478 - local retstatus_tests
479 -
480 - # Bug #213475 - MySQL _will_ object strenously if your machine is named
481 - # localhost. Also causes weird failures.
482 - [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
483 -
484 - if use server ; then
485 -
486 - if [[ $UID -eq 0 ]]; then
487 - die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
488 - fi
489 - has usersandbox $FEATURES && ewarn "Some tests may fail with FEATURES=usersandbox"
490 -
491 - einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
492 -
493 - # Run CTest (test-units)
494 - cmake-utils_src_test
495 - retstatus_unit=$?
496 -
497 - # Ensure that parallel runs don't die
498 - export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
499 - # Enable parallel testing, auto will try to detect number of cores
500 - # You may set this by hand.
501 - # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
502 - export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
503 -
504 - # create directories because mysqladmin might right out of order
505 - mkdir -p "${T}"/var-tests{,/log}
506 -
507 - # create symlink for the tests to find mysql_tzinfo_to_sql
508 - ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
509 -
510 - # These are failing in MySQL 5.5/5.6 for now and are believed to be
511 - # false positives:
512 - #
513 - # main.information_schema, binlog.binlog_statement_insert_delayed,
514 - # funcs_1.is_triggers funcs_1.is_tables_mysql,
515 - # funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
516 - # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
517 - # mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
518 - # perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
519 - # fails due to USE=-latin1 / utf8 default
520 - #
521 - # main.mysql_client_test:
522 - # segfaults at random under Portage only, suspect resource limits.
523 - #
524 - # rpl.rpl_plugin_load
525 - # fails due to included file not listed in expected result
526 - # appears to be poor planning
527 - #
528 - # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
529 - # fails due to bad cleanup of previous tests when run in parallel
530 - # The tool is deprecated anyway
531 - # Bug 532288
532 - #
533 - # main.events_2
534 - # Fails on date in past without preserve causing the drop to fail
535 -
536 - for t in \
537 - binlog.binlog_mysqlbinlog_filter \
538 - binlog.binlog_statement_insert_delayed \
539 - funcs_1.is_columns_mysql \
540 - funcs_1.is_tables_mysql \
541 - funcs_1.is_triggers \
542 - main.information_schema \
543 - main.mysql_client_test \
544 - main.mysqld--help-notwin \
545 - perfschema.binlog_edge_mix \
546 - perfschema.binlog_edge_stmt \
547 - rpl.rpl_plugin_load \
548 - main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
549 - main.events_2 \
550 - ; do
551 - mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
552 - done
553 -
554 - if ! use extraengine ; then
555 - # bug 401673, 530766
556 - for t in federated.federated_plugin ; do
557 - mysql-multilib-r1_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
558 - done
559 - fi
560 -
561 - for t in main.mysql main.mysql_upgrade ; do
562 - mysql-multilib-r1_disable_test "$t" "Test $t broken upstream - error return value not updated"
563 - done
564 -
565 - # Run mysql tests
566 - pushd "${TESTDIR}"
567 -
568 - # Set file limits higher so tests run
569 - ulimit -n 3000
570 -
571 - # run mysql-test tests
572 - perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
573 - --suite-timeout=5000 --reorder
574 - retstatus_tests=$?
575 -# [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
576 -# has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
577 -
578 - popd
579 -
580 - # Cleanup is important for these testcases.
581 - pkill -9 -f "${S}/ndb" 2>/dev/null
582 - pkill -9 -f "${S}/sql" 2>/dev/null
583 -
584 - failures=""
585 - [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
586 - [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
587 -# has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
588 -
589 - [[ -z "$failures" ]] || die "Test failures: $failures"
590 - einfo "Tests successfully completed"
591 -
592 - else
593 - einfo "Skipping server tests due to minimal build."
594 - fi
595 -}
596
597 diff --git a/dev-db/mysql/mysql-5.6.40.ebuild b/dev-db/mysql/mysql-5.6.40.ebuild
598 deleted file mode 100644
599 index 9df05a4bc7f..00000000000
600 --- a/dev-db/mysql/mysql-5.6.40.ebuild
601 +++ /dev/null
602 @@ -1,193 +0,0 @@
603 -# Copyright 1999-2018 Gentoo Foundation
604 -# Distributed under the terms of the GNU General Public License v2
605 -
606 -EAPI="6"
607 -
608 -MY_EXTRAS_VER="20180214-0024Z"
609 -MY_PV="${PV//_alpha_pre/-m}"
610 -MY_PV="${MY_PV//_/-}"
611 -HAS_TOOLS_PATCH="1"
612 -SUBSLOT="18"
613 -#fails to build with ninja
614 -CMAKE_MAKEFILE_GENERATOR=emake
615 -
616 -inherit mysql-multilib-r1
617 -# only to make repoman happy. it is really set in the eclass
618 -IUSE="$IUSE numa"
619 -
620 -# REMEMBER: also update eclass/mysql*.eclass before committing!
621 -KEYWORDS="alpha amd64 arm ~hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
622 -
623 -COMMON_DEPEND="numa? ( sys-process/numactl:= )"
624 -
625 -DEPEND="${COMMON_DEPEND}
626 - || ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
627 - test? ( dev-perl/JSON )"
628 -RDEPEND="${COMMON_DEPEND}"
629 -
630 -MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
631 -
632 -PATCHES=(
633 - "${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
634 - "${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
635 - "${MY_PATCH_DIR}"/20006_all_cmake_elib-mysql-5.6.35.patch
636 - "${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
637 - "${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink-5.6.37.patch
638 - "${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
639 - "${MY_PATCH_DIR}"/20018_all_mysql-5.6.25-without-clientlibs-tools.patch
640 - "${MY_PATCH_DIR}"/20027_all_mysql-5.5-perl5.26-includes.patch
641 - "${MY_PATCH_DIR}"/20028_all_mysql-5.6-gcc7.patch
642 - "${MY_PATCH_DIR}"/20031_all_mysql-5.6-fix-monitor.test.patch
643 -)
644 -
645 -# Please do not add a naive src_unpack to this ebuild
646 -# If you want to add a single patch, copy the ebuild to an overlay
647 -# and create your own mysql-extras tarball, looking at 000_index.txt
648 -
649 -src_prepare() {
650 - mysql-multilib-r1_src_prepare
651 - if use libressl ; then
652 - sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
653 - "${S}/cmake/ssl.cmake" || die
654 - fi
655 -}
656 -
657 -src_configure() {
658 - # validate_password plugin uses exceptions when it shouldn't yet (until 5.7)
659 - # disable until we see what happens with it
660 - local MYSQL_CMAKE_NATIVE_DEFINES=( -DWITHOUT_VALIDATE_PASSWORD=1 -DWITH_NUMA=$(usex numa ON OFF) )
661 - mysql-multilib-r1_src_configure
662 -}
663 -
664 -# Official test instructions:
665 -# USE='server extraengine perl openssl static-libs' \
666 -# FEATURES='test userpriv -usersandbox' \
667 -# ebuild mysql-X.X.XX.ebuild \
668 -# digest clean package
669 -multilib_src_test() {
670 -
671 - if ! multilib_is_native_abi ; then
672 - einfo "Server tests not available on non-native abi".
673 - return 0;
674 - fi
675 -
676 - local TESTDIR="${BUILD_DIR}/mysql-test"
677 - local retstatus_unit
678 - local retstatus_tests
679 -
680 - # Bug #213475 - MySQL _will_ object strenously if your machine is named
681 - # localhost. Also causes weird failures.
682 - [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
683 -
684 - if use server ; then
685 -
686 - if [[ $UID -eq 0 ]]; then
687 - die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
688 - fi
689 - has usersandbox $FEATURES && ewarn "Some tests may fail with FEATURES=usersandbox"
690 -
691 - einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
692 -
693 - # Run CTest (test-units)
694 - cmake-utils_src_test
695 - retstatus_unit=$?
696 -
697 - # Ensure that parallel runs don't die
698 - export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
699 - # Enable parallel testing, auto will try to detect number of cores
700 - # You may set this by hand.
701 - # The default maximum is 8 unless MTR_MAX_PARALLEL is increased
702 - export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
703 -
704 - # create directories because mysqladmin might right out of order
705 - mkdir -p "${T}"/var-tests{,/log}
706 -
707 - # create symlink for the tests to find mysql_tzinfo_to_sql
708 - ln -s "${BUILD_DIR}/sql/mysql_tzinfo_to_sql" "${S}/sql/"
709 -
710 - # These are failing in MySQL 5.5/5.6 for now and are believed to be
711 - # false positives:
712 - #
713 - # main.information_schema, binlog.binlog_statement_insert_delayed,
714 - # funcs_1.is_triggers funcs_1.is_tables_mysql,
715 - # funcs_1.is_columns_mysql, binlog.binlog_mysqlbinlog_filter,
716 - # perfschema.binlog_edge_mix, perfschema.binlog_edge_stmt,
717 - # mysqld--help-notwin, funcs_1.is_triggers, funcs_1.is_tables_mysql, funcs_1.is_columns_mysql
718 - # perfschema.binlog_edge_stmt, perfschema.binlog_edge_mix, binlog.binlog_mysqlbinlog_filter
719 - # fails due to USE=-latin1 / utf8 default
720 - #
721 - # main.mysql_client_test:
722 - # segfaults at random under Portage only, suspect resource limits.
723 - #
724 - # rpl.rpl_plugin_load
725 - # fails due to included file not listed in expected result
726 - # appears to be poor planning
727 - #
728 - # main.mysqlhotcopy_archive main.mysqlhotcopy_myisam
729 - # fails due to bad cleanup of previous tests when run in parallel
730 - # The tool is deprecated anyway
731 - # Bug 532288
732 - #
733 - # main.events_2
734 - # Fails on date in past without preserve causing the drop to fail
735 -
736 - for t in \
737 - binlog.binlog_mysqlbinlog_filter \
738 - binlog.binlog_statement_insert_delayed \
739 - funcs_1.is_columns_mysql \
740 - funcs_1.is_tables_mysql \
741 - funcs_1.is_triggers \
742 - main.information_schema \
743 - main.mysql_client_test \
744 - main.mysqld--help-notwin \
745 - perfschema.binlog_edge_mix \
746 - perfschema.binlog_edge_stmt \
747 - rpl.rpl_plugin_load \
748 - main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \
749 - main.events_2 \
750 - ; do
751 - mysql-multilib-r1_disable_test "$t" "False positives in Gentoo"
752 - done
753 -
754 - if ! use extraengine ; then
755 - # bug 401673, 530766
756 - for t in federated.federated_plugin ; do
757 - mysql-multilib-r1_disable_test "$t" "Test $t requires USE=extraengine (Need federated engine)"
758 - done
759 - fi
760 -
761 - for t in main.mysql main.mysql_upgrade ; do
762 - mysql-multilib-r1_disable_test "$t" "Test $t broken upstream - error return value not updated"
763 - done
764 -
765 - # Run mysql tests
766 - pushd "${TESTDIR}"
767 -
768 - # Set file limits higher so tests run
769 - ulimit -n 3000
770 -
771 - # run mysql-test tests
772 - perl mysql-test-run.pl --force --vardir="${T}/var-tests" \
773 - --suite-timeout=5000 --reorder
774 - retstatus_tests=$?
775 -# [[ $retstatus_tests -eq 0 ]] || eerror "tests failed"
776 -# has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
777 -
778 - popd
779 -
780 - # Cleanup is important for these testcases.
781 - pkill -9 -f "${S}/ndb" 2>/dev/null
782 - pkill -9 -f "${S}/sql" 2>/dev/null
783 -
784 - failures=""
785 - [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
786 - [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
787 -# has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
788 -
789 - [[ -z "$failures" ]] || die "Test failures: $failures"
790 - einfo "Tests successfully completed"
791 -
792 - else
793 - einfo "Skipping server tests due to minimal build."
794 - fi
795 -}