1 |
commit: 2c236b0c9798758d411f2a447d737d5f1fae9850 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Thu Dec 30 09:30:18 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 31 09:31:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c236b0c |
7 |
|
8 |
dev-java/commons-beanutils: EAPI 8 |
9 |
|
10 |
Also excludes one more test |
11 |
Closes: https://bugs.gentoo.org/823824 |
12 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
13 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
14 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
15 |
|
16 |
.../commons-beanutils-1.9.4-r1.ebuild | 101 +++++++++++++++++++++ |
17 |
1 file changed, 101 insertions(+) |
18 |
|
19 |
diff --git a/dev-java/commons-beanutils/commons-beanutils-1.9.4-r1.ebuild b/dev-java/commons-beanutils/commons-beanutils-1.9.4-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000000..b7f3e06ece9c |
22 |
--- /dev/null |
23 |
+++ b/dev-java/commons-beanutils/commons-beanutils-1.9.4-r1.ebuild |
24 |
@@ -0,0 +1,101 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+# Skeleton command: |
29 |
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri mirror://apache/commons/beanutils/source/1.9.4-src.tar.gz --slot 1.7 --keywords "~amd64 ~x86 ~ppc64 ~amd64-linux ~x86-linux ~x64-macos" --ebuild commons-beanutils-1.9.4.ebuild |
30 |
+ |
31 |
+EAPI=8 |
32 |
+ |
33 |
+JAVA_PKG_IUSE="doc source test" |
34 |
+MAVEN_ID="commons-beanutils:commons-beanutils:1.9.4" |
35 |
+JAVA_TESTING_FRAMEWORKS="junit-4" |
36 |
+ |
37 |
+inherit java-pkg-2 java-pkg-simple |
38 |
+ |
39 |
+DESCRIPTION="Provides easy-to-use wrappers around Reflection and Introspection APIs" |
40 |
+HOMEPAGE="https://commons.apache.org/proper/commons-beanutils/" |
41 |
+SRC_URI="mirror://apache/commons/beanutils/source/${P}-src.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0" |
44 |
+SLOT="1.7" |
45 |
+KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" |
46 |
+ |
47 |
+# Common dependencies |
48 |
+# POM: pom.xml |
49 |
+# commons-collections:commons-collections:3.2.2 -> >=dev-java/commons-collections-3.2.2:0 |
50 |
+# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0 |
51 |
+ |
52 |
+CP_DEPEND=" |
53 |
+ dev-java/commons-collections:0 |
54 |
+ dev-java/commons-logging:0 |
55 |
+" |
56 |
+ |
57 |
+# Compile dependencies |
58 |
+# POM: pom.xml |
59 |
+# test? commons-collections:commons-collections-testframework:3.2.1 -> !!!artifactId-not-found!!! |
60 |
+# test? junit:junit:4.12 -> >=dev-java/junit-4.12:4 |
61 |
+ |
62 |
+DEPEND="${CP_DEPEND} |
63 |
+ >=virtual/jdk-1.8:* |
64 |
+ test? ( |
65 |
+ dev-java/commons-collections:0[test] |
66 |
+ )" |
67 |
+ |
68 |
+RDEPEND="${CP_DEPEND} |
69 |
+ >=virtual/jre-1.8:*" |
70 |
+ |
71 |
+DOCS=( {CONTRIBUTING,README}.md {LICENSE,NOTICE,RELEASE-NOTES}.txt ) |
72 |
+ |
73 |
+S="${WORKDIR}/${P}-src" |
74 |
+ |
75 |
+JAVA_ENCODING="iso-8859-1" |
76 |
+ |
77 |
+JAVA_SRC_DIR="src/main/java" |
78 |
+ |
79 |
+JAVA_TEST_GENTOO_CLASSPATH="commons-collections,junit-4" |
80 |
+JAVA_TEST_SRC_DIR="src/test/java" |
81 |
+ |
82 |
+JAVA_TEST_EXCLUDES=( |
83 |
+ # Upstream: Tests run: 1293, Failures: 0, Errors: 0, Skipped: 3 |
84 |
+ "org.apache.commons.beanutils.TestBeanPublicSubclass" # Invalid test class |
85 |
+ "org.apache.commons.beanutils.TestBeanPackageSubclass" # Invalid test class |
86 |
+ "org.apache.commons.beanutils.TestResultSetMetaData" # Invalid test class |
87 |
+ "org.apache.commons.beanutils.TestResultSet" # Test class can only have one constructor |
88 |
+ "org.apache.commons.beanutils.TestBean" # Test class can only have one constructor |
89 |
+ # https://github.com/apache/commons-beanutils/blob/32ceb2c92512d44f97638805e2f3fd9d70dfcfc6/pom.xml#L378-L383 |
90 |
+ # <!-- This test case is known to fail, and there isn't any proposed fix |
91 |
+ # - so we will just exclude it until someone comes up with a solution. |
92 |
+ # --> |
93 |
+ "org.apache.commons.beanutils.converters.MemoryTestCase" |
94 |
+) |
95 |
+ |
96 |
+src_test() { |
97 |
+ # There were 8 failures: |
98 |
+ # 1) testPropertyUtilsBean_descriptorsCache_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase) |
99 |
+ # java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects |
100 |
+ # 2) testPropertyUtilsBean_mappedDescriptorsCache_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase) |
101 |
+ # java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects |
102 |
+ # 3) testMappedPropertyDescriptor_MappedMethodReference1(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase) |
103 |
+ # java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects |
104 |
+ # 4) testMappedPropertyDescriptor_MappedMethodReference2(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase) |
105 |
+ # java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects |
106 |
+ # 5) testLocaleConvertUtilsBean_converters_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase) |
107 |
+ # java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects |
108 |
+ # 6) testWrapDynaClass_dynaClasses_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase) |
109 |
+ # java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects |
110 |
+ # 7) testMethodUtils_cache_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase) |
111 |
+ # java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects |
112 |
+ # 8) testConvertUtilsBean_converters_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase) |
113 |
+ # java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects |
114 |
+ local vm_version="$(java-config -g PROVIDES_VERSION)" |
115 |
+ if [[ "${vm_version}" == "11" ]] ; then |
116 |
+ JAVA_TEST_EXCLUDES+=( "org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase" ) |
117 |
+ fi |
118 |
+ |
119 |
+ java-pkg-simple_src_test |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ default # https://bugs.gentoo.org/789582 |
124 |
+ java-pkg-simple_src_install |
125 |
+} |