public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-beanutils/
Date: Fri, 31 Dec 2021 09:31:56 +0000 (UTC)	[thread overview]
Message-ID: <1640943107.2c236b0c9798758d411f2a447d737d5f1fae9850.fordfrog@gentoo> (raw)

commit:     2c236b0c9798758d411f2a447d737d5f1fae9850
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Thu Dec 30 09:30:18 2021 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Fri Dec 31 09:31:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c236b0c

dev-java/commons-beanutils: EAPI 8

Also excludes one more test
Closes: https://bugs.gentoo.org/823824
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 .../commons-beanutils-1.9.4-r1.ebuild              | 101 +++++++++++++++++++++
 1 file changed, 101 insertions(+)

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
new file mode 100644
index 000000000000..b7f3e06ece9c
--- /dev/null
+++ b/dev-java/commons-beanutils/commons-beanutils-1.9.4-r1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# 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
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="commons-beanutils:commons-beanutils:1.9.4"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Provides easy-to-use wrappers around Reflection and Introspection APIs"
+HOMEPAGE="https://commons.apache.org/proper/commons-beanutils/"
+SRC_URI="mirror://apache/commons/beanutils/source/${P}-src.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="1.7"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+
+# Common dependencies
+# POM: pom.xml
+# commons-collections:commons-collections:3.2.2 -> >=dev-java/commons-collections-3.2.2:0
+# commons-logging:commons-logging:1.2 -> >=dev-java/commons-logging-1.2:0
+
+CP_DEPEND="
+	dev-java/commons-collections:0
+	dev-java/commons-logging:0
+"
+
+# Compile dependencies
+# POM: pom.xml
+# test? commons-collections:commons-collections-testframework:3.2.1 -> !!!artifactId-not-found!!!
+# test? junit:junit:4.12 -> >=dev-java/junit-4.12:4
+
+DEPEND="${CP_DEPEND}
+	>=virtual/jdk-1.8:*
+	test? (
+		dev-java/commons-collections:0[test]
+	)"
+
+RDEPEND="${CP_DEPEND}
+	>=virtual/jre-1.8:*"
+
+DOCS=( {CONTRIBUTING,README}.md {LICENSE,NOTICE,RELEASE-NOTES}.txt )
+
+S="${WORKDIR}/${P}-src"
+
+JAVA_ENCODING="iso-8859-1"
+
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="commons-collections,junit-4"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+JAVA_TEST_EXCLUDES=(
+	# Upstream: Tests run: 1293, Failures: 0, Errors: 0, Skipped: 3
+	"org.apache.commons.beanutils.TestBeanPublicSubclass"	# Invalid test class
+	"org.apache.commons.beanutils.TestBeanPackageSubclass"	# Invalid test class
+	"org.apache.commons.beanutils.TestResultSetMetaData"	# Invalid test class
+	"org.apache.commons.beanutils.TestResultSet"	# Test class can only have one constructor
+	"org.apache.commons.beanutils.TestBean"	# Test class can only have one constructor
+	# https://github.com/apache/commons-beanutils/blob/32ceb2c92512d44f97638805e2f3fd9d70dfcfc6/pom.xml#L378-L383
+	#                 <!-- This test case is known to fail, and there isn't any proposed fix
+	#                   -  so we will just exclude it until someone comes up with a solution.
+	#                 -->
+	"org.apache.commons.beanutils.converters.MemoryTestCase"
+)
+
+src_test() {
+	# There were 8 failures:
+	# 1) testPropertyUtilsBean_descriptorsCache_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase)
+	# java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
+	# 2) testPropertyUtilsBean_mappedDescriptorsCache_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase)
+	# java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
+	# 3) testMappedPropertyDescriptor_MappedMethodReference1(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase)
+	# java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
+	# 4) testMappedPropertyDescriptor_MappedMethodReference2(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase)
+	# java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
+	# 5) testLocaleConvertUtilsBean_converters_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase)
+	# java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
+	# 6) testWrapDynaClass_dynaClasses_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase)
+	# java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
+	# 7) testMethodUtils_cache_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase)
+	# java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
+	# 8) testConvertUtilsBean_converters_memoryLeak(org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase)
+	# java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
+	local vm_version="$(java-config -g PROVIDES_VERSION)"
+	if [[ "${vm_version}" == "11" ]] ; then
+		JAVA_TEST_EXCLUDES+=( "org.apache.commons.beanutils.memoryleaktests.MemoryLeakTestCase" )
+	fi
+
+	java-pkg-simple_src_test
+}
+
+src_install() {
+	default # https://bugs.gentoo.org/789582
+	java-pkg-simple_src_install
+}


             reply	other threads:[~2021-12-31  9:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-31  9:31 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-03-15 18:43 [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-beanutils/ Sam James
2022-03-15 17:35 Sam James
2022-03-15 17:32 Sam James
2022-01-30  8:30 Miroslav Šulc
2022-01-30  8:05 Agostino Sarubbo
2022-01-30  8:04 Agostino Sarubbo
2022-01-30  8:02 Agostino Sarubbo
2022-01-02  8:39 Miroslav Šulc
2021-04-27 11:30 Miroslav Šulc
2021-04-27  6:09 Miroslav Šulc
2018-03-01  8:39 Michał Górny
2015-09-03 13:34 Patrice Clement
2015-09-03 13:34 Patrice Clement
2015-09-03 13:34 Patrice Clement
2015-08-26  7:28 Agostino Sarubbo
2015-08-25  6:54 Agostino Sarubbo
2015-08-25  6:53 Agostino Sarubbo
2015-08-21  9:42 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1640943107.2c236b0c9798758d411f2a447d737d5f1fae9850.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox