Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/, dev-haskell/rsa/files/, dev-haskell/rsa/
Date: Thu, 29 Sep 2022 07:49:27
Message-Id: 1664437552.247352d1a2ec69e3818ae93e9a08fd8eacd1a268.jsmolic@gentoo
1 commit: 247352d1a2ec69e3818ae93e9a08fd8eacd1a268
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 07:45:52 2022 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 07:45:52 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=247352d1
7
8 dev-haskell/rsa: Remove last-rited pkg
9
10 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
11
12 dev-haskell/rsa/Manifest | 1 -
13 dev-haskell/rsa/files/rsa-2.3.1-p1-ghc-8.8.patch | 19 ---------
14 dev-haskell/rsa/files/rsa-2.3.1-p2-ghc-8.8.patch | 21 ----------
15 dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch | 23 -----------
16 dev-haskell/rsa/metadata.xml | 16 --------
17 dev-haskell/rsa/rsa-2.3.1.ebuild | 49 ------------------------
18 profiles/package.mask | 1 -
19 7 files changed, 130 deletions(-)
20
21 diff --git a/dev-haskell/rsa/Manifest b/dev-haskell/rsa/Manifest
22 deleted file mode 100644
23 index 86a9aca3dad7..000000000000
24 --- a/dev-haskell/rsa/Manifest
25 +++ /dev/null
26 @@ -1 +0,0 @@
27 -DIST RSA-2.3.1.tar.gz 14705 BLAKE2B 065341bd3360410ca1e2ae1057b6b8112bc6cf1253ef12733d9d9564666b7c97e8088d35e0736a76768ebc8d40f497536ec0bb84565d849285666c591f1df3c6 SHA512 b4d3f406cd7b97237c2b36e2ba659f35871e02a6144b6cb48482fdc7999d9822758472c25b9eaef9ef6aeb8c503fa49b424350a543897217f3aec3084dd7572f
28
29 diff --git a/dev-haskell/rsa/files/rsa-2.3.1-p1-ghc-8.8.patch b/dev-haskell/rsa/files/rsa-2.3.1-p1-ghc-8.8.patch
30 deleted file mode 100644
31 index 2c985b3b5f62..000000000000
32 --- a/dev-haskell/rsa/files/rsa-2.3.1-p1-ghc-8.8.patch
33 +++ /dev/null
34 @@ -1,19 +0,0 @@
35 -commit 8d867a693f91406f9b45e24d79a0637013c0e272
36 -Author: Ollie Charles <ollie@××××××××××××.uk>
37 -Date: Wed Sep 18 14:48:23 2019 +0100
38 -
39 - Update Pure.hs
40 -
41 -diff --git a/src/Codec/Crypto/RSA/Pure.hs b/src/Codec/Crypto/RSA/Pure.hs
42 -index 8e0f483..a69907d 100644
43 ---- a/src/Codec/Crypto/RSA/Pure.hs
44 -+++ b/src/Codec/Crypto/RSA/Pure.hs
45 -@@ -111,7 +111,7 @@ instance Binary PrivateKey where
46 - d <- os2ip `fmap` getLazyByteString (fromIntegral (public_size pub))
47 - return (PrivateKey pub d 0 0 0 0 0)
48 -
49 --failOnError :: (Monad m, Show a) => Either a b -> m b
50 -+failOnError :: (MonadFail m, Show a) => Either a b -> m b
51 - failOnError (Left e) = fail (show e)
52 - failOnError (Right b) = return b
53 -
54
55 diff --git a/dev-haskell/rsa/files/rsa-2.3.1-p2-ghc-8.8.patch b/dev-haskell/rsa/files/rsa-2.3.1-p2-ghc-8.8.patch
56 deleted file mode 100644
57 index e2c7348eb38c..000000000000
58 --- a/dev-haskell/rsa/files/rsa-2.3.1-p2-ghc-8.8.patch
59 +++ /dev/null
60 @@ -1,21 +0,0 @@
61 -commit d621ae1603f27b3de867b46e5ad4d28460097dac
62 -Author: Ollie Charles <ollie@××××××××××××.uk>
63 -Date: Wed Sep 18 14:52:34 2019 +0100
64 -
65 - Update Pure.hs
66 -
67 -diff --git a/src/Codec/Crypto/RSA/Pure.hs b/src/Codec/Crypto/RSA/Pure.hs
68 -index a69907d..e3513a9 100644
69 ---- a/src/Codec/Crypto/RSA/Pure.hs
70 -+++ b/src/Codec/Crypto/RSA/Pure.hs
71 -@@ -111,8 +111,8 @@ instance Binary PrivateKey where
72 - d <- os2ip `fmap` getLazyByteString (fromIntegral (public_size pub))
73 - return (PrivateKey pub d 0 0 0 0 0)
74 -
75 --failOnError :: (MonadFail m, Show a) => Either a b -> m b
76 --failOnError (Left e) = fail (show e)
77 -+failOnError :: (Monad m, Show a) => Either a b -> m b
78 -+failOnError (Left e) = error (show e)
79 - failOnError (Right b) = return b
80 -
81 - -- ----------------------------------------------------------------------------
82
83 diff --git a/dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch b/dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch
84 deleted file mode 100644
85 index 6aebe6fab6ce..000000000000
86 --- a/dev-haskell/rsa/files/rsa-2.3.1-p3-ghc-8.8.patch
87 +++ /dev/null
88 @@ -1,23 +0,0 @@
89 -commit bb712862c868975ab033e1079751d9e3787d3a33
90 -Author: Ollie Charles <ollie@××××××××××××.uk>
91 -Date: Wed Sep 18 14:54:22 2019 +0100
92 -
93 - Update Test.hs
94 -
95 -diff --git a/Test.hs b/Test.hs
96 -index dd61302..4fa26ca 100644
97 ---- a/Test.hs
98 -+++ b/Test.hs
99 -@@ -98,10 +98,10 @@ instance Arbitrary LargePrime where
100 - arbitrary =
101 - do seed <- BSS.pack `fmap` replicateM 4096 arbitrary
102 - case newGen seed of
103 -- Left _ -> fail "DRBG initialization error."
104 -+ Left _ -> error "DRBG initialization error."
105 - Right (g :: HashDRBG) ->
106 - case largeRandomPrime g 64 of
107 -- Left _ -> fail "Large prime generation failure."
108 -+ Left _ -> error "Large prime generation failure."
109 - Right (i, _) -> return (LP i)
110 -
111 - data KeyPairIdx = KPI Int
112
113 diff --git a/dev-haskell/rsa/metadata.xml b/dev-haskell/rsa/metadata.xml
114 deleted file mode 100644
115 index 89642b8bdd30..000000000000
116 --- a/dev-haskell/rsa/metadata.xml
117 +++ /dev/null
118 @@ -1,16 +0,0 @@
119 -<?xml version="1.0" encoding="UTF-8"?>
120 -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
121 -<pkgmetadata>
122 - <maintainer type="project">
123 - <email>haskell@g.o</email>
124 - <name>Gentoo Haskell</name>
125 - </maintainer>
126 - <longdescription>
127 - This library implements the RSA encryption and signature
128 - algorithms for arbitrarily-sized ByteStrings. While the
129 - implementations work, they are not necessarily the fastest ones
130 - on the planet. Particularly key generation. The algorithms
131 - included are based of RFC 3447, or the Public-Key Cryptography
132 - Standard for RSA, version 2.1 (a.k.a, PKCS#1 v2.1).
133 - </longdescription>
134 -</pkgmetadata>
135
136 diff --git a/dev-haskell/rsa/rsa-2.3.1.ebuild b/dev-haskell/rsa/rsa-2.3.1.ebuild
137 deleted file mode 100644
138 index f0a8153fa08a..000000000000
139 --- a/dev-haskell/rsa/rsa-2.3.1.ebuild
140 +++ /dev/null
141 @@ -1,49 +0,0 @@
142 -# Copyright 1999-2020 Gentoo Authors
143 -# Distributed under the terms of the GNU General Public License v2
144 -
145 -EAPI=7
146 -
147 -# ebuild generated by hackport 0.6.9999
148 -#hackport: flags: -oldbase,-buildtestexecutable
149 -
150 -CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
151 -inherit haskell-cabal
152 -
153 -MY_PN="RSA"
154 -MY_P="${MY_PN}-${PV}"
155 -
156 -DESCRIPTION="Implementation of RSA, using the padding schemes of PKCS#1 v2.1"
157 -HOMEPAGE="https://hackage.haskell.org/package/RSA"
158 -SRC_URI="https://hackage.haskell.org/package/${MY_P}/${MY_P}.tar.gz"
159 -
160 -LICENSE="BSD"
161 -SLOT="0/${PV}"
162 -KEYWORDS="~amd64 ~x86"
163 -IUSE=""
164 -
165 -RDEPEND=">=dev-haskell/crypto-api-0.10:=[profile?] <dev-haskell/crypto-api-0.14:=[profile?]
166 - >=dev-haskell/crypto-pubkey-types-0.2:=[profile?] <dev-haskell/crypto-pubkey-types-0.6:=[profile?]
167 - >=dev-haskell/sha-1.6.4.1:=[profile?] <dev-haskell/sha-2.0:=[profile?]
168 - >=dev-lang/ghc-7.8.2:=
169 -"
170 -DEPEND="${RDEPEND}
171 - >=dev-haskell/cabal-1.18.1.3
172 - test? ( >=dev-haskell/crypto-pubkey-types-0.4 <dev-haskell/crypto-pubkey-types-0.6
173 - >=dev-haskell/drbg-0.5.2 <dev-haskell/drbg-0.7
174 - >=dev-haskell/quickcheck-2.5 <dev-haskell/quickcheck-3
175 - >=dev-haskell/tagged-0.2 <dev-haskell/tagged-0.9
176 - >=dev-haskell/test-framework-0.8.0.3 <dev-haskell/test-framework-0.10
177 - >=dev-haskell/test-framework-quickcheck2-0.3.0.2 <dev-haskell/test-framework-quickcheck2-0.5 )
178 -"
179 -
180 -S="${WORKDIR}/${MY_P}"
181 -
182 -PATCHES=("${FILESDIR}"/${P}-p1-ghc-8.8.patch
183 - "${FILESDIR}"/${P}-p2-ghc-8.8.patch
184 - "${FILESDIR}"/${P}-p3-ghc-8.8.patch)
185 -
186 -src_configure() {
187 - haskell-cabal_src_configure \
188 - --flag=-buildtestexecutable \
189 - --flag=-oldbase
190 -}
191
192 diff --git a/profiles/package.mask b/profiles/package.mask
193 index 09b24daa613c..3601e4b66b9e 100644
194 --- a/profiles/package.mask
195 +++ b/profiles/package.mask
196 @@ -339,7 +339,6 @@ dev-haskell/rerebase
197 dev-haskell/rfc5051
198 dev-haskell/rio-orphans
199 dev-haskell/rio-prettyprint
200 -dev-haskell/rsa
201
202 # hololeap <hololeap@××××××××××.com> (2022-08-21)
203 # doctest-parallel does not currently work with Setup.hs (used internally by