Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/ganeti/
Date: Wed, 06 May 2020 01:02:20
Message-Id: 1588726927.835e0c9ecd4e407e6c917f87a09bde8757ae5e72.chutzpah@gentoo
1 commit: 835e0c9ecd4e407e6c917f87a09bde8757ae5e72
2 Author: Austin English <austin.m.english <AT> sony <DOT> com>
3 AuthorDate: Sat May 2 05:06:11 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed May 6 01:02:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=835e0c9e
7
8 app-emulation/ganeti: remove old
9
10 Closes: https://bugs.gentoo.org/719846
11 Signed-off-by: Austin English <austin.m.english <AT> sony.com>
12 Closes: https://github.com/gentoo/gentoo/pull/15608
13 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
14
15 app-emulation/ganeti/ganeti-2.15.2-r9.ebuild | 383 ---------------------------
16 1 file changed, 383 deletions(-)
17
18 diff --git a/app-emulation/ganeti/ganeti-2.15.2-r9.ebuild b/app-emulation/ganeti/ganeti-2.15.2-r9.ebuild
19 deleted file mode 100644
20 index 385e6884858..00000000000
21 --- a/app-emulation/ganeti/ganeti-2.15.2-r9.ebuild
22 +++ /dev/null
23 @@ -1,383 +0,0 @@
24 -# Copyright 1999-2020 Gentoo Authors
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=7
28 -PYTHON_COMPAT=(python2_7)
29 -PYTHON_REQ_USE="ipv6(+)?"
30 -
31 -inherit user autotools bash-completion-r1 python-single-r1
32 -
33 -MY_PV="${PV/_rc/~rc}"
34 -MY_PV="${MY_PV/_beta/~beta}"
35 -MY_P="${PN}-${MY_PV}"
36 -SERIES="$(ver_cut 1-2)"
37 -
38 -DEBIAN_PATCH=11
39 -SRC_URI="
40 - http://downloads.ganeti.org/releases/${SERIES}/${MY_P}.tar.gz
41 - mirror://debian/pool/main/g/ganeti-${SERIES}/ganeti-${SERIES}_${PV}-${DEBIAN_PATCH}.debian.tar.xz
42 -"
43 -KEYWORDS="~amd64 ~x86"
44 -PATCHES=(
45 - "${FILESDIR}"/ganeti-2.15-use-balloon-device.patch
46 - "${WORKDIR}"/debian/patches/do-not-backup-export-dir.patch
47 - "${WORKDIR}"/debian/patches/Makefile.am-use-C.UTF-8
48 - "${WORKDIR}"/debian/patches/relax-deps
49 - "${WORKDIR}"/debian/patches/zlib-0.6-compatibility
50 - "${WORKDIR}"/debian/patches/fix_FTBFS_with_sphinx-1.3.5
51 - "${WORKDIR}"/debian/patches/fix_ftbfs_with_sphinx_1.4
52 - "${WORKDIR}"/debian/patches/use-proper-cabal-dev.patch
53 - "${WORKDIR}"/debian/patches/0001-Drop-dependency-on-MonadCatchIO-transformers.patch
54 - "${WORKDIR}"/debian/patches/0001-GHC-8-support.patch
55 - "${WORKDIR}"/debian/patches/ghc8-fixes
56 - "${WORKDIR}"/debian/patches/snap-server-1.0-compat
57 - "${WORKDIR}"/debian/patches/non-DSA-SSH-key-support.patch
58 - "${WORKDIR}"/debian/patches/fix-ssh-key-renewal-on-single-node-clusters.patch
59 - "${WORKDIR}"/debian/patches/set-defaults-for-ssh-type-bits.patch
60 - "${WORKDIR}"/debian/patches/use-hv-class-to-check-for-migration.patch
61 - "${WORKDIR}"/debian/patches/do-not-specify-socat-ssl-method.patch
62 - "${WORKDIR}"/debian/patches/fix-ftbfs-with-sphinx-1.5.patch
63 - "${WORKDIR}"/debian/patches/fix-failover-from-dead-node.patch
64 - "${WORKDIR}"/debian/patches/fix-cpu-affinity.patch
65 - "${WORKDIR}"/debian/patches/fix-fcntl-i386.patch
66 - "${WORKDIR}"/debian/patches/fix-ovf-test-path.patch
67 - "${WORKDIR}"/debian/patches/fix-qa-ssconf-race.patch
68 - "${WORKDIR}"/debian/patches/relax-sphinx-version-check.patch
69 - #"${WORKDIR}"/debian/patches/THH-2.12.patch
70 - "${WORKDIR}"/debian/patches/sphinx-1.7.patch
71 - "${WORKDIR}"/debian/patches/ca-use-sha256-md.patch
72 - "${WORKDIR}"/debian/patches/impexpd-fix-certificate-verification-with-new-socat.patch
73 - "${WORKDIR}"/debian/patches/impexpd-fix-certificate-verification-with-new-socat-2.patch
74 -)
75 -
76 -DESCRIPTION="Ganeti is a virtual server management software tool"
77 -HOMEPAGE="http://www.ganeti.org/"
78 -
79 -LICENSE="GPL-2"
80 -SLOT="0"
81 -IUSE="drbd experimental haskell-daemons htools ipv6 kvm lxc monitoring multiple-users rbd syslog test xen restricted-commands"
82 -RESTRICT="!test? ( test )"
83 -
84 -REQUIRED_USE="|| ( kvm xen lxc )
85 - test? ( ipv6 )
86 - kvm? ( || ( amd64 x86 ) )
87 - ${PYTHON_REQUIRED_USE}"
88 -
89 -USER_PREFIX="${GANETI_USER_PREFIX:-"gnt-"}"
90 -GROUP_PREFIX="${GANETI_GROUP_PREFIX:-"${USER_PREFIX}"}"
91 -
92 -DEPEND="
93 - dev-libs/openssl:0
94 - $(python_gen_cond_dep '
95 - dev-python/paramiko[${PYTHON_MULTI_USEDEP}]
96 - dev-python/pyopenssl[${PYTHON_MULTI_USEDEP}]
97 - dev-python/simplejson[${PYTHON_MULTI_USEDEP}]
98 - dev-python/pyparsing[${PYTHON_MULTI_USEDEP}]
99 - dev-python/pyinotify[${PYTHON_MULTI_USEDEP}]
100 - dev-python/pycurl[${PYTHON_MULTI_USEDEP}]
101 - dev-python/ipaddr[${PYTHON_MULTI_USEDEP}]
102 - dev-python/bitarray[${PYTHON_MULTI_USEDEP}]
103 - dev-python/docutils[${PYTHON_MULTI_USEDEP}]
104 - dev-python/fdsend[${PYTHON_MULTI_USEDEP}]
105 - ')
106 - || (
107 - net-misc/iputils[arping]
108 - net-analyzer/arping
109 - )
110 - net-analyzer/fping
111 - net-misc/bridge-utils
112 - net-misc/curl[ssl]
113 - net-misc/openssh
114 - net-misc/socat
115 - sys-apps/iproute2
116 - >=sys-fs/lvm2-2.02.181
117 - >=sys-apps/baselayout-2.0
118 - >=dev-lang/ghc-8.0:0=
119 - <dev-lang/ghc-8.1:0=
120 - dev-haskell/cabal:0=
121 - dev-haskell/cabal-install:0=
122 - !<app-emulation/ganeti-instance-image-0.6-r1
123 - >=dev-haskell/mtl-2.1.1:0=
124 - >=dev-haskell/old-time-1.1.0.0:0=
125 - >=dev-haskell/random-1.0.1.1:0=
126 - haskell-daemons? ( >=dev-haskell/text-0.11.1.13:0= )
127 - >=dev-haskell/transformers-0.3.0.0:0=
128 -
129 - >=dev-haskell/attoparsec-0.10.1.1:0=
130 - <dev-haskell/attoparsec-0.14:0
131 - >=dev-haskell/base64-bytestring-1.0.0.1:0=
132 - <dev-haskell/base64-bytestring-1.1:0=
133 - >=dev-haskell/crypto-4.2.4:0=
134 - <dev-haskell/crypto-4.3:0=
135 - >=dev-haskell/curl-1.3.7:0=
136 - <dev-haskell/curl-1.4:0=
137 - >=dev-haskell/hinotify-0.3.2:0=
138 - <dev-haskell/hinotify-0.4:0=
139 - >=dev-haskell/hslogger-1.1.4:0=
140 - <dev-haskell/hslogger-1.3:0=
141 - >=dev-haskell/json-0.5:0=
142 - >=dev-haskell/lens-3.10:0=
143 - >=dev-haskell/lifted-base-0.2.0.3:0=
144 - <dev-haskell/lifted-base-0.3:0=
145 - >=dev-haskell/monad-control-1.0.1.0:0=
146 - <dev-haskell/monad-control-1.0.2:0=
147 - >=dev-haskell/network-2.3.0.13:0=
148 - <dev-haskell/network-2.7:0=
149 - >=dev-haskell/parallel-3.2.0.2:3=
150 - <dev-haskell/parallel-3.3:3=
151 - >=dev-haskell/temporary-1.1.2.3:0=
152 - <dev-haskell/temporary-1.3:0=
153 - >=dev-haskell/regex-pcre-0.94.2:0=
154 - <dev-haskell/regex-pcre-0.95:0=
155 - >=dev-haskell/transformers-base-0.4:0=
156 - <dev-haskell/transformers-base-0.5:0=
157 - >=dev-haskell/utf8-string-0.3.7:0=
158 - >=dev-haskell/zlib-0.5.3.3:0=
159 - <dev-haskell/zlib-0.7:0=
160 -
161 - >=dev-haskell/psqueue-1.1:0=
162 - <dev-haskell/psqueue-1.2:0=
163 - >=dev-haskell/snap-core-1.0.1:0=
164 - <dev-haskell/snap-core-1.1:0=
165 - >=dev-haskell/snap-server-1.0.1:0=
166 - <dev-haskell/snap-server-1.1:0=
167 - >=dev-haskell/case-insensitive-0.4.0.1
168 -
169 - dev-haskell/vector:0=
170 - xen? ( >=app-emulation/xen-3.0 )
171 - kvm? (
172 - dev-python/psutil
173 - app-emulation/qemu
174 - )
175 - lxc? ( app-emulation/lxc )
176 - drbd? ( sys-cluster/drbd-utils )
177 - rbd? ( sys-cluster/ceph )
178 - ipv6? ( net-misc/ndisc6 )
179 - ${PYTHON_DEPS}"
180 -RDEPEND="${DEPEND}
181 - !app-emulation/ganeti-htools"
182 -DEPEND+="
183 - sys-devel/m4
184 - app-text/pandoc
185 - $(python_gen_cond_dep '
186 - dev-python/sphinx[${PYTHON_MULTI_USEDEP}]
187 - ')
188 - media-fonts/urw-fonts
189 - media-gfx/graphviz
190 - >=dev-haskell/test-framework-0.6:0=
191 - <dev-haskell/test-framework-0.9:0=
192 - >=dev-haskell/test-framework-hunit-0.2.7:0=
193 - <dev-haskell/test-framework-hunit-0.4:0=
194 - >=dev-haskell/test-framework-quickcheck2-0.2.12.1:0=
195 - <dev-haskell/test-framework-quickcheck2-0.4:0=
196 - test? (
197 - dev-python/mock
198 - dev-python/pyyaml
199 - dev-haskell/haddock:0=
200 - >=dev-haskell/hunit-1.2.4.2:0=
201 - <dev-haskell/hunit-1.3:0=
202 - >=dev-haskell/quickcheck-2.4.2:2=
203 - <dev-haskell/quickcheck-2.8.3:2=
204 - sys-apps/fakeroot
205 - >=net-misc/socat-1.7
206 - dev-util/shelltestrunner
207 - )"
208 -
209 -PATCHES+=(
210 - "${FILESDIR}/${PN}-2.12-start-stop-daemon-args.patch"
211 - "${FILESDIR}/${PN}-2.11-add-pgrep.patch"
212 - "${FILESDIR}/${PN}-2.15-daemon-util.patch"
213 - "${FILESDIR}/${PN}-2.9-disable-root-tests.patch"
214 - "${FILESDIR}/${PN}-2.9-skip-cli-test.patch"
215 - "${FILESDIR}/${PN}-2.10-rundir.patch"
216 - "${FILESDIR}/${PN}-2.12-qemu-enable-kvm.patch"
217 - "${FILESDIR}/${PN}-2.11-tests.patch"
218 - "${FILESDIR}/${PN}-lockdir.patch"
219 - "${FILESDIR}/${PN}-2.11-dont-nest-libdir.patch"
220 - "${FILESDIR}/${PN}-2.11-dont-print-man-help.patch"
221 - "${FILESDIR}/${PN}-2.11-daemon-util-tests.patch"
222 - "${FILESDIR}/${PN}-2.13-process_unittest.patch"
223 - "${FILESDIR}/${PN}-2.15-python-mock.patch"
224 - "${FILESDIR}/${PN}-2.15.2-remove-sandbox-failing-tests.patch"
225 - "${FILESDIR}/${PN}-2.15-noded-must-run-as-root.patch"
226 - "${FILESDIR}/${PN}-2.15-kvmd-run-as-daemon-user.patch"
227 - "${FILESDIR}/${PN}-2.15-dont-invert-return-values-for-man-warnings.patch"
228 - "${FILESDIR}/${PN}-2.15-respect-HFLAGS.patch"
229 - "${FILESDIR}/ganeti-2.15.2-bdev_py.patch"
230 -)
231 -
232 -S="${WORKDIR}/${MY_P}"
233 -
234 -QA_WX_LOAD="
235 - usr/lib*/${PN}/${SERIES}/usr/sbin/ganeti-*d
236 - usr/lib*/${PN}/${SERIES}/usr/bin/htools
237 -"
238 -# haskell...
239 -QA_FLAGS_IGNORED="
240 - /usr/lib64/ganeti/2.15/usr/sbin/ganeti-metad
241 - /usr/lib64/ganeti/2.15/usr/sbin/ganeti-wconfd
242 - /usr/lib64/ganeti/2.15/usr/sbin/ganeti-confd
243 - /usr/lib64/ganeti/2.15/usr/sbin/ganeti-luxid
244 - /usr/lib64/ganeti/2.15/usr/sbin/ganeti-kvmd
245 - /usr/lib64/ganeti/2.15/usr/bin/htools
246 -"
247 -
248 -pkg_setup() {
249 - local user
250 - python-single-r1_pkg_setup
251 -
252 - if use multiple-users; then
253 - for user in gnt-{masterd,confd,luxid,rapi,daemons,admin}; do
254 - enewgroup ${user}
255 - enewuser ${user} -1 -1 -1 ${user}
256 - done
257 - fi
258 -}
259 -
260 -src_prepare() {
261 - local testfile
262 - if has_version '>=dev-lang/ghc-7.10'; then
263 - # Breaks the build on 7.8
264 - PATCHES+=(
265 - "${WORKDIR}"/debian/patches/ghc-7.10-compatibility.patch
266 - )
267 - fi
268 - if use experimental; then
269 - ewarn "Experimental patches have been applied! RPC between daemons with different patches applied may cause breakage!"
270 - PATCHES+=(
271 - # QEMU Agent accepted upstream for 2.16, not yet in a tagged release
272 - # backport available for 2.15, but refused upstream due to RPC breakage.
273 - "${FILESDIR}"/0001-kvm-use_guest_agent-QEMU-Guest-Agent-sup.stable-2.15.patch
274 - )
275 - fi
276 - eapply "${PATCHES[@]}"
277 - # Upstream commits:
278 - # 4c3c2ca2a97a69c0287a3d23e064bc17978105eb
279 - # 24618882737fd7c189adf99f4acc767d48f572c3
280 - sed -i \
281 - -e '/QuickCheck/s,< 2.8,< 2.8.3,g' \
282 - cabal/ganeti.template.cabal
283 - # Neuter -Werror
284 - sed -i \
285 - -e '/^if DEVELOPER_MODE/,/^endif/s/-Werror//' \
286 - Makefile.am
287 -
288 - # not sure why these tests are failing
289 - # should remove this on next version bump if possible
290 - for testfile in test/py/import-export_unittest.bash; do
291 - printf '#!/bin/bash\ntrue\n' > "${testfile}"
292 - done
293 -
294 - # take the sledgehammer approach to bug #526270
295 - grep -lr '/bin/sh' "${S}" | xargs -r -- sed -i 's:/bin/sh:/bin/bash:g'
296 -
297 - sed "s:%LIBDIR%:$(get_libdir):g" "${FILESDIR}/ganeti.initd-r4" \
298 - > "${T}/ganeti.initd"
299 -
300 - eapply_user
301 -
302 - [[ ${PV} =~ [9]{4,} ]] && ./autogen.sh
303 - rm autotools/missing
304 - eautoreconf
305 -}
306 -
307 -src_configure() {
308 - # this is kind of a hack to work around the removal of the qemu-kvm wrapper
309 - local kvm_arch
310 -
311 - if use amd64; then
312 - kvm_arch=x86_64
313 - elif use x86; then
314 - kvm_arch=i386
315 - elif use kvm; then
316 - die "Could not determine qemu system to use for kvm"
317 - fi
318 -
319 - econf --localstatedir=/var \
320 - --sharedstatedir=/var \
321 - --disable-symlinks \
322 - --with-ssh-initscript=/etc/init.d/sshd \
323 - --with-export-dir=/var/lib/ganeti-storage/export \
324 - --with-os-search-path=/usr/share/${PN}/os \
325 - $(use_enable restricted-commands) \
326 - $(use_enable test haskell-tests) \
327 - $(usex multiple-users "--with-default-user=" "" "gnt-daemons" "") \
328 - $(usex multiple-users "--with-user-prefix=" "" "${USER_PREFIX}" "") \
329 - $(usex multiple-users "--with-default-group=" "" "gnt-daemons" "") \
330 - $(usex multiple-users "--with-group-prefix=" "" "${GROUP_PREFIX}" "") \
331 - $(use_enable syslog) \
332 - $(use_enable monitoring) \
333 - $(usex kvm '--with-kvm-path=' '' "/usr/bin/qemu-system-${kvm_arch}" '') \
334 - $(usex haskell-daemons "--enable-confd=haskell" '' '' '') \
335 - --with-haskell-flags="-optl -Wl,-z,relro -optl -Wl,--as-needed" \
336 - --enable-socat-escape \
337 - --enable-socat-compress
338 -}
339 -
340 -src_install() {
341 - emake V=1 DESTDIR="${D}" install
342 -
343 - newinitd "${T}"/ganeti.initd ${PN}
344 - newconfd "${FILESDIR}"/ganeti.confd-r2 ${PN}
345 -
346 - if use kvm; then
347 - newinitd "${FILESDIR}"/ganeti-kvm-poweroff.initd ganeti-kvm-poweroff
348 - newconfd "${FILESDIR}"/ganeti-kvm-poweroff.confd ganeti-kvm-poweroff
349 - fi
350 -
351 - # ganeti installs it's own docs in a generic location
352 - rm -rf "${D}"/{usr/share/doc/${PN},run}
353 -
354 - sed -i "s:/usr/$(get_libdir)/${PN}/tools/burnin:burnin:" doc/examples/bash_completion
355 - newbashcomp doc/examples/bash_completion gnt-instance
356 - bashcomp_alias gnt-instance burnin ganeti-{cleaner,confd} \
357 - h{space,check,scan,info,ail,arep,roller,squeeze,bal} \
358 - gnt-{os,job,filter,debug,storage,group,node,network,backup,cluster}
359 -
360 - use monitoring && bashcomp_alias gnt-instance mon-collector
361 -
362 - dodoc INSTALL UPGRADE NEWS README doc/*.rst
363 -
364 - docinto html
365 - dodoc -r doc/html/* doc/css/*.css
366 -
367 - docinto examples
368 - dodoc doc/examples/{ganeti.cron,gnt-config-backup} doc/examples/*.ocf
369 -
370 - docinto examples/hooks
371 - dodoc doc/examples/hooks/{ipsec,ethers}
372 -
373 - insinto /etc/cron.d
374 - newins doc/examples/ganeti.cron ${PN}
375 -
376 - insinto /etc/logrotate.d
377 - newins doc/examples/ganeti.logrotate ${PN}
378 -
379 - # need to dodir rather than keepdir here (bug #552482)
380 - dodir /var/lib/${PN}
381 -
382 - keepdir /var/log/${PN}/
383 - keepdir /usr/share/${PN}/${SERIES}/os/
384 - keepdir /var/lib/ganeti-storage/{export,file,shared}/
385 -
386 - dosym ${SERIES} "/usr/share/${PN}/default"
387 - dosym ${SERIES} "/usr/$(get_libdir)/${PN}/default"
388 -
389 - python_fix_shebang "${ED}" "${D}"/usr/"$(get_libdir)"/${PN}/${SERIES}
390 -}
391 -
392 -pkg_postinst() {
393 - if use multiple-users; then
394 - elog "You have enable multiple user support, the users for this must"
395 - elog "be created. You can use the provided tool for this, which is"
396 - elog "located at:"
397 - elog " /usr/$(get_libdir)/${PN}/tools/users-setup"
398 - fi
399 -}
400 -
401 -src_test() {
402 - PATH="${S}/scripts:${S}/src:${PATH}" \
403 - TMPDIR="/tmp" \
404 - GANETI_MASTER="$(hostname -f)" \
405 - emake check
406 -}