Skip to content

Commit

Permalink
dev-java/jaxb-api: 2.3.3-r2 drop SecurityManager
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/916476
Signed-off-by: Volkmar W. Pogatzki <[email protected]>
Signed-off-by: Miroslav Šulc <[email protected]>
  • Loading branch information
vaukai authored and fordfrog committed Mar 26, 2024
1 parent 5c0edc7 commit ebc4c3a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
10 changes: 10 additions & 0 deletions dev-java/jaxb-api/files/jaxb-api-2.3.3-dropSecurityManager.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/jaxb-api-test/src/test/java/javax/xml/bind/test/JAXBContextTest.java
+++ b/jaxb-api-test/src/test/java/javax/xml/bind/test/JAXBContextTest.java
@@ -265,7 +265,6 @@ public class JAXBContextTest {
private void enableSM() {
System.setSecurityManager(null);
System.setProperty("java.security.policy", classesDir + "javax/xml/bind/test.policy");
- System.setSecurityManager(new SecurityManager());
}

private void cleanResource(Path resource) {
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Skeleton command:
Expand Down Expand Up @@ -31,18 +31,23 @@ DEPEND="${CDEPEND}
RDEPEND="${CDEPEND}
>=virtual/jre-1.8:*"

DOCS=( ../{LICENSE,NOTICE,README}.md )

DOCS=( {LICENSE,NOTICE,README}.md )
PATCHES=( "${FILESDIR}/jaxb-api-2.3.3-dropSecurityManager.patch" )
S="${WORKDIR}/${P}/${PN}"

JAVA_GENTOO_CLASSPATH="jakarta-activation-api-1"
JAVA_GENTOO_CLASSPATH_EXTRA="jaxb-api.jar"
JAVA_SRC_DIR="src/main/java"
JAVA_RESOURCE_DIRS="src/main/resources"
JAVA_RESOURCE_DIRS="${PN}/src/main/resources"
JAVA_SRC_DIR="${PN}/src/main/java"

JAVA_TEST_GENTOO_CLASSPATH="junit-4"
JAVA_TEST_SRC_DIR="../${PN}-test/src/test/java"
JAVA_TEST_RESOURCE_DIRS="../${PN}-test/src/test/resources"
JAVA_TEST_RESOURCE_DIRS="${PN}-test/src/test/resources"
JAVA_TEST_SRC_DIR="${PN}-test/src/test/java"

src_prepare() {
default #780585
java-pkg-2_src_prepare
}

src_install() {
default
Expand Down

0 comments on commit ebc4c3a

Please sign in to comment.