Skip to content

Commit

Permalink
dev-java/jakarta-xml-soap-api: drop SecurityManager
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/923606
Signed-off-by: Volkmar W. Pogatzki <[email protected]>
Closes: gentoo#35946
Signed-off-by: Miroslav Šulc <[email protected]>
  • Loading branch information
vaukai authored and fordfrog committed Apr 15, 2024
1 parent 32e1863 commit 5fd608c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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"

Expand All @@ -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
}

0 comments on commit 5fd608c

Please sign in to comment.