1 |
commit: b1871e509fba489c2e72d2697ff51926df1b5a2d |
2 |
Author: Ultrabug <ultrabug <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 25 08:31:18 2018 +0000 |
4 |
Commit: Alexys Jacob <ultrabug <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 25 08:31:18 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1871e50 |
7 |
|
8 |
sys-cluster/pacemaker: drop vulnerable wrt #599194 |
9 |
|
10 |
sys-cluster/pacemaker/Manifest | 2 - |
11 |
.../pacemaker/files/pacemaker-1.1.10-tinfo.patch | 21 ----- |
12 |
.../pacemaker/files/pacemaker-1.1.12-glib.patch | 47 ---------- |
13 |
.../pacemaker/files/pacemaker-1.1.12-stonith.patch | 21 ----- |
14 |
sys-cluster/pacemaker/pacemaker-1.1.12-r2.ebuild | 100 --------------------- |
15 |
sys-cluster/pacemaker/pacemaker-1.1.14.ebuild | 94 ------------------- |
16 |
6 files changed, 285 deletions(-) |
17 |
|
18 |
diff --git a/sys-cluster/pacemaker/Manifest b/sys-cluster/pacemaker/Manifest |
19 |
index 2d5310ab436..6026aa42b4f 100644 |
20 |
--- a/sys-cluster/pacemaker/Manifest |
21 |
+++ b/sys-cluster/pacemaker/Manifest |
22 |
@@ -1,3 +1 @@ |
23 |
-DIST Pacemaker-1.1.12.tar.gz 10459675 BLAKE2B 31fe62a4a21523653e232812cb61b636adf2e5965f3d863a39f6d511950e892be126d954f0dd338bfd26a07eee2966a09ccf8d166c9c8bc1fd2ba73898a25ba8 SHA512 cf88a313f5e91f445a159a5d800d27fd891f63c082c92d3f09bfd2aff856325e8ef6e0ebab8c0b2b9cd6eb15cc593c58c8e23e888e17d5286ebc651dd096f9c1 |
24 |
-DIST Pacemaker-1.1.14.tar.gz 4729808 BLAKE2B 90e5fcbfcb88c65b590367c2e99f848f3fa585353308df41684c8a7a039782b3ac507cbf347faf3b68d2f866763df1b713ac8d1ce34579b6b80708277eec0e89 SHA512 81927061bcc0a0b88c472f87a2cbdb26b88a2443b06112cd8c8d58d8491da4e9ae03997108c9d40aa408e80e2998bdc0ac03691f1732d2629c4cef0adcc4b7fa |
25 |
DIST Pacemaker-1.1.16.tar.gz 4897772 BLAKE2B a6ea8b3e5f6ef776a67d8895a0361945c5bcd98ecd861c0fd8d8b3c474a6f14c816e1f36da1dccd429ab8d92c53a9dd071796968d5080d6a900518df200fafbd SHA512 967c860fab7b9e73dd8643e6d09083a2a1298a77d71c3b138187803c89153bee7219da13e6b94b20f2881b53ba7fc1c8584a43ff058a265e76708fd5dbccf534 |
26 |
|
27 |
diff --git a/sys-cluster/pacemaker/files/pacemaker-1.1.10-tinfo.patch b/sys-cluster/pacemaker/files/pacemaker-1.1.10-tinfo.patch |
28 |
deleted file mode 100644 |
29 |
index 1dba440c9e7..00000000000 |
30 |
--- a/sys-cluster/pacemaker/files/pacemaker-1.1.10-tinfo.patch |
31 |
+++ /dev/null |
32 |
@@ -1,21 +0,0 @@ |
33 |
---- a/configure.ac 2014-12-12 14:13:07.262413254 +0100 |
34 |
-+++ b/configure.ac 2014-12-12 14:13:14.922480835 +0100 |
35 |
-@@ -885,14 +885,16 @@ |
36 |
- CURSESLIBS='' |
37 |
- if test "$ac_cv_header_ncurses_h" = "yes"; then |
38 |
- AC_CHECK_LIB(ncurses, printw, |
39 |
-- [CURSESLIBS='-lncurses'; AC_DEFINE(HAVE_LIBNCURSES,1, have ncurses library)] |
40 |
-+ [AC_DEFINE(HAVE_LIBNCURSES,1, have ncurses library)] |
41 |
- ) |
42 |
-+ CURSESLIBS=`$PKGCONFIG --libs ncurses`; |
43 |
- fi |
44 |
- |
45 |
- if test "$ac_cv_header_ncurses_ncurses_h" = "yes"; then |
46 |
- AC_CHECK_LIB(ncurses, printw, |
47 |
-- [CURSESLIBS='-lncurses'; AC_DEFINE(HAVE_LIBNCURSES,1, have ncurses library)] |
48 |
-+ [AC_DEFINE(HAVE_LIBNCURSES,1, have ncurses library)] |
49 |
- ) |
50 |
-+ CURSESLIBS=`$PKGCONFIG --libs ncurses`; |
51 |
- fi |
52 |
- |
53 |
- dnl Only look for non-n-library if there was no n-library. |
54 |
|
55 |
diff --git a/sys-cluster/pacemaker/files/pacemaker-1.1.12-glib.patch b/sys-cluster/pacemaker/files/pacemaker-1.1.12-glib.patch |
56 |
deleted file mode 100644 |
57 |
index 8233f98a17e..00000000000 |
58 |
--- a/sys-cluster/pacemaker/files/pacemaker-1.1.12-glib.patch |
59 |
+++ /dev/null |
60 |
@@ -1,47 +0,0 @@ |
61 |
-From 568e41db929a34106c8c2ff7c48716ab5c13ef49 Mon Sep 17 00:00:00 2001 |
62 |
-From: Andrew Beekhof <andrew@×××××××.net> |
63 |
-Date: Mon, 13 Oct 2014 13:30:58 +1100 |
64 |
-Subject: [PATCH] Fix: lrmd: Prevent glib assert triggered by timers being |
65 |
- removed from mainloop more than once |
66 |
- |
67 |
---- |
68 |
- lib/services/services.c | 3 +++ |
69 |
- lib/services/services_linux.c | 1 + |
70 |
- 2 files changed, 4 insertions(+) |
71 |
- |
72 |
---- a/lib/services/services.c |
73 |
-+++ b/lib/services/services.c |
74 |
-@@ -313,6 +313,7 @@ services_action_free(svc_action_t * op) |
75 |
- |
76 |
- if (op->opaque->repeat_timer) { |
77 |
- g_source_remove(op->opaque->repeat_timer); |
78 |
-+ op->opaque->repeat_timer = 0; |
79 |
- } |
80 |
- if (op->opaque->stderr_gsource) { |
81 |
- mainloop_del_fd(op->opaque->stderr_gsource); |
82 |
-@@ -425,6 +426,7 @@ services_action_kick(const char *name, c |
83 |
- } else { |
84 |
- if (op->opaque->repeat_timer) { |
85 |
- g_source_remove(op->opaque->repeat_timer); |
86 |
-+ op->opaque->repeat_timer = 0; |
87 |
- } |
88 |
- recurring_action_timer(op); |
89 |
- return TRUE; |
90 |
-@@ -459,6 +461,7 @@ handle_duplicate_recurring(svc_action_t |
91 |
- if (dup->pid != 0) { |
92 |
- if (op->opaque->repeat_timer) { |
93 |
- g_source_remove(op->opaque->repeat_timer); |
94 |
-+ op->opaque->repeat_timer = 0; |
95 |
- } |
96 |
- recurring_action_timer(dup); |
97 |
- } |
98 |
---- a/lib/services/services_linux.c |
99 |
-+++ b/lib/services/services_linux.c |
100 |
-@@ -226,6 +226,7 @@ recurring_action_timer(gpointer data) |
101 |
- op->stdout_data = NULL; |
102 |
- free(op->stderr_data); |
103 |
- op->stderr_data = NULL; |
104 |
-+ op->opaque->repeat_timer = 0; |
105 |
- |
106 |
- services_action_async(op, NULL); |
107 |
- return FALSE; |
108 |
|
109 |
diff --git a/sys-cluster/pacemaker/files/pacemaker-1.1.12-stonith.patch b/sys-cluster/pacemaker/files/pacemaker-1.1.12-stonith.patch |
110 |
deleted file mode 100644 |
111 |
index 31c729559f3..00000000000 |
112 |
--- a/sys-cluster/pacemaker/files/pacemaker-1.1.12-stonith.patch |
113 |
+++ /dev/null |
114 |
@@ -1,21 +0,0 @@ |
115 |
-Description: Fix: stonith-ng: Reset mainloop source IDs after removing them |
116 |
- |
117 |
-Origin: upstream, commit: 0326f05c9e26f39a394fa30830e31a76306f49c7 |
118 |
-Author: Andrew Beekhof <andrew@×××××××.net> |
119 |
-Bug-Ubuntu: https://bugs.launchpad.net/bugs/1412962 |
120 |
-Last-Update: 2015-01-20 |
121 |
- |
122 |
---- a/lib/fencing/st_client.c |
123 |
-+++ b/lib/fencing/st_client.c |
124 |
-@@ -663,9 +663,11 @@ stonith_action_async_done(mainloop_child |
125 |
- |
126 |
- if (action->timer_sigterm > 0) { |
127 |
- g_source_remove(action->timer_sigterm); |
128 |
-+ action->timer_sigterm = 0; |
129 |
- } |
130 |
- if (action->timer_sigkill > 0) { |
131 |
- g_source_remove(action->timer_sigkill); |
132 |
-+ action->timer_sigkill = 0; |
133 |
- } |
134 |
- |
135 |
- if (action->last_timeout_signo) { |
136 |
|
137 |
diff --git a/sys-cluster/pacemaker/pacemaker-1.1.12-r2.ebuild b/sys-cluster/pacemaker/pacemaker-1.1.12-r2.ebuild |
138 |
deleted file mode 100644 |
139 |
index fc65ae9855a..00000000000 |
140 |
--- a/sys-cluster/pacemaker/pacemaker-1.1.12-r2.ebuild |
141 |
+++ /dev/null |
142 |
@@ -1,100 +0,0 @@ |
143 |
-# Copyright 1999-2015 Gentoo Foundation |
144 |
-# Distributed under the terms of the GNU General Public License v2 |
145 |
- |
146 |
-EAPI="5" |
147 |
-PYTHON_COMPAT=( python2_7 ) |
148 |
-WANT_AUTOMAKE="1.12" |
149 |
- |
150 |
-inherit autotools eutils python-single-r1 |
151 |
- |
152 |
-MY_PN="Pacemaker" |
153 |
-MY_P=${MY_PN}-${PV/_/-} |
154 |
- |
155 |
-DESCRIPTION="Pacemaker CRM" |
156 |
-HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker" |
157 |
-SRC_URI="https://github.com/ClusterLabs/${PN}/archive/${MY_P}.tar.gz" |
158 |
- |
159 |
-LICENSE="GPL-2" |
160 |
-SLOT="0" |
161 |
-KEYWORDS="amd64 hppa x86" |
162 |
-REQUIRED_USE="cman? ( !heartbeat )" |
163 |
-IUSE="acl cman heartbeat smtp snmp static-libs" |
164 |
- |
165 |
-DEPEND="${PYTHON_DEPS} |
166 |
- app-text/docbook-xsl-stylesheets |
167 |
- dev-libs/libxslt |
168 |
- sys-cluster/cluster-glue |
169 |
- >=sys-cluster/libqb-0.14.0 |
170 |
- sys-cluster/resource-agents |
171 |
- cman? ( sys-cluster/cman ) |
172 |
- heartbeat? ( >=sys-cluster/heartbeat-3.0.0 ) |
173 |
- !heartbeat? ( sys-cluster/corosync ) |
174 |
- smtp? ( net-libs/libesmtp ) |
175 |
- snmp? ( net-analyzer/net-snmp ) |
176 |
-" |
177 |
-RDEPEND="${DEPEND}" |
178 |
- |
179 |
-REQUIRED_USE=${PYTHON_REQUIRED_USE} |
180 |
- |
181 |
-PATCHES=( |
182 |
- "${FILESDIR}"/pacemaker-1.1.10-tinfo.patch |
183 |
- "${FILESDIR}"/pacemaker-1.1.12-glib.patch |
184 |
- "${FILESDIR}"/pacemaker-1.1.12-stonith.patch |
185 |
-) |
186 |
- |
187 |
-S="${WORKDIR}/${PN}-${MY_P}" |
188 |
- |
189 |
-src_prepare() { |
190 |
- epatch "${PATCHES[@]}" |
191 |
- epatch_user |
192 |
- |
193 |
- # bug #490908 |
194 |
- cp "${FILESDIR}/ping" extra/resources/ping || die |
195 |
- |
196 |
- sed -i -e "/ggdb3/d" configure.ac || die |
197 |
- sed -i -e "s/ -ggdb//g" configure.ac || die |
198 |
- sed -i -e "s/uid2username(uid)/uid2username(uid_client)/g" lib/common/ipc.c || die |
199 |
- sed -i -e "s:<glib/ghash.h>:<glib.h>:" lib/ais/plugin.c || die |
200 |
- eautoreconf |
201 |
- |
202 |
- python_fix_shebang . |
203 |
-} |
204 |
- |
205 |
-src_configure() { |
206 |
- local myopts="" |
207 |
- if use heartbeat ; then |
208 |
- myopts="--without-corosync" |
209 |
- else |
210 |
- myopts="--with-ais" |
211 |
- fi |
212 |
- # appends lib to localstatedir automatically |
213 |
- econf \ |
214 |
- --libdir=/usr/$(get_libdir) \ |
215 |
- --localstatedir=/var \ |
216 |
- --disable-dependency-tracking \ |
217 |
- --disable-fatal-warnings \ |
218 |
- $(use_with acl) \ |
219 |
- $(use_with cman cs-quorum) \ |
220 |
- $(use_with cman cman) \ |
221 |
- $(use_with heartbeat) \ |
222 |
- $(use_with smtp esmtp) \ |
223 |
- $(use_with snmp) \ |
224 |
- $(use_enable static-libs static) \ |
225 |
- ${myopts} |
226 |
-} |
227 |
- |
228 |
-src_install() { |
229 |
- default |
230 |
- rm -rf "${D}"/var/run "${D}"/etc/init.d |
231 |
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die |
232 |
- if has_version "<sys-cluster/corosync-2.0"; then |
233 |
- insinto /etc/corosync/service.d |
234 |
- newins "${FILESDIR}/${PN}.service" ${PN} || die |
235 |
- fi |
236 |
-} |
237 |
- |
238 |
-pkg_postinst() { |
239 |
- elog " " |
240 |
- elog "Looking for the crm CLI ? emerge sys-cluster/crmsh !" |
241 |
- elog " " |
242 |
-} |
243 |
|
244 |
diff --git a/sys-cluster/pacemaker/pacemaker-1.1.14.ebuild b/sys-cluster/pacemaker/pacemaker-1.1.14.ebuild |
245 |
deleted file mode 100644 |
246 |
index 492f531c702..00000000000 |
247 |
--- a/sys-cluster/pacemaker/pacemaker-1.1.14.ebuild |
248 |
+++ /dev/null |
249 |
@@ -1,94 +0,0 @@ |
250 |
-# Copyright 1999-2016 Gentoo Foundation |
251 |
-# Distributed under the terms of the GNU General Public License v2 |
252 |
- |
253 |
-EAPI=6 |
254 |
-PYTHON_COMPAT=( python2_7 ) |
255 |
-WANT_AUTOMAKE="1.12" |
256 |
- |
257 |
-inherit autotools eutils python-single-r1 |
258 |
- |
259 |
-MY_PN="Pacemaker" |
260 |
-MY_P=${MY_PN}-${PV/_/-} |
261 |
- |
262 |
-DESCRIPTION="Pacemaker CRM" |
263 |
-HOMEPAGE="http://www.linux-ha.org/wiki/Pacemaker" |
264 |
-SRC_URI="https://github.com/ClusterLabs/${PN}/archive/${MY_P}.tar.gz" |
265 |
- |
266 |
-LICENSE="GPL-2" |
267 |
-SLOT="0" |
268 |
-KEYWORDS="~amd64 ~hppa ~x86" |
269 |
-REQUIRED_USE="cman? ( !heartbeat )" |
270 |
-IUSE="acl cman heartbeat smtp snmp static-libs" |
271 |
- |
272 |
-DEPEND="${PYTHON_DEPS} |
273 |
- app-text/docbook-xsl-stylesheets |
274 |
- dev-libs/libxslt |
275 |
- sys-cluster/cluster-glue |
276 |
- >=sys-cluster/libqb-0.14.0 |
277 |
- sys-cluster/resource-agents |
278 |
- cman? ( sys-cluster/cman ) |
279 |
- heartbeat? ( >=sys-cluster/heartbeat-3.0.0 ) |
280 |
- !heartbeat? ( sys-cluster/corosync ) |
281 |
- smtp? ( net-libs/libesmtp ) |
282 |
- snmp? ( net-analyzer/net-snmp ) |
283 |
-" |
284 |
-RDEPEND="${DEPEND}" |
285 |
- |
286 |
-REQUIRED_USE=${PYTHON_REQUIRED_USE} |
287 |
- |
288 |
-S="${WORKDIR}/${PN}-${MY_P}" |
289 |
- |
290 |
-src_prepare() { |
291 |
- default |
292 |
- epatch_user |
293 |
- |
294 |
- # bug #490908 |
295 |
- cp "${FILESDIR}/ping" extra/resources/ping || die |
296 |
- |
297 |
- sed -i -e "/ggdb3/d" configure.ac || die |
298 |
- sed -i -e "s/ -ggdb//g" configure.ac || die |
299 |
- sed -i -e "s/uid2username(uid)/uid2username(uid_client)/g" lib/common/ipc.c || die |
300 |
- sed -i -e "s:<glib/ghash.h>:<glib.h>:" lib/ais/plugin.c || die |
301 |
- eautoreconf |
302 |
- |
303 |
- python_fix_shebang . |
304 |
-} |
305 |
- |
306 |
-src_configure() { |
307 |
- local myopts="" |
308 |
- if use heartbeat ; then |
309 |
- myopts="--without-corosync" |
310 |
- else |
311 |
- myopts="--with-ais" |
312 |
- fi |
313 |
- # appends lib to localstatedir automatically |
314 |
- econf \ |
315 |
- --libdir=/usr/$(get_libdir) \ |
316 |
- --localstatedir=/var \ |
317 |
- --disable-dependency-tracking \ |
318 |
- --disable-fatal-warnings \ |
319 |
- $(use_with acl) \ |
320 |
- $(use_with cman cs-quorum) \ |
321 |
- $(use_with cman cman) \ |
322 |
- $(use_with heartbeat) \ |
323 |
- $(use_with smtp esmtp) \ |
324 |
- $(use_with snmp) \ |
325 |
- $(use_enable static-libs static) \ |
326 |
- ${myopts} |
327 |
-} |
328 |
- |
329 |
-src_install() { |
330 |
- default |
331 |
- rm -rf "${D}"/var/run "${D}"/etc/init.d |
332 |
- newinitd "${FILESDIR}/${PN}.initd" ${PN} || die |
333 |
- if has_version "<sys-cluster/corosync-2.0"; then |
334 |
- insinto /etc/corosync/service.d |
335 |
- newins "${FILESDIR}/${PN}.service" ${PN} || die |
336 |
- fi |
337 |
-} |
338 |
- |
339 |
-pkg_postinst() { |
340 |
- elog " " |
341 |
- elog "Looking for the crm CLI ? emerge sys-cluster/crmsh !" |
342 |
- elog " " |
343 |
-} |