summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-03-30 14:31:35 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2024-03-31 10:34:09 +0200
commit19044499c1713343ba4da6e881304cc2e9b2d53a (patch)
treef233538bb9d7af996e4f29a7a1952c58990acbc5
parentdev-java/commons-beanutils: fix test failures (diff)
downloadgentoo-19044499c1713343ba4da6e881304cc2e9b2d53a.tar.gz
gentoo-19044499c1713343ba4da6e881304cc2e9b2d53a.tar.bz2
gentoo-19044499c1713343ba4da6e881304cc2e9b2d53a.zip
dev-java/velocity: drop SecurityManager
Closes: https://bugs.gentoo.org/923612 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r--dev-java/velocity/files/velocity-2.3-skipSecurityManager.patch11
-rw-r--r--dev-java/velocity/velocity-2.3.ebuild6
2 files changed, 15 insertions, 2 deletions
diff --git a/dev-java/velocity/files/velocity-2.3-skipSecurityManager.patch b/dev-java/velocity/files/velocity-2.3-skipSecurityManager.patch
new file mode 100644
index 000000000000..3375bce00eac
--- /dev/null
+++ b/dev-java/velocity/files/velocity-2.3-skipSecurityManager.patch
@@ -0,0 +1,11 @@
+bug #923612
+--- a/src/test/java/org/apache/velocity/test/issues/VelTools66TestCase.java
++++ b/src/test/java/org/apache/velocity/test/issues/VelTools66TestCase.java
+@@ -58,7 +58,6 @@ public class VelTools66TestCase
+ Velocity.RUNTIME_LOG_INSTANCE, new TestLogger());
+
+ Velocity.init();
+- System.setSecurityManager(new TestSecurityManager());
+
+ }
+
diff --git a/dev-java/velocity/velocity-2.3.ebuild b/dev-java/velocity/velocity-2.3.ebuild
index 0a414c4fb11f..fd0fb1074e25 100644
--- a/dev-java/velocity/velocity-2.3.ebuild
+++ b/dev-java/velocity/velocity-2.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Skeleton command:
@@ -57,6 +57,7 @@ BDEPEND="
"
S="${WORKDIR}/${PN}-engine-${PV}/${PN}-engine-core"
+PATCHES=( "${FILESDIR}/velocity-2.3-skipSecurityManager.patch" )
JAVA_GENTOO_CLASSPATH="commons-io-1,commons-lang-3.6,slf4j-api"
JAVA_SRC_DIR="src/main/java"
@@ -89,7 +90,8 @@ JAVA_TEST_EXCLUDES=(
)
src_prepare() {
- default
+ default #780585
+ java-pkg-2_src_prepare
cp -v "${JAVA_SRC_DIR}-templates/org/apache/velocity/runtime/VelocityEngineVersion.java" \
"${JAVA_SRC_DIR}/org/apache/velocity/runtime/VelocityEngineVersion.java" || die