1 |
commit: be8b15c8c702ead3d3841afdff07c7774b9471f7 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 2 22:26:03 2023 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 2 22:26:03 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be8b15c8 |
7 |
|
8 |
sys-cluster/galera: partially restore old versions |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
sys-cluster/galera/Manifest | 2 + |
13 |
.../files/galera-25.3.32-respect-cflags.patch | 38 ++++++++++ |
14 |
sys-cluster/galera/galera-25.3.35.ebuild | 80 ++++++++++++++++++++++ |
15 |
sys-cluster/galera/galera-25.3.37.ebuild | 80 ++++++++++++++++++++++ |
16 |
4 files changed, 200 insertions(+) |
17 |
|
18 |
diff --git a/sys-cluster/galera/Manifest b/sys-cluster/galera/Manifest |
19 |
index 25285a706ebd..be25eb1b6ae1 100644 |
20 |
--- a/sys-cluster/galera/Manifest |
21 |
+++ b/sys-cluster/galera/Manifest |
22 |
@@ -1,2 +1,4 @@ |
23 |
+DIST galera-25.3.35.tar.gz 1278869 BLAKE2B c5c0cc1d4ad29caf94550a6b96ab9762a97273713b906c4f3e3d9851b90b1028246285e74becc912336edbb6e1a427d9bdd9c31177f3dd899153dbed54cdde92 SHA512 aaa7038cf9e8be57ae1760d259af31bafa8d3c994c46cbb6224231fe3bb63d7bc830a97a2d4833cd24b85a47da2e4c7bfc2a99d73155d6bd6330e4a9dda3083d |
24 |
+DIST galera-25.3.37.tar.gz 1282455 BLAKE2B 1bdaad50cc08839bfaf988f2b4c5da606f08cb3d4ca43ddb27755a312f490e2e45231446c4d72c6da49aaa7ff309da661a92877a80a983c0e1f0d103f5201ee6 SHA512 348fbc100caa267ea93d2e66ed7bfe437c14ec823d31ae1f293b46791e0063f7afb41fd307ff49fa72e6c5880887da755e3782c50bdbc28622ab00020f1feaec |
25 |
DIST galera-26.4.10.tar.gz 1424663 BLAKE2B 6be96cfaffd0af14a511f1f1aeaf2b7c18a3aa05216389e51a90834d9307bcd832005ee5da38acf530d40b2b6c11e62353be5aa4c0f678804808d1f74bbeea38 SHA512 97fd629d9f963459a9bce377ebcd35a5b4f533451f38011a03e440f0ac3ceddcaf45f4001afa8cd523626c03e64f27363e4b2e819d2b637551e579a3add44226 |
26 |
DIST galera-26.4.13.tar.gz 1529682 BLAKE2B d7030fd5e3a48ede16f608cca9986de117a54f99cf3d972a5b14623acd84f05f31f5cdbbc3032bf5caa8e0486f418ac07c8f87287bb14a8164507c558876ae61 SHA512 e548048eac5fceb0bea1ae736abc6c488d175bc71a3cfb963675232688392ecb5dcc64ddd8e78ceda40e26b94b806d3c34bd9fc9765ebc047b5a5ce28ff7efea |
27 |
|
28 |
diff --git a/sys-cluster/galera/files/galera-25.3.32-respect-cflags.patch b/sys-cluster/galera/files/galera-25.3.32-respect-cflags.patch |
29 |
new file mode 100644 |
30 |
index 000000000000..94c1f829450a |
31 |
--- /dev/null |
32 |
+++ b/sys-cluster/galera/files/galera-25.3.32-respect-cflags.patch |
33 |
@@ -0,0 +1,38 @@ |
34 |
+--- a/SConstruct |
35 |
++++ b/SConstruct |
36 |
+@@ -88,7 +88,7 @@ Commandline Options: |
37 |
+ build_target = 'all' |
38 |
+ |
39 |
+ # Optimization level |
40 |
+-opt_flags = ' -g -O3 -DNDEBUG' |
41 |
++opt_flags = ' -DNDEBUG' |
42 |
+ |
43 |
+ # Architecture (defaults to build host type) |
44 |
+ compile_arch = '' |
45 |
+@@ -121,26 +121,6 @@ elif debug_lvl == 3: |
46 |
+ if dbug: |
47 |
+ opt_flags = opt_flags + ' -DGU_DBUG_ON' |
48 |
+ |
49 |
+-if sysname == 'sunos': |
50 |
+- compile_arch = ' -mtune=native' |
51 |
+-elif x86: |
52 |
+- if bits == 32: |
53 |
+- if machine == 'x86_64': |
54 |
+- compile_arch = ' -mx32' |
55 |
+- else: |
56 |
+- compile_arch = ' -m32 -march=i686' |
57 |
+- if sysname == 'linux': |
58 |
+- link_arch = ' -Wl,-melf_i386' |
59 |
+- else: |
60 |
+- compile_arch = ' -m64' |
61 |
+- if sysname == 'linux': |
62 |
+- link_arch = ' -Wl,-melf_x86_64' |
63 |
+- link_arch = compile_arch + link_arch |
64 |
+-elif machine == 's390x': |
65 |
+- compile_arch = ' -mzarch' |
66 |
+- if bits == 32: |
67 |
+- compile_arch += ' -m32' |
68 |
+- |
69 |
+ boost = int(ARGUMENTS.get('boost', 1)) |
70 |
+ boost_pool = int(ARGUMENTS.get('boost_pool', 0)) |
71 |
+ system_asio= int(ARGUMENTS.get('system_asio', 1)) |
72 |
|
73 |
diff --git a/sys-cluster/galera/galera-25.3.35.ebuild b/sys-cluster/galera/galera-25.3.35.ebuild |
74 |
new file mode 100644 |
75 |
index 000000000000..038ddd3e62c9 |
76 |
--- /dev/null |
77 |
+++ b/sys-cluster/galera/galera-25.3.35.ebuild |
78 |
@@ -0,0 +1,80 @@ |
79 |
+# Copyright 1999-2023 Gentoo Authors |
80 |
+# Distributed under the terms of the GNU General Public License v2 |
81 |
+ |
82 |
+EAPI=7 |
83 |
+ |
84 |
+PYTHON_COMPAT=( python3_{8..10} ) |
85 |
+ |
86 |
+inherit python-any-r1 scons-utils toolchain-funcs flag-o-matic |
87 |
+ |
88 |
+MY_PN="${PN}-3" |
89 |
+MY_P="${MY_PN}-${PV}" |
90 |
+ |
91 |
+DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API" |
92 |
+HOMEPAGE="https://galeracluster.com" |
93 |
+SRC_URI="https://releases.galeracluster.com/${MY_PN}/source/${MY_P}.tar.gz -> ${P}.tar.gz" |
94 |
+LICENSE="GPL-2 BSD" |
95 |
+ |
96 |
+SLOT="0" |
97 |
+ |
98 |
+KEYWORDS="amd64 ~arm arm64 ~ia64 ~ppc ppc64 x86" |
99 |
+IUSE="cpu_flags_x86_sse4_2 garbd test" |
100 |
+RESTRICT="!test? ( test )" |
101 |
+ |
102 |
+COMMON_DEPEND=" |
103 |
+ dev-libs/openssl:0= |
104 |
+ dev-libs/boost:= |
105 |
+" |
106 |
+ |
107 |
+DEPEND=" |
108 |
+ ${COMMON_DEPEND} |
109 |
+ dev-libs/check |
110 |
+ >=dev-cpp/asio-1.10.1[ssl(+)] |
111 |
+ <dev-cpp/asio-1.12.0 |
112 |
+" |
113 |
+ |
114 |
+#Run time only |
115 |
+RDEPEND="${COMMON_DEPEND}" |
116 |
+ |
117 |
+# Respect {C,LD}FLAGS. |
118 |
+PATCHES=( "${FILESDIR}/${PN}"-25.3.32-respect-cflags.patch ) |
119 |
+ |
120 |
+S="${WORKDIR}/${MY_P}" |
121 |
+ |
122 |
+src_prepare() { |
123 |
+ default |
124 |
+ # Remove bundled dev-cpp/asio |
125 |
+ rm -r "${S}/asio" || die "Failed to remove bundled asio" |
126 |
+ #Remove optional garbd daemon |
127 |
+ if ! use garbd ; then |
128 |
+ rm -r "${S}/garb" || die "Failed to remove garbd daemon" |
129 |
+ fi |
130 |
+} |
131 |
+ |
132 |
+src_configure() { |
133 |
+ tc-export AR CC CXX OBJDUMP |
134 |
+ # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, |
135 |
+ # and -Wold-style-cast |
136 |
+ MYSCONS=( |
137 |
+ crc32c_no_hardware=$(usex cpu_flags_x86_sse4_2 0 1) |
138 |
+ tests=$(usex test 1 0) |
139 |
+ strict_build_flags=0 |
140 |
+ system_asio=1 |
141 |
+ ) |
142 |
+} |
143 |
+ |
144 |
+src_compile() { |
145 |
+ escons --warn=no-missing-sconscript "${MYSCONS[@]}" |
146 |
+} |
147 |
+ |
148 |
+src_install() { |
149 |
+ dodoc scripts/packages/README scripts/packages/README-MySQL |
150 |
+ if use garbd ; then |
151 |
+ dobin garb/garbd |
152 |
+ newconfd "${FILESDIR}/garb.cnf" garbd |
153 |
+ newinitd "${FILESDIR}/garb.init" garbd |
154 |
+ doman man/garbd.8 |
155 |
+ fi |
156 |
+ exeinto /usr/$(get_libdir)/"${PN}" |
157 |
+ doexe libgalera_smm.so |
158 |
+} |
159 |
|
160 |
diff --git a/sys-cluster/galera/galera-25.3.37.ebuild b/sys-cluster/galera/galera-25.3.37.ebuild |
161 |
new file mode 100644 |
162 |
index 000000000000..33c3545ee6ba |
163 |
--- /dev/null |
164 |
+++ b/sys-cluster/galera/galera-25.3.37.ebuild |
165 |
@@ -0,0 +1,80 @@ |
166 |
+# Copyright 1999-2023 Gentoo Authors |
167 |
+# Distributed under the terms of the GNU General Public License v2 |
168 |
+ |
169 |
+EAPI=7 |
170 |
+ |
171 |
+PYTHON_COMPAT=( python3_{8..10} ) |
172 |
+ |
173 |
+inherit python-any-r1 scons-utils toolchain-funcs flag-o-matic |
174 |
+ |
175 |
+MY_PN="${PN}-3" |
176 |
+MY_P="${MY_PN}-${PV}" |
177 |
+ |
178 |
+DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API" |
179 |
+HOMEPAGE="https://galeracluster.com" |
180 |
+SRC_URI="https://releases.galeracluster.com/${MY_PN}/source/${MY_P}.tar.gz -> ${P}.tar.gz" |
181 |
+LICENSE="GPL-2 BSD" |
182 |
+ |
183 |
+SLOT="0" |
184 |
+ |
185 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" |
186 |
+IUSE="cpu_flags_x86_sse4_2 garbd test" |
187 |
+RESTRICT="!test? ( test )" |
188 |
+ |
189 |
+COMMON_DEPEND=" |
190 |
+ dev-libs/openssl:0= |
191 |
+ >=dev-libs/boost-1.41:0= |
192 |
+" |
193 |
+ |
194 |
+DEPEND=" |
195 |
+ ${COMMON_DEPEND} |
196 |
+ dev-libs/check |
197 |
+ >=dev-cpp/asio-1.10.1[ssl(+)] |
198 |
+ <dev-cpp/asio-1.12.0 |
199 |
+" |
200 |
+ |
201 |
+#Run time only |
202 |
+RDEPEND="${COMMON_DEPEND}" |
203 |
+ |
204 |
+# Respect {C,LD}FLAGS. |
205 |
+PATCHES=( "${FILESDIR}/${PN}"-25.3.32-respect-cflags.patch ) |
206 |
+ |
207 |
+S="${WORKDIR}/${MY_P}" |
208 |
+ |
209 |
+src_prepare() { |
210 |
+ default |
211 |
+ # Remove bundled dev-cpp/asio |
212 |
+ rm -r "${S}/asio" || die "Failed to remove bundled asio" |
213 |
+ #Remove optional garbd daemon |
214 |
+ if ! use garbd ; then |
215 |
+ rm -r "${S}/garb" || die "Failed to remove garbd daemon" |
216 |
+ fi |
217 |
+} |
218 |
+ |
219 |
+src_configure() { |
220 |
+ tc-export AR CC CXX OBJDUMP |
221 |
+ # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, |
222 |
+ # and -Wold-style-cast |
223 |
+ MYSCONS=( |
224 |
+ crc32c_no_hardware=$(usex cpu_flags_x86_sse4_2 0 1) |
225 |
+ tests=$(usex test 1 0) |
226 |
+ strict_build_flags=0 |
227 |
+ system_asio=1 |
228 |
+ ) |
229 |
+} |
230 |
+ |
231 |
+src_compile() { |
232 |
+ escons --warn=no-missing-sconscript "${MYSCONS[@]}" |
233 |
+} |
234 |
+ |
235 |
+src_install() { |
236 |
+ dodoc scripts/packages/README scripts/packages/README-MySQL |
237 |
+ if use garbd ; then |
238 |
+ dobin garb/garbd |
239 |
+ newconfd "${FILESDIR}/garb.cnf" garbd |
240 |
+ newinitd "${FILESDIR}/garb.init" garbd |
241 |
+ doman man/garbd.8 |
242 |
+ fi |
243 |
+ exeinto /usr/$(get_libdir)/"${PN}" |
244 |
+ doexe libgalera_smm.so |
245 |
+} |