diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2024-03-27 15:17:16 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2024-04-15 11:42:29 +0200 |
commit | 5fd608ca1e9938bd1b77826372e2aae4b6fe5f8a (patch) | |
tree | f7ecd0fd9562f9f4fb94ce84179caf5d4e31471e /dev-java | |
parent | dev-libs/libp11: adjust blockers (diff) | |
download | gentoo-5fd608ca1e9938bd1b77826372e2aae4b6fe5f8a.tar.gz gentoo-5fd608ca1e9938bd1b77826372e2aae4b6fe5f8a.tar.bz2 gentoo-5fd608ca1e9938bd1b77826372e2aae4b6fe5f8a.zip |
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>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-dropSecurityManager.patch | 14 | ||||
-rw-r--r-- | dev-java/jakarta-xml-soap-api/jakarta-xml-soap-api-1.4.2-r2.ebuild (renamed from dev-java/jakarta-xml-soap-api/jakarta-xml-soap-api-1.4.2-r1.ebuild) | 13 |
2 files changed, 22 insertions, 5 deletions
diff --git a/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-dropSecurityManager.patch b/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-dropSecurityManager.patch new file mode 100644 index 000000000000..a94489044d7f --- /dev/null +++ b/dev-java/jakarta-xml-soap-api/files/jakarta-xml-soap-api-1.4.2-dropSecurityManager.patch @@ -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 { diff --git a/dev-java/jakarta-xml-soap-api/jakarta-xml-soap-api-1.4.2-r1.ebuild b/dev-java/jakarta-xml-soap-api/jakarta-xml-soap-api-1.4.2-r2.ebuild index 3186460aa436..fc7c2c78bdec 100644 --- a/dev-java/jakarta-xml-soap-api/jakarta-xml-soap-api-1.4.2-r1.ebuild +++ b/dev-java/jakarta-xml-soap-api/jakarta-xml-soap-api-1.4.2-r2.ebuild @@ -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 } |