From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-logging/
Date: Tue, 21 Mar 2023 06:11:22 +0000 (UTC) [thread overview]
Message-ID: <1679378905.f51fb4fa0861c948556bddb1ebf6cfaf9b4579be.fordfrog@gentoo> (raw)
commit: f51fb4fa0861c948556bddb1ebf6cfaf9b4579be
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Mar 20 11:20:07 2023 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Tue Mar 21 06:08:25 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f51fb4fa
dev-java/commons-logging: add 1.3.0_pre20230319, drop 1.3.0_pre20230317
- enables tests except log4j tests
- also installs commons-logging-api.jar
and commons-logging-adapters.jar
Closes: https://bugs.gentoo.org/902121
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/30255
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
dev-java/commons-logging/Manifest | 2 +-
...ld => commons-logging-1.3.0_pre20230319.ebuild} | 60 ++++++++++++++--------
dev-java/commons-logging/metadata.xml | 1 +
3 files changed, 42 insertions(+), 21 deletions(-)
diff --git a/dev-java/commons-logging/Manifest b/dev-java/commons-logging/Manifest
index caa33d505a88..3ae886c05c09 100644
--- a/dev-java/commons-logging/Manifest
+++ b/dev-java/commons-logging/Manifest
@@ -1,2 +1,2 @@
DIST commons-logging-1.2-src.tar.gz 188536 BLAKE2B 80613b78619f7b3429f60df4fb9b66dd4836e8b89fcf93a3a1bcd5cb7e410d474be010da16b325143e028a40ff4dd971753962c9d9145f85b1738f5dda13ba99 SHA512 9f3761184950f2f13e85d8bc447709ab8be631dfd231b4f053f8147468db1bf71fb116ddba95e39f4afc4cf28c742e07d40c7a637f28004a60dc13935f9609f9
-DIST commons-logging-1.3.0_pre20230317.tar.gz 184981 BLAKE2B 00d171a8345907dc2686d1eff1130b7fd1ef653c8f2a7c6b5e45e6522f3d195ba695d93371add97a2d459451e3757ef9ec21f483f0cd37a6bcbb98e76e1b446f SHA512 737058214bfa86c11c2d7b450132a15824652c80ffae6208c3a8fc2386e7b2c7c61b39fd2b75008373f611e4bbed26e851f98f910d3e6f33df4f85f35c0a5462
+DIST commons-logging-1.3.0_pre20230319.tar.gz 184984 BLAKE2B 01b46bdb657dfaf3ffb55b3440b416d61a419a3358e4d240cc7e25794f38e0061e14ee77e5578aedf1b50006d6ec65016c9e837bd13c4dab9a2182604fe85c72 SHA512 b586be5dd891572aa55c3066c3fb7d57ba5f31c0bfaa768b80cd8c1c5c659a8c718b4cb42e6c65332b52f073462432c0f81e4aaf1535afb781da9a7884cdc07e
diff --git a/dev-java/commons-logging/commons-logging-1.3.0_pre20230317.ebuild b/dev-java/commons-logging/commons-logging-1.3.0_pre20230319.ebuild
similarity index 57%
rename from dev-java/commons-logging/commons-logging-1.3.0_pre20230317.ebuild
rename to dev-java/commons-logging/commons-logging-1.3.0_pre20230319.ebuild
index 3fb433092d18..548d30669d48 100644
--- a/dev-java/commons-logging/commons-logging-1.3.0_pre20230317.ebuild
+++ b/dev-java/commons-logging/commons-logging-1.3.0_pre20230319.ebuild
@@ -5,14 +5,13 @@ EAPI=8
JAVA_PKG_IUSE="doc source test"
MAVEN_ID="commons-logging:commons-logging:1.3.0"
-# Not yet supported, see https://bugs.gentoo.org/839681
-# JAVA_TESTING_FRAMEWORKS="junit-vintage"
+JAVA_TESTING_FRAMEWORKS="junit-4"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Thin adapter allowing configurable bridging to other well known logging systems"
HOMEPAGE="https://commons.apache.org/proper/commons-logging/"
-MY_COMMIT="058cf5ee350cd83d1ab28b000ad6be903ca160c5"
+MY_COMMIT="d376d3128663e53de4af948e161291e7ec0c6ec1"
SRC_URI="https://github.com/apache/${PN}/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
@@ -52,7 +51,6 @@ src_prepare() {
if use !log4j; then
rm src/main/java/org/apache/commons/logging/impl/Log4JLogger.java || die
- rm -r src/test/java/org/apache/commons/logging/log4j || die
fi
}
@@ -84,19 +82,41 @@ src_compile() {
popd > /dev/null || die
}
-# https://github.com/apache/commons-logging/blob/058cf5ee350cd83d1ab28b000ad6be903ca160c5/pom.xml#L396-L407
-# src_test() {
-# JAVA_TEST_EXTRA_ARGS=(
-# -Dtestclasses="commons-logging-tests.jar"
-# -Dcommons-logging="commons-logging.jar"
-# -Dcommons-logging-api="commons-logging-api.jar"
-# -Dcommons-logging-adapters="commons-logging-adapters.jar"
-# )
-# JAVA_TEST_RESOURCE_DIRS="src/test/resources"
-# JAVA_TEST_SRC_DIR="src/test/java"
-# if use log4j; then
-# JAVA_TEST_EXTRA_ARGS+=" -Dlog4j12=$(java-pkg_getjars log4j-12-api-2,log4j-core-2)"
-# fi
-# JAVA_TEST_EXTRA_ARGS+=" -Dservlet-api=$(java-pkg_getjars javax-servlet-api-2.5)"
-# java-pkg-simple_src_test
-# }
+https://github.com/apache/commons-logging/blob/058cf5ee350cd83d1ab28b000ad6be903ca160c5/pom.xml#L396-L407
+src_test() {
+ # Do not run Log4j tests because these tests use an Appender to verify
+ # logging correctness. The log4j-12-api bridge no longer supports using an
+ # Appender for verifications since the methods for adding an Appender in
+ # the bridge "are largely no-ops". This means an Appender's state would
+ # never be changed by log4j-12-api after new messages are logged. The test
+ # cases, however, expect changes to the Appender's state in such an event,
+ # so they would fail with log4j-12-api.
+ # https://logging.apache.org/log4j/log4j-2.8/log4j-1.2-api/index.html
+ rm src/test/java/org/apache/commons/logging/pathable/ParentFirstTestCase.java || die # Log4JLogger
+ rm src/test/java/org/apache/commons/logging/pathable/ChildFirstTestCase.java || die # Log4JLogger
+ rm -r src/test/java/org/apache/commons/logging/log4j || die
+
+ JAVA_TEST_EXCLUDES=(
+ org.apache.commons.logging.security.SecurityForbiddenTestCase # 2 tests 1 failing
+ org.apache.commons.logging.jdk14.TestHandler # No runnable methods
+ )
+ JAVA_TEST_EXTRA_ARGS=(
+ -Dservlet-api="$(java-pkg_getjars javax-servlet-api-2.5)"
+ -Dcommons-logging="commons-logging.jar"
+ -Dcommons-logging-api="commons-logging-api.jar"
+ -Dcommons-logging-adapters="commons-logging-adapters.jar"
+ -Dtestclasses="target/test-classes"
+ )
+ if use log4j; then
+ JAVA_TEST_EXTRA_ARGS+=" -Dlog4j12=$(java-pkg_getjars log4j-12-api-2,log4j-core-2)"
+ fi
+ JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+ JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+ JAVA_TEST_SRC_DIR="src/test/java"
+ java-pkg-simple_src_test
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ java-pkg_dojar commons-logging-api.jar commons-logging-adapters.jar
+}
diff --git a/dev-java/commons-logging/metadata.xml b/dev-java/commons-logging/metadata.xml
index c3b68538712d..6d5d06dd2376 100644
--- a/dev-java/commons-logging/metadata.xml
+++ b/dev-java/commons-logging/metadata.xml
@@ -7,6 +7,7 @@
</maintainer>
<upstream>
<bugs-to>https://issues.apache.org/jira/projects/LOGGING/issues/</bugs-to>
+ <doc>https://commons.apache.org/proper/commons-logging/guide.html</doc>
<remote-id type="github">apache/commons-logging</remote-id>
</upstream>
<use>
next reply other threads:[~2023-03-21 6:11 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 6:11 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-30 19:41 [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-logging/ Florian Schmaus
2024-12-23 23:47 Jakov Smolić
2024-11-15 22:13 Sam James
2024-10-17 9:05 Miroslav Šulc
2024-10-16 9:39 Miroslav Šulc
2024-05-20 7:50 Miroslav Šulc
2024-05-19 17:40 Arthur Zamarin
2024-05-18 3:51 Sam James
2024-05-18 3:19 Sam James
2024-05-18 3:19 Sam James
2024-04-18 10:56 Miroslav Šulc
2023-04-20 5:01 Sam James
2023-04-20 5:01 Sam James
2023-04-20 4:14 Arthur Zamarin
2023-04-20 4:02 Sam James
2023-03-21 9:06 Sven Wegener
2023-03-19 6:20 Miroslav Šulc
2022-10-14 17:41 Miroslav Šulc
2022-03-31 18:58 Arthur Zamarin
2022-03-31 16:47 Arthur Zamarin
2022-03-30 11:47 Agostino Sarubbo
2022-03-30 11:09 Jakov Smolić
2022-03-30 11:09 Jakov Smolić
2022-02-26 11:53 Arthur Zamarin
2022-02-26 8:52 Miroslav Šulc
2022-02-25 18:53 Arthur Zamarin
2022-02-24 9:47 Miroslav Šulc
2022-01-27 8:17 Miroslav Šulc
2021-05-16 18:58 Sam James
2021-05-09 10:02 Miroslav Šulc
2021-05-09 9:17 Agostino Sarubbo
2021-05-06 7:22 Sergei Trofimovich
2021-05-01 18:19 Agostino Sarubbo
2021-04-25 9:18 Sergei Trofimovich
2021-04-21 10:00 Miroslav Šulc
2021-04-21 10:00 Miroslav Šulc
2021-04-21 10:00 Miroslav Šulc
2021-04-19 17:57 Miroslav Šulc
2018-04-14 21:04 Patrice Clement
2018-02-16 22:35 Patrice Clement
2018-02-16 10:27 Patrice Clement
2017-08-28 22:01 James Le Cuirot
2017-08-28 22:01 James Le Cuirot
2017-07-13 12:13 Alexis Ballier
2017-02-24 0:34 Michael Weber
2016-04-26 21:47 James Le Cuirot
2015-08-30 19:34 Patrice Clement
2015-08-30 19:34 Patrice Clement
2015-08-26 14:17 Mikle Kolyada
2015-08-16 20:52 Mikle Kolyada
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=1679378905.f51fb4fa0861c948556bddb1ebf6cfaf9b4579be.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