1 |
commit: 94ab9cc2a8389362dccdacba410d203d518c6791 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 19 03:47:34 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 19 03:49:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94ab9cc2 |
7 |
|
8 |
Revert "dev-db/mysql-cluster: Drop 7.2.31" |
9 |
|
10 |
Don't randomly drop MySQL branches |
11 |
This reverts commit dfc2edc9c1abb2182783c8a5f46afd266e9ce212. |
12 |
|
13 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
14 |
|
15 |
dev-db/mysql-cluster/Manifest | 2 + |
16 |
dev-db/mysql-cluster/metadata.xml | 4 + |
17 |
dev-db/mysql-cluster/mysql-cluster-7.2.31.ebuild | 126 +++++++++++++++++++++++ |
18 |
3 files changed, 132 insertions(+) |
19 |
|
20 |
diff --git a/dev-db/mysql-cluster/Manifest b/dev-db/mysql-cluster/Manifest |
21 |
index 7ad8261ece4..85a2b3e987a 100644 |
22 |
--- a/dev-db/mysql-cluster/Manifest |
23 |
+++ b/dev-db/mysql-cluster/Manifest |
24 |
@@ -1,3 +1,5 @@ |
25 |
+DIST mysql-cluster-gpl-7.2.31.tar.gz 25109340 BLAKE2B c0af2b85c9760636f35ab461997ac5e8e5d20085dbfef6e7a265931e743b288a4cdb8e282f7e9436daa8b9e060fe110f5522c640e2e2a7f0b54fe2686ebb751b SHA512 ab6a7ad2bb981e8351d1d337eb0a75ad952da6f100a6c17a02c629936c4a3bad5701ead6ccf9b912ba0412d3442b6ad87c8e0c5409b84f10af8ec86a7c44b881 |
26 |
DIST mysql-cluster-gpl-7.3.19.tar.gz 41340089 BLAKE2B 25ca93a9bcc41fb03ba0e4d34a1c672ddee3db7ff76fcf483187483dec16d8bffaaf1ab0704b4bed6ebb57681768429f7088757769d6b23dfa757517eef767ea SHA512 2d12124ec6b7ffa904538f21b676b15e093b3720d067b6eaffe609310ffd6261308ddcfbba4ce259f73d8e905f96bdcd21c5b7ec8fb940d2e9a8ec64c0f397a3 |
27 |
DIST mysql-cluster-gpl-7.4.17.tar.gz 41691695 BLAKE2B 9a9641a4962e625364fe9739d0954eeac8d773cb106e05c3cebd9ce94843246db679a1e81db383a861f9cec052193fa1ca80b34fb05d80ffbe248c29094476d2 SHA512 eaeab8b4c62e4b503210c269cf3147cb1fd3690e9bdb291a6bb46c874adf958166ccdf5b8766a09ec14d7fd63e3aff3e4b1f1527201e50e86e588507aa01767f |
28 |
+DIST mysql-extras-20171108-2050Z.tar.bz2 313241 BLAKE2B 83900f96392edb97c47007ba0faa4c259b7a3c6f17a7ed7161c7c632ac2466f9ab59777e6c17fdeeb8553650ea654633e3b10cf6f8e7692fbee4ebc5db495aea SHA512 830e6bac6fcead4b2d9649f6aaf6ec6573f86ce3c1a8bc1be6c89a408d69bfb81136baa7273d4449688d683b832880c2470970cd737c2b07cc7a1c2ce9c5a0b6 |
29 |
DIST mysql-extras-20171121-1518Z.tar.bz2 313539 BLAKE2B c397fdf7ffb3fcbcecda20933e18234062a9500dcf4031e9b17131e2a1f23dca7535ed33ff541fc075eb9995c67a9a8fd7261d7524dd42d8d333543c368b4c15 SHA512 dd0d4a00c0ed710e786d157a73f02c6f555ab7a68e57014d958627096a4245a0b45d22ec860dc5389002d106554e80166661c0b6ddcadff1f737e3fa195badda |
30 |
|
31 |
diff --git a/dev-db/mysql-cluster/metadata.xml b/dev-db/mysql-cluster/metadata.xml |
32 |
index 4ff74764ebf..e769804157d 100644 |
33 |
--- a/dev-db/mysql-cluster/metadata.xml |
34 |
+++ b/dev-db/mysql-cluster/metadata.xml |
35 |
@@ -6,11 +6,15 @@ |
36 |
<name>MySQL</name> |
37 |
</maintainer> |
38 |
<use> |
39 |
+ <flag name="cluster">Add support for NDB clustering</flag> |
40 |
+ <flag name="community">Enables the community features from upstream.</flag> |
41 |
<flag name="embedded">Build embedded server (libmysqld)</flag> |
42 |
<flag name="extraengine">Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag> |
43 |
<flag name="latin1">Use LATIN1 encoding instead of UTF8</flag> |
44 |
<flag name="libressl">Enable SSL connections and crypto functions using <pkg>dev-libs/libressl</pkg></flag> |
45 |
<flag name="openssl">Enable SSL connections and crypto functions using <pkg>dev-libs/openssl</pkg></flag> |
46 |
+ <flag name="max-idx-128">Raise the max index per table limit from 64 to 128</flag> |
47 |
+ <flag name="minimal">Install client programs only, no server</flag> |
48 |
<flag name="numa">Enable NUMA support using <pkg>sys-process/numactl</pkg> (NUMA kernel support is also required)</flag> |
49 |
<flag name="profiling">Add support for statement profiling (requires USE=community).</flag> |
50 |
<flag name="server">Build the server program</flag> |
51 |
|
52 |
diff --git a/dev-db/mysql-cluster/mysql-cluster-7.2.31.ebuild b/dev-db/mysql-cluster/mysql-cluster-7.2.31.ebuild |
53 |
new file mode 100644 |
54 |
index 00000000000..d5e946e39e0 |
55 |
--- /dev/null |
56 |
+++ b/dev-db/mysql-cluster/mysql-cluster-7.2.31.ebuild |
57 |
@@ -0,0 +1,126 @@ |
58 |
+# Copyright 1999-2017 Gentoo Foundation |
59 |
+# Distributed under the terms of the GNU General Public License v2 |
60 |
+ |
61 |
+EAPI=5 |
62 |
+MY_EXTRAS_VER="20171108-2050Z" |
63 |
+BUILD="cmake" |
64 |
+#fails to build with ninja |
65 |
+CMAKE_MAKEFILE_GENERATOR=emake |
66 |
+ |
67 |
+inherit toolchain-funcs java-pkg-opt-2 mysql-v2 |
68 |
+# only to make repoman happy. it is really set in the eclass |
69 |
+IUSE="$IUSE" |
70 |
+ |
71 |
+# REMEMBER: also update eclass/mysql*.eclass before committing! |
72 |
+KEYWORDS="~amd64 ~x86" |
73 |
+ |
74 |
+# When MY_EXTRAS is bumped, the index should be revised to exclude these. |
75 |
+# This is often broken still |
76 |
+EPATCH_EXCLUDE='20006_all_cmake_elib-mysql-cluster-5.5.37.patch 20008_all_mysql-tzinfo-symlink.patch 20019_all_mysql-5.5-mtr-perl-deprecation.patch 20020_all_mysql-5.6-events_1-bug-78899.patch' |
77 |
+ |
78 |
+DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )" |
79 |
+RDEPEND="!media-sound/amarok[embedded]" |
80 |
+ |
81 |
+# Please do not add a naive src_unpack to this ebuild |
82 |
+# If you want to add a single patch, copy the ebuild to an overlay |
83 |
+# and create your own mysql-extras tarball, looking at 000_index.txt |
84 |
+ |
85 |
+# Official test instructions: |
86 |
+# USE='cluster extraengine perl ssl community' \ |
87 |
+# FEATURES='test userpriv -usersandbox' \ |
88 |
+# ebuild mysql-cluster-X.X.XX.ebuild \ |
89 |
+# digest clean package |
90 |
+src_test() { |
91 |
+ |
92 |
+ local TESTDIR="${CMAKE_BUILD_DIR}/mysql-test" |
93 |
+ local retstatus_unit |
94 |
+ local retstatus_tests |
95 |
+ |
96 |
+ # Bug #213475 - MySQL _will_ object strenously if your machine is named |
97 |
+ # localhost. Also causes weird failures. |
98 |
+ [[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost" |
99 |
+ |
100 |
+ if ! use "minimal" ; then |
101 |
+ |
102 |
+ if [[ $UID -eq 0 ]]; then |
103 |
+ die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root." |
104 |
+ fi |
105 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
106 |
+ |
107 |
+ einfo ">>> Test phase [test]: ${CATEGORY}/${PF}" |
108 |
+ addpredict /this-dir-does-not-exist/t9.MYI |
109 |
+ |
110 |
+ # Run CTest (test-units) |
111 |
+ cmake-utils_src_test |
112 |
+ retstatus_unit=$? |
113 |
+ [[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed" |
114 |
+ |
115 |
+ # Ensure that parallel runs don't die |
116 |
+ export MTR_BUILD_THREAD="$((${RANDOM} % 100))" |
117 |
+ |
118 |
+ # create directories because mysqladmin might right out of order |
119 |
+ mkdir -p "${T}"/var-tests{,/log} |
120 |
+ |
121 |
+ # These are failing in MySQL 5.5 for now and are believed to be |
122 |
+ # false positives: |
123 |
+ # |
124 |
+ # main.information_schema, binlog.binlog_statement_insert_delayed, |
125 |
+ # main.mysqld--help-notwin, ndb.ndbinfo, ndb_binlog.ndb_binlog_index |
126 |
+ # fails due to USE=-latin1 / utf8 default |
127 |
+ # |
128 |
+ # main.mysql_client_test: |
129 |
+ # segfaults at random under Portage only, suspect resource limits. |
130 |
+ # |
131 |
+ # sys_vars.plugin_dir_basic |
132 |
+ # fails because PLUGIN_DIR is set to MYSQL_LIBDIR64/plugin |
133 |
+ # instead of MYSQL_LIBDIR/plugin |
134 |
+ # |
135 |
+ # main.flush_read_lock_kill |
136 |
+ # fails because of unknown system variable 'DEBUG_SYNC' |
137 |
+ # |
138 |
+ # main.openssl_1 |
139 |
+ # error message changing |
140 |
+ # -mysqltest: Could not open connection 'default': 2026 SSL connection |
141 |
+ # error: ASN: bad other signature confirmation |
142 |
+ # +mysqltest: Could not open connection 'default': 2026 SSL connection |
143 |
+ # error: error:00000001:lib(0):func(0):reason(1) |
144 |
+ # |
145 |
+ |
146 |
+ for t in main.mysql_client_test \ |
147 |
+ binlog.binlog_statement_insert_delayed main.information_schema \ |
148 |
+ main.mysqld--help-notwin main.flush_read_lock_kill \ |
149 |
+ sys_vars.plugin_dir_basic main.openssl_1 \ |
150 |
+ main.mysqlhotcopy_archive main.mysqlhotcopy_myisam \ |
151 |
+ ndb.ndbinfo ndb_binlog.ndb_binlog_index ; do |
152 |
+ mysql-v2_disable_test "$t" "False positives in Gentoo" |
153 |
+ done |
154 |
+ |
155 |
+ # Run mysql tests |
156 |
+ pushd "${TESTDIR}" |
157 |
+ |
158 |
+ # run mysql-test tests |
159 |
+ perl mysql-test-run.pl --force --vardir="${T}/var-tests" \ |
160 |
+ --parallel=auto |
161 |
+ retstatus_tests=$? |
162 |
+ [[ $retstatus_tests -eq 0 ]] || eerror "tests failed" |
163 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
164 |
+ |
165 |
+ popd |
166 |
+ |
167 |
+ # Cleanup is important for these testcases. |
168 |
+ pkill -9 -f "${S}/ndb" 2>/dev/null |
169 |
+ pkill -9 -f "${S}/sql" 2>/dev/null |
170 |
+ |
171 |
+ failures="" |
172 |
+ [[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit" |
173 |
+ [[ $retstatus_tests -eq 0 ]] || failures="${failures} tests" |
174 |
+ has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox" |
175 |
+ |
176 |
+ [[ -z "$failures" ]] || die "Test failures: $failures" |
177 |
+ einfo "Tests successfully completed" |
178 |
+ |
179 |
+ else |
180 |
+ |
181 |
+ einfo "Skipping server tests due to minimal build." |
182 |
+ fi |
183 |
+} |