1 |
commit: c04a11eae0267697044893da0cced1bd266a31ad |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 2 18:06:15 2019 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 18:06:15 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c04a11ea |
7 |
|
8 |
app-emulation/ganeti-htools: remove last rited package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/675220 |
11 |
|
12 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
13 |
|
14 |
app-emulation/ganeti-htools/Manifest | 1 - |
15 |
.../files/ganeti-htools-0.2.8-use-QC-1.patch | 14 -- |
16 |
.../files/ganeti-htools-0.3.1-base-4.patch | 171 --------------------- |
17 |
.../files/ganeti-htools-0.3.1-containers.patch | 9 -- |
18 |
.../files/ganeti-htools-0.3.1-ghc-7.10.patch | 29 ---- |
19 |
.../ganeti-htools/ganeti-htools-0.3.1.ebuild | 50 ------ |
20 |
app-emulation/ganeti-htools/metadata.xml | 27 ---- |
21 |
7 files changed, 301 deletions(-) |
22 |
|
23 |
diff --git a/app-emulation/ganeti-htools/Manifest b/app-emulation/ganeti-htools/Manifest |
24 |
deleted file mode 100644 |
25 |
index e33360f6828..00000000000 |
26 |
--- a/app-emulation/ganeti-htools/Manifest |
27 |
+++ /dev/null |
28 |
@@ -1 +0,0 @@ |
29 |
-DIST ganeti-htools-0.3.1.tar.gz 300261 BLAKE2B b7eb1a94ff4a5026955a9b8c7331dc6b529ff9eb688ae4cafe1822b93d3705bff4f9c5006bd674cd03ecb2bf41d0e32142d039b485e08a797240e8f51f553c2a SHA512 76acc476dc5b3add808db41b7aad4be6ee4b62d31e81eaefa17fbf010daa817bcc920b4e290727ebeddebbe6015017b19d2b7643dbc6d529f158b9746b7a4b43 |
30 |
|
31 |
diff --git a/app-emulation/ganeti-htools/files/ganeti-htools-0.2.8-use-QC-1.patch b/app-emulation/ganeti-htools/files/ganeti-htools-0.2.8-use-QC-1.patch |
32 |
deleted file mode 100644 |
33 |
index fd7943fe705..00000000000 |
34 |
--- a/app-emulation/ganeti-htools/files/ganeti-htools-0.2.8-use-QC-1.patch |
35 |
+++ /dev/null |
36 |
@@ -1,14 +0,0 @@ |
37 |
-diff --git a/Makefile b/Makefile |
38 |
-index 5e189fc..bfdf175 100644 |
39 |
---- a/Makefile |
40 |
-+++ b/Makefile |
41 |
-@@ -20,7 +20,8 @@ $(HALLPROGS): %: %.hs Ganeti/HTools/Version.hs $(HSRCS) Makefile |
42 |
- |
43 |
- test live-test: HEXTRA=-fhpc -Wwarn -fno-warn-missing-signatures \ |
44 |
- -fno-warn-monomorphism-restriction -fno-warn-orphans \ |
45 |
-- -fno-warn-missing-methods -fno-warn-unused-imports |
46 |
-+ -fno-warn-missing-methods -fno-warn-unused-imports \ |
47 |
-+ -package $(shell ghc-pkg list | sed -n '/ QuickCheck-1./p') |
48 |
- |
49 |
- $(DOCS) : %.html : % |
50 |
- rst2html -v --strict $< $@ |
51 |
|
52 |
diff --git a/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-base-4.patch b/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-base-4.patch |
53 |
deleted file mode 100644 |
54 |
index aa0d973a9e4..00000000000 |
55 |
--- a/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-base-4.patch |
56 |
+++ /dev/null |
57 |
@@ -1,171 +0,0 @@ |
58 |
-diff --git a/Ganeti/HTools/CLI.hs b/Ganeti/HTools/CLI.hs |
59 |
-index b000a00..d9177c6 100644 |
60 |
---- a/Ganeti/HTools/CLI.hs |
61 |
-+++ b/Ganeti/HTools/CLI.hs |
62 |
-@@ -74,11 +74,11 @@ module Ganeti.HTools.CLI |
63 |
- |
64 |
- import Data.Maybe (fromMaybe) |
65 |
- import qualified Data.Version |
66 |
--import Monad |
67 |
-+import Control.Monad |
68 |
- import System.Console.GetOpt |
69 |
- import System.IO |
70 |
- import System.Info |
71 |
--import System |
72 |
-+import System.Exit |
73 |
- import Text.Printf (printf) |
74 |
- |
75 |
- import qualified Ganeti.HTools.Version as Version(version) |
76 |
-diff --git a/Ganeti/HTools/ExtLoader.hs b/Ganeti/HTools/ExtLoader.hs |
77 |
-index 0412c1b..17b8449 100644 |
78 |
---- a/Ganeti/HTools/ExtLoader.hs |
79 |
-+++ b/Ganeti/HTools/ExtLoader.hs |
80 |
-@@ -36,10 +36,11 @@ module Ganeti.HTools.ExtLoader |
81 |
- ) where |
82 |
- |
83 |
- import Data.Maybe (isJust, fromJust) |
84 |
--import Monad |
85 |
-+import Control.Monad |
86 |
-+import qualified Control.Exception as E |
87 |
- import System.FilePath |
88 |
- import System.IO |
89 |
--import System |
90 |
-+import System.Exit |
91 |
- import Text.Printf (printf, hPrintf) |
92 |
- |
93 |
- import qualified Ganeti.HTools.Luxi as Luxi |
94 |
-@@ -56,8 +57,8 @@ import Ganeti.HTools.CLI |
95 |
- import Ganeti.HTools.Utils (sepSplit, tryRead) |
96 |
- |
97 |
- -- | Error beautifier |
98 |
--wrapIO :: IO (Result a) -> IO (Result a) |
99 |
--wrapIO = flip catch (return . Bad . show) |
100 |
-+wrapIO :: (Show a) => IO (Result a) -> IO (Result a) |
101 |
-+wrapIO = flip (E.catch :: IO a -> (E.IOException -> IO a) -> IO a) (return . Bad . show ) |
102 |
- |
103 |
- parseUtilisation :: String -> Result (String, DynUtil) |
104 |
- parseUtilisation line = |
105 |
-diff --git a/hail.hs b/hail.hs |
106 |
-index 541e1a9..68f4488 100644 |
107 |
---- a/hail.hs |
108 |
-+++ b/hail.hs |
109 |
-@@ -27,10 +27,10 @@ module Main (main) where |
110 |
- |
111 |
- import Data.List |
112 |
- import Data.Maybe (isJust, fromJust) |
113 |
--import Monad |
114 |
--import System (exitWith, ExitCode(..)) |
115 |
-+import Control.Monad |
116 |
-+import System.Environment |
117 |
-+import System.Exit |
118 |
- import System.IO |
119 |
--import qualified System |
120 |
- |
121 |
- import qualified Ganeti.HTools.Cluster as Cluster |
122 |
- |
123 |
-@@ -99,7 +99,7 @@ readRequest opts args = do |
124 |
- -- | Main function. |
125 |
- main :: IO () |
126 |
- main = do |
127 |
-- cmd_args <- System.getArgs |
128 |
-+ cmd_args <- getArgs |
129 |
- (opts, args) <- parseOpts cmd_args "hail" options |
130 |
- |
131 |
- let shownodes = optShowNodes opts |
132 |
-diff --git a/hbal.hs b/hbal.hs |
133 |
-index 46cccf8..0254008 100644 |
134 |
---- a/hbal.hs |
135 |
-+++ b/hbal.hs |
136 |
-@@ -30,12 +30,12 @@ import Control.Exception (bracket) |
137 |
- import Data.List |
138 |
- import Data.Maybe (isJust, isNothing, fromJust) |
139 |
- import Data.IORef |
140 |
--import Monad |
141 |
--import System (exitWith, ExitCode(..)) |
142 |
-+import Control.Monad |
143 |
- import System.IO |
144 |
-+import System.Exit |
145 |
- import System.Posix.Process |
146 |
- import System.Posix.Signals |
147 |
--import qualified System |
148 |
-+import System.Environment |
149 |
- |
150 |
- import Text.Printf (printf, hPrintf) |
151 |
- |
152 |
-@@ -223,7 +223,7 @@ runJobSet master fin_nl il cmd_jobs = do |
153 |
- -- | Main function. |
154 |
- main :: IO () |
155 |
- main = do |
156 |
-- cmd_args <- System.getArgs |
157 |
-+ cmd_args <- getArgs |
158 |
- (opts, args) <- parseOpts cmd_args "hbal" options |
159 |
- |
160 |
- unless (null args) $ do |
161 |
-diff --git a/hscan.hs b/hscan.hs |
162 |
-index c14846f..d613f83 100644 |
163 |
---- a/hscan.hs |
164 |
-+++ b/hscan.hs |
165 |
-@@ -28,11 +28,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
166 |
- module Main (main) where |
167 |
- |
168 |
- import Data.Maybe (isJust, fromJust, fromMaybe) |
169 |
--import Monad |
170 |
--import System (exitWith, ExitCode(..)) |
171 |
-+import Control.Monad |
172 |
-+import System.Environment |
173 |
-+import System.Exit |
174 |
- import System.IO |
175 |
- import System.FilePath |
176 |
--import qualified System |
177 |
- |
178 |
- import Text.Printf (printf) |
179 |
- |
180 |
-@@ -135,7 +135,7 @@ writeDataInner nlen name opts cdata fixdata = do |
181 |
- -- | Main function. |
182 |
- main :: IO () |
183 |
- main = do |
184 |
-- cmd_args <- System.getArgs |
185 |
-+ cmd_args <- getArgs |
186 |
- (opts, clusters) <- parseOpts cmd_args "hscan" options |
187 |
- let local = "LOCAL" |
188 |
- |
189 |
-diff --git a/hspace.hs b/hspace.hs |
190 |
-index 57d0302..f207c67 100644 |
191 |
---- a/hspace.hs |
192 |
-+++ b/hspace.hs |
193 |
-@@ -29,10 +29,10 @@ import Data.Char (toUpper, isAlphaNum) |
194 |
- import Data.List |
195 |
- import Data.Maybe (isJust, fromJust) |
196 |
- import Data.Ord (comparing) |
197 |
--import Monad |
198 |
--import System (exitWith, ExitCode(..)) |
199 |
-+import Control.Monad |
200 |
-+import System.Exit |
201 |
-+import System.Environment |
202 |
- import System.IO |
203 |
--import qualified System |
204 |
- |
205 |
- import Text.Printf (printf, hPrintf) |
206 |
- |
207 |
-@@ -207,7 +207,7 @@ printAllocationMap verbose msg nl ixes = |
208 |
- -- | Main function. |
209 |
- main :: IO () |
210 |
- main = do |
211 |
-- cmd_args <- System.getArgs |
212 |
-+ cmd_args <- getArgs |
213 |
- (opts, args) <- parseOpts cmd_args "hspace" options |
214 |
- |
215 |
- unless (null args) $ do |
216 |
-diff --git a/test.hs b/test.hs |
217 |
-index 12aa50d..81838eb 100644 |
218 |
---- a/test.hs |
219 |
-+++ b/test.hs |
220 |
-@@ -29,7 +29,7 @@ import Data.IORef |
221 |
- import Test.QuickCheck.Batch |
222 |
- import System.IO |
223 |
- import System.Exit |
224 |
--import System (getArgs) |
225 |
-+import System.Environment (getArgs) |
226 |
- |
227 |
- import Ganeti.HTools.QC |
228 |
- |
229 |
|
230 |
diff --git a/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-containers.patch b/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-containers.patch |
231 |
deleted file mode 100644 |
232 |
index 2305aa5c654..00000000000 |
233 |
--- a/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-containers.patch |
234 |
+++ /dev/null |
235 |
@@ -1,9 +0,0 @@ |
236 |
-diff --git a/Ganeti/HTools/QC.hs b/Ganeti/HTools/QC.hs |
237 |
-index 534a7b1..6f99a96 100644 |
238 |
---- a/Ganeti/HTools/QC.hs |
239 |
-+++ b/Ganeti/HTools/QC.hs |
240 |
-@@ -753,3 +753,3 @@ prop_ClusterAllocBalance node = |
241 |
- let nl = makeSmallCluster node count |
242 |
-- (hnode, nl') = IntMap.deleteFindMax nl |
243 |
-+ ((_k, hnode), nl') = IntMap.deleteFindMax nl |
244 |
- il = Container.empty |
245 |
|
246 |
diff --git a/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch b/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch |
247 |
deleted file mode 100644 |
248 |
index 51c39fe5fce..00000000000 |
249 |
--- a/app-emulation/ganeti-htools/files/ganeti-htools-0.3.1-ghc-7.10.patch |
250 |
+++ /dev/null |
251 |
@@ -1,29 +0,0 @@ |
252 |
-diff --git a/Ganeti/HTools/Types.hs b/Ganeti/HTools/Types.hs |
253 |
-index 104bf64..8146870 100644 |
254 |
---- a/Ganeti/HTools/Types.hs |
255 |
-+++ b/Ganeti/HTools/Types.hs |
256 |
-@@ -65,2 +65,4 @@ import qualified Data.Map as M |
257 |
- import qualified Text.JSON as JSON |
258 |
-+import Control.Applicative |
259 |
-+import Control.Monad |
260 |
- |
261 |
-@@ -221,2 +223,9 @@ data Result a |
262 |
- |
263 |
-+instance Functor Result where |
264 |
-+ fmap = liftM |
265 |
-+ |
266 |
-+instance Applicative Result where |
267 |
-+ pure = return |
268 |
-+ (<*>) = ap -- defined in Control.Monad |
269 |
-+ |
270 |
- instance Monad Result where |
271 |
-@@ -252,2 +261,9 @@ data OpResult a = OpFail FailMode -- ^ Failed operation |
272 |
- |
273 |
-+instance Functor OpResult where |
274 |
-+ fmap = liftM |
275 |
-+ |
276 |
-+instance Applicative OpResult where |
277 |
-+ pure = return |
278 |
-+ (<*>) = ap -- defined in Control.Monad |
279 |
-+ |
280 |
- instance Monad OpResult where |
281 |
|
282 |
diff --git a/app-emulation/ganeti-htools/ganeti-htools-0.3.1.ebuild b/app-emulation/ganeti-htools/ganeti-htools-0.3.1.ebuild |
283 |
deleted file mode 100644 |
284 |
index 7068c10267c..00000000000 |
285 |
--- a/app-emulation/ganeti-htools/ganeti-htools-0.3.1.ebuild |
286 |
+++ /dev/null |
287 |
@@ -1,50 +0,0 @@ |
288 |
-# Copyright 1999-2014 Gentoo Foundation |
289 |
-# Distributed under the terms of the GNU General Public License v2 |
290 |
- |
291 |
-EAPI="2" |
292 |
- |
293 |
-inherit eutils multilib |
294 |
- |
295 |
-DESCRIPTION="Cluster tools for fixing common allocation problems on Ganeti 2.0 |
296 |
-clusters" |
297 |
-HOMEPAGE="http://www.ganeti.org/" |
298 |
-SRC_URI="https://ganeti.googlecode.com/files/${P}.tar.gz" |
299 |
- |
300 |
-LICENSE="GPL-2" |
301 |
-SLOT="0" |
302 |
-KEYWORDS="amd64 x86" |
303 |
-IUSE="doc test" |
304 |
- |
305 |
-DEPEND="dev-lang/ghc |
306 |
- dev-haskell/json |
307 |
- dev-haskell/curl |
308 |
- dev-haskell/network |
309 |
- dev-haskell/parallel" |
310 |
-RDEPEND="${DEPEND} |
311 |
- !<app-emulation/ganeti-2.4" |
312 |
-DEPEND+=" test? ( dev-haskell/quickcheck:1 )" |
313 |
- |
314 |
-src_prepare() { |
315 |
- # htools does not currently compile cleanly with ghc-6.12+, so remove this |
316 |
- # for now |
317 |
- sed -i -e "s:-Werror ::" Makefile |
318 |
- # Workaround to skip pandoc |
319 |
- sed -i -e "s:) man:):" Makefile |
320 |
- epatch "${FILESDIR}"/${PN}-0.2.8-use-QC-1.patch #316629 |
321 |
- epatch "${FILESDIR}"/${PN}-0.3.1-base-4.patch #424299 |
322 |
- epatch "${FILESDIR}"/${PN}-0.3.1-ghc-7.10.patch |
323 |
- epatch "${FILESDIR}"/${PN}-0.3.1-containers.patch |
324 |
-} |
325 |
- |
326 |
-src_compile() { |
327 |
- emake -j1 || die "emake failed" |
328 |
-} |
329 |
- |
330 |
-src_install() { |
331 |
- dosbin hspace hscan hbal |
332 |
- exeinto /usr/$(get_libdir)/ganeti/iallocators |
333 |
- doexe hail |
334 |
- doman man/*.1 |
335 |
- dodoc README NEWS AUTHORS |
336 |
- use doc && dohtml -r apidoc/* |
337 |
-} |
338 |
|
339 |
diff --git a/app-emulation/ganeti-htools/metadata.xml b/app-emulation/ganeti-htools/metadata.xml |
340 |
deleted file mode 100644 |
341 |
index 56690a9ca1e..00000000000 |
342 |
--- a/app-emulation/ganeti-htools/metadata.xml |
343 |
+++ /dev/null |
344 |
@@ -1,27 +0,0 @@ |
345 |
-<?xml version="1.0" encoding="UTF-8"?> |
346 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
347 |
-<pkgmetadata> |
348 |
- <maintainer type="project"> |
349 |
- <email>virtualization@g.o</email> |
350 |
- <name>Gentoo Virtualization Project</name> |
351 |
- </maintainer> |
352 |
- <maintainer type="project"> |
353 |
- <email>haskell@g.o</email> |
354 |
- <name>Gentoo Haskell</name> |
355 |
- </maintainer> |
356 |
- <longdescription lang="en"> |
357 |
- These are some simple cluster tools for fixing common allocation |
358 |
- problems on Ganeti 2.0 clusters. |
359 |
- |
360 |
- Note that these tools are most useful for bigger cluster sizes |
361 |
- (e.g. more than five or ten machines); at lower sizes, the computations |
362 |
- they do can also be done manually. |
363 |
- |
364 |
- Most of the tools revolve around the concept of keeping the cluster N+1 |
365 |
- compliant: this means that in case of failure of any node, the instances |
366 |
- affected can be failed over (via ``gnt-node failover`` or ``gnt-instance |
367 |
- failover``) to their secondary node, and there is enough memory reserved |
368 |
- for this operation without needing to shutdown other instances or |
369 |
- rebalance the cluster. |
370 |
- </longdescription> |
371 |
-</pkgmetadata> |