1 |
commit: c7b2e1ce22d34cb19c5e7d03c16fcabe3420d06a |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 27 05:36:49 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 27 05:36:49 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b2e1ce |
7 |
|
8 |
dev-java/commons-collections: removed obsolete and vulnerable 3.2.1-r1 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/739348 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
13 |
|
14 |
dev-java/commons-collections/Manifest | 1 - |
15 |
.../commons-collections-3.2.1-r1.ebuild | 74 ---------- |
16 |
.../files/commons-collections-3.2.1-Java-8.patch | 160 --------------------- |
17 |
dev-java/commons-collections/metadata.xml | 3 - |
18 |
4 files changed, 238 deletions(-) |
19 |
|
20 |
diff --git a/dev-java/commons-collections/Manifest b/dev-java/commons-collections/Manifest |
21 |
index 83ee54781b0..02508b4a856 100644 |
22 |
--- a/dev-java/commons-collections/Manifest |
23 |
+++ b/dev-java/commons-collections/Manifest |
24 |
@@ -1,3 +1,2 @@ |
25 |
-DIST commons-collections-3.2.1-src.tar.gz 609930 BLAKE2B 547b785b82e16f1c318fafb5761292c5fe8beb57dd4a4881cc16ef7df7328df279713442cd1fc4a64fad0d84457c06d5536c084fd8084f62495ce44bfde19a34 SHA512 8b9b5344528b3b8a53142abd944ff6b89cc149a3fa0c1eadf3f2172509499af5820ba86859e47fe7f15f994f680fa3c577c21891540b64f41f826babe81a0fc0 |
26 |
DIST commons-collections-3.2.2-src.tar.gz 630693 BLAKE2B a70cebe9526291d5207db7edd7c9b50060413880d41dcb28c01cf05f7e00a9f5e1560012c3c3c763162412282db9512bc2b64a5788f210c5c8866943d912dafb SHA512 2e8ef638f07515b028a3e7e97851fcf1d9023a2c188e211bd1e936f35d3d91c2885adf3b1103ad17dfb7aeea6e7a67ce7826ee346a8a29c1aa7c6b0cf14e9230 |
27 |
DIST commons-collections4-4.1-src.tar.gz 704671 BLAKE2B dea1b630168373013ca937c9b02414b92845fdd9ddf7a22a05c4d7f8d30ff26d73f3a2d399d7a4c026f8ec43a282120fdf3d3cb1042a311c3b490ffed1774e30 SHA512 c5666f41b68c9fdba3731730595616b16f98579c077cf047f421a46729b5a65476a8707125a2c0b0c6c024ca94df8c2633123bd99e705149fcb1afadcd3bf68b |
28 |
|
29 |
diff --git a/dev-java/commons-collections/commons-collections-3.2.1-r1.ebuild b/dev-java/commons-collections/commons-collections-3.2.1-r1.ebuild |
30 |
deleted file mode 100644 |
31 |
index ef22afeed88..00000000000 |
32 |
--- a/dev-java/commons-collections/commons-collections-3.2.1-r1.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,74 +0,0 @@ |
35 |
-# Copyright 1999-2021 Gentoo Authors |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=5 |
39 |
- |
40 |
-JAVA_PKG_IUSE="doc source test" |
41 |
-MAVEN_ID="commons-collections:commons-collections:3.2.1" |
42 |
- |
43 |
-inherit java-pkg-2 java-ant-2 java-utils-2 epatch |
44 |
- |
45 |
-DESCRIPTION="Jakarta-Commons Collections Component" |
46 |
-HOMEPAGE="http://commons.apache.org/collections/" |
47 |
-SRC_URI="mirror://apache/${PN/-//}/source/${P}-src.tar.gz" |
48 |
- |
49 |
-LICENSE="Apache-2.0" |
50 |
-SLOT="0" |
51 |
-KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos" |
52 |
-IUSE="test-framework" |
53 |
-RESTRICT="!test? ( test )" |
54 |
- |
55 |
-CDEPEND=" |
56 |
- test-framework? ( |
57 |
- dev-java/junit:0 |
58 |
- dev-java/ant-junit:0 |
59 |
- ) |
60 |
- " |
61 |
-DEPEND=">=virtual/jdk-1.6 |
62 |
- ${CDEPEND}" |
63 |
-RDEPEND=">=virtual/jre-1.6 |
64 |
- ${CDEPEND}" |
65 |
- |
66 |
-S="${WORKDIR}/${P}-src" |
67 |
- |
68 |
-java_prepare() { |
69 |
- # Check for VM version. |
70 |
- java-pkg_is-vm-version-ge 1.8 |
71 |
- if [[ $? -eq 0 ]]; then |
72 |
- einfo "You are running a JVM greater or equal than version 1.8." |
73 |
- epatch "${FILESDIR}"/${P}-Java-8.patch |
74 |
- fi |
75 |
-} |
76 |
- |
77 |
-src_compile() { |
78 |
- local antflags |
79 |
- if use test-framework; then |
80 |
- antflags="tf.jar -Djunit.jar=$(java-pkg_getjars junit)" |
81 |
- #no support for installing two sets of javadocs via dojavadoc atm |
82 |
- #use doc && antflags="${antflags} tf.javadoc" |
83 |
- fi |
84 |
- eant jar $(use_doc) ${antflags} |
85 |
-} |
86 |
- |
87 |
-src_test() { |
88 |
- if [[ "${ARCH}" = "ppc" ]]; then |
89 |
- einfo "Tests are disabled on ppc" |
90 |
- else |
91 |
- ANT_TASKS="ant-junit" eant testjar -Djunit.jar="$(java-pkg_getjars junit)" |
92 |
- fi |
93 |
-} |
94 |
- |
95 |
-src_install() { |
96 |
- java-pkg_newjar build/${P}.jar ${PN}.jar |
97 |
- use test-framework && \ |
98 |
- java-pkg_newjar build/${PN}-testframework-${PV}.jar \ |
99 |
- ${PN}-testframework.jar |
100 |
- |
101 |
- dodoc README.txt |
102 |
- java-pkg_dohtml *.html || die |
103 |
- if use doc; then |
104 |
- java-pkg_dojavadoc build/docs/apidocs |
105 |
- #use test-framework && java-pkg_dojavadoc build/docs/testframework |
106 |
- fi |
107 |
- use source && java-pkg_dosrc src/java/* |
108 |
-} |
109 |
|
110 |
diff --git a/dev-java/commons-collections/files/commons-collections-3.2.1-Java-8.patch b/dev-java/commons-collections/files/commons-collections-3.2.1-Java-8.patch |
111 |
deleted file mode 100644 |
112 |
index 1a5ebe241f7..00000000000 |
113 |
--- a/dev-java/commons-collections/files/commons-collections-3.2.1-Java-8.patch |
114 |
+++ /dev/null |
115 |
@@ -1,160 +0,0 @@ |
116 |
---- a/src/java/org/apache/commons/collections/map/MultiValueMap.java |
117 |
-+++ b/src/java/org/apache/commons/collections/map/MultiValueMap.java |
118 |
-@@ -153,7 +153,7 @@ |
119 |
- * @param value the value to remove |
120 |
- * @return the value removed (which was passed in), null if nothing removed |
121 |
- */ |
122 |
-- public Object remove(Object key, Object value) { |
123 |
-+ public Object removeMapping(Object key, Object value) { |
124 |
- Collection valuesForKey = getCollection(key); |
125 |
- if (valuesForKey == null) { |
126 |
- return null; |
127 |
---- a/src/java/org/apache/commons/collections/MultiHashMap.java |
128 |
-+++ b/src/java/org/apache/commons/collections/MultiHashMap.java |
129 |
-@@ -331,7 +331,7 @@ |
130 |
- * @param item the value to remove |
131 |
- * @return the value removed (which was passed in), null if nothing removed |
132 |
- */ |
133 |
-- public Object remove(Object key, Object item) { |
134 |
-+ public Object removeMapping(Object key, Object item) { |
135 |
- Collection valuesForKey = getCollection(key); |
136 |
- if (valuesForKey == null) { |
137 |
- return null; |
138 |
---- a/src/java/org/apache/commons/collections/MultiMap.java |
139 |
-+++ b/src/java/org/apache/commons/collections/MultiMap.java |
140 |
-@@ -66,7 +66,7 @@ |
141 |
- * @throws ClassCastException if the key or value is of an invalid type |
142 |
- * @throws NullPointerException if the key or value is null and null is invalid |
143 |
- */ |
144 |
-- public Object remove(Object key, Object item); |
145 |
-+ public Object removeMapping(Object key, Object item); |
146 |
- |
147 |
- //----------------------------------------------------------------------- |
148 |
- /** |
149 |
---- a/src/test/org/apache/commons/collections/map/TestMultiValueMap.java |
150 |
-+++ b/src/test/org/apache/commons/collections/map/TestMultiValueMap.java |
151 |
-@@ -160,7 +160,7 @@ |
152 |
- MultiValueMap one = new MultiValueMap(); |
153 |
- Integer value = new Integer(1); |
154 |
- one.put("One", value); |
155 |
-- one.remove("One", value); |
156 |
-+ one.removeMapping("One", value); |
157 |
- |
158 |
- MultiValueMap two = new MultiValueMap(); |
159 |
- assertEquals(two, one); |
160 |
-@@ -186,7 +186,7 @@ |
161 |
- assertEquals(4, map.totalSize()); |
162 |
- map.remove("A"); |
163 |
- assertEquals(3, map.totalSize()); |
164 |
-- map.remove("B", "BC"); |
165 |
-+ map.removeMapping("B", "BC"); |
166 |
- assertEquals(2, map.totalSize()); |
167 |
- } |
168 |
- |
169 |
-@@ -203,7 +203,7 @@ |
170 |
- assertEquals(2, map.size()); |
171 |
- map.remove("A"); |
172 |
- assertEquals(2, map.size()); |
173 |
-- map.remove("B", "BC"); |
174 |
-+ map.removeMapping("B", "BC"); |
175 |
- assertEquals(2, map.size()); |
176 |
- } |
177 |
- |
178 |
-@@ -226,7 +226,7 @@ |
179 |
- map.remove("A"); |
180 |
- assertEquals(0, map.size("A")); |
181 |
- assertEquals(3, map.size("B")); |
182 |
-- map.remove("B", "BC"); |
183 |
-+ map.removeMapping("B", "BC"); |
184 |
- assertEquals(0, map.size("A")); |
185 |
- assertEquals(2, map.size("B")); |
186 |
- } |
187 |
-@@ -327,11 +327,11 @@ |
188 |
- map.put("A", "AA"); |
189 |
- map.put("A", "AB"); |
190 |
- map.put("A", "AC"); |
191 |
-- assertEquals(null, map.remove("C", "CA")); |
192 |
-- assertEquals(null, map.remove("A", "AD")); |
193 |
-- assertEquals("AC", map.remove("A", "AC")); |
194 |
-- assertEquals("AB", map.remove("A", "AB")); |
195 |
-- assertEquals("AA", map.remove("A", "AA")); |
196 |
-+ assertEquals(null, map.removeMapping("C", "CA")); |
197 |
-+ assertEquals(null, map.removeMapping("A", "AD")); |
198 |
-+ assertEquals("AC", map.removeMapping("A", "AC")); |
199 |
-+ assertEquals("AB", map.removeMapping("A", "AB")); |
200 |
-+ assertEquals("AA", map.removeMapping("A", "AA")); |
201 |
- assertEquals(new MultiValueMap(), map); |
202 |
- } |
203 |
- |
204 |
---- a/src/test/org/apache/commons/collections/TestMultiHashMap.java |
205 |
-+++ b/src/test/org/apache/commons/collections/TestMultiHashMap.java |
206 |
-@@ -217,7 +217,7 @@ |
207 |
- MultiHashMap one = new MultiHashMap(); |
208 |
- Integer value = new Integer(1); |
209 |
- one.put("One", value); |
210 |
-- one.remove("One", value); |
211 |
-+ one.removeMapping("One", value); |
212 |
- |
213 |
- MultiHashMap two = new MultiHashMap(); |
214 |
- assertEquals(two, one); |
215 |
-@@ -269,7 +269,7 @@ |
216 |
- assertEquals(4, map.totalSize()); |
217 |
- map.remove("A"); |
218 |
- assertEquals(3, map.totalSize()); |
219 |
-- map.remove("B", "BC"); |
220 |
-+ map.removeMapping("B", "BC"); |
221 |
- assertEquals(2, map.totalSize()); |
222 |
- } |
223 |
- |
224 |
-@@ -292,7 +292,7 @@ |
225 |
- map.remove("A"); |
226 |
- assertEquals(0, map.size("A")); |
227 |
- assertEquals(3, map.size("B")); |
228 |
-- map.remove("B", "BC"); |
229 |
-+ map.removeMapping("B", "BC"); |
230 |
- assertEquals(0, map.size("A")); |
231 |
- assertEquals(2, map.size("B")); |
232 |
- } |
233 |
-@@ -464,11 +464,11 @@ |
234 |
- map.put("A", "AA"); |
235 |
- map.put("A", "AB"); |
236 |
- map.put("A", "AC"); |
237 |
-- assertEquals(null, map.remove("C", "CA")); |
238 |
-- assertEquals(null, map.remove("A", "AD")); |
239 |
-- assertEquals("AC", map.remove("A", "AC")); |
240 |
-- assertEquals("AB", map.remove("A", "AB")); |
241 |
-- assertEquals("AA", map.remove("A", "AA")); |
242 |
-+ assertEquals(null, map.removeMapping("C", "CA")); |
243 |
-+ assertEquals(null, map.removeMapping("A", "AD")); |
244 |
-+ assertEquals("AC", map.removeMapping("A", "AC")); |
245 |
-+ assertEquals("AB", map.removeMapping("A", "AB")); |
246 |
-+ assertEquals("AA", map.removeMapping("A", "AA")); |
247 |
- assertEquals(new MultiHashMap(), map); |
248 |
- } |
249 |
- |
250 |
---- a/src/java/org/apache/commons/collections/map/MultiKeyMap.java |
251 |
-+++ b/src/java/org/apache/commons/collections/map/MultiKeyMap.java |
252 |
-@@ -197,7 +197,7 @@ |
253 |
- * @param key2 the second key |
254 |
- * @return the value mapped to the removed key, null if key not in map |
255 |
- */ |
256 |
-- public Object remove(Object key1, Object key2) { |
257 |
-+ public Object removeMultiKey(Object key1, Object key2) { |
258 |
- int hashCode = hash(key1, key2); |
259 |
- int index = map.hashIndex(hashCode, map.data.length); |
260 |
- AbstractHashedMap.HashEntry entry = map.data[index]; |
261 |
---- a/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java |
262 |
-+++ b/src/test/org/apache/commons/collections/map/TestMultiKeyMap.java |
263 |
-@@ -315,10 +315,10 @@ |
264 |
- switch (key.size()) { |
265 |
- case 2: |
266 |
- assertEquals(true, multimap.containsKey(key.getKey(0), key.getKey(1))); |
267 |
-- assertEquals(value, multimap.remove(key.getKey(0), key.getKey(1))); |
268 |
-+ assertEquals(value, multimap.removeMultiKey(key.getKey(0), key.getKey(1))); |
269 |
- assertEquals(false, multimap.containsKey(key.getKey(0), key.getKey(1))); |
270 |
- assertEquals(size - 1, multimap.size()); |
271 |
-- assertEquals(null, multimap.remove(key.getKey(0), key.getKey(1))); |
272 |
-+ assertEquals(null, multimap.removeMultiKey(key.getKey(0), key.getKey(1))); |
273 |
- assertEquals(false, multimap.containsKey(key.getKey(0), key.getKey(1))); |
274 |
- break; |
275 |
- case 3: |
276 |
|
277 |
diff --git a/dev-java/commons-collections/metadata.xml b/dev-java/commons-collections/metadata.xml |
278 |
index 3e4d58fc9fa..37998bf4074 100644 |
279 |
--- a/dev-java/commons-collections/metadata.xml |
280 |
+++ b/dev-java/commons-collections/metadata.xml |
281 |
@@ -5,7 +5,4 @@ |
282 |
<email>java@g.o</email> |
283 |
<name>Java</name> |
284 |
</maintainer> |
285 |
- <use> |
286 |
- <flag name="test-framework">Install the test framework</flag> |
287 |
- </use> |
288 |
</pkgmetadata> |