1
Fork 0

dev-java/jakarta-xml-soap-api: drop SecurityManager

Closes: https://bugs.gentoo.org/923606
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/35946
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki 2024-03-27 15:17:16 +01:00 committed by Miroslav Šulc
parent 32e186395f
commit 5fd608ca1e
No known key found for this signature in database
GPG Key ID: 65D0F770B26B469C
2 changed files with 22 additions and 5 deletions

View File

@ -0,0 +1,14 @@
bug #923606
--- a/api/src/test/java/javax/xml/soap/test/SAAJFactoryTest.java
+++ b/api/src/test/java/javax/xml/soap/test/SAAJFactoryTest.java
@@ -165,9 +165,7 @@ public class SAAJFactoryTest {
}
private void enableSM() {
- System.setSecurityManager(null);
- System.setProperty("java.security.policy", classesDir + "javax/xml/soap/test.policy");
- System.setSecurityManager(new SecurityManager());
+ // no-op
}
protected MessageFactory factory() throws Throwable {

View File

@ -1,4 +1,4 @@
# Copyright 2022-2023 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -12,6 +12,7 @@ inherit java-pkg-2 java-pkg-simple
DESCRIPTION="SOAP with Attachments API for Java (SAAJ) API (Eclipse Project for JAX-WS)"
HOMEPAGE="https://projects.eclipse.org/projects/ee4j.jaxws"
SRC_URI="https://github.com/jakartaee/saaj-api/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/saaj-api-${PV}"
# EDL-1.0 equivalent to BSD
# - 'SPDX-License-Identifier: BSD-3-Clause' in source files' headers
@ -35,7 +36,9 @@ RDEPEND="
${CP_DEPEND}
"
S="${WORKDIR}/saaj-api-${PV}"
PATCHES=(
"${FILESDIR}/jakarta-xml-soap-api-1.4.2-dropSecurityManager.patch"
)
JAVA_SRC_DIR="api/src/main/java"
@ -46,7 +49,7 @@ JAVA_TEST_EXTRA_ARGS=( -Xbootclasspath/a:target/classes )
DOCS=( CONTRIBUTING.md NOTICE.md README.md )
src_install() {
java-pkg-simple_src_install
einstalldocs # https://bugs.gentoo.org/789582
src_prepare() {
default #780585
java-pkg-2_src_prepare
}