diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-06-08 12:40:02 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-06-08 12:40:02 +0000 |
| commit | 4fefe95fa32b71d711353ab37cbb7e2f8a002d71 (patch) | |
| tree | 9376801d988a960ee2e34c65f7137680f4b41059 /dev-java | |
| parent | 3d9997e1efa213bf85e56beb2a0ccd53bfff391b (diff) | |
| download | baldeagleos-repo-4fefe95fa32b71d711353ab37cbb7e2f8a002d71.tar.gz baldeagleos-repo-4fefe95fa32b71d711353ab37cbb7e2f8a002d71.tar.xz baldeagleos-repo-4fefe95fa32b71d711353ab37cbb7e2f8a002d71.zip | |
Adding metadata
Diffstat (limited to 'dev-java')
18 files changed, 560 insertions, 6 deletions
diff --git a/dev-java/gnu-jaf/gnu-jaf-1.1.2-r1.ebuild b/dev-java/gnu-jaf/gnu-jaf-1.1.2-r1.ebuild index 6c4ef7d1e74d..6835f9c1d704 100644 --- a/dev-java/gnu-jaf/gnu-jaf-1.1.2-r1.ebuild +++ b/dev-java/gnu-jaf/gnu-jaf-1.1.2-r1.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://gnu/classpathx/activation-${PV}.tar.gz" LICENSE="GPL-2-with-linking-exception" SLOT="1" -KEYWORDS="~amd64 ~ppc64 ~x86" +KEYWORDS="amd64 ppc64 x86" DEPEND=">=virtual/jdk-1.8:*" RDEPEND=">=virtual/jre-1.8:*" diff --git a/dev-java/javahelp/javahelp-2.0.05_p20170719-r1.ebuild b/dev-java/javahelp/javahelp-2.0.05_p20170719-r1.ebuild index bfedce9fba1b..d617465487ec 100644 --- a/dev-java/javahelp/javahelp-2.0.05_p20170719-r1.ebuild +++ b/dev-java/javahelp/javahelp-2.0.05_p20170719-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="https://github.com/javaee/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz LICENSE="GPL-2-with-linking-exception" SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" CDEPEND="java-virtuals/servlet-api:2.4" diff --git a/dev-java/jffi/Manifest b/dev-java/jffi/Manifest index bf473974afc2..46f96ebc4d8b 100644 --- a/dev-java/jffi/Manifest +++ b/dev-java/jffi/Manifest @@ -1,2 +1,3 @@ DIST jffi-1.2.9.tar.gz 1952668 BLAKE2B 320329b02ee9e93153fc334b73a6216da74ac2d924a64c8a1569f1f1507e1196d0b922f7d158ea91f6bc7164979b2ac12de239adbe98664a3708dd29c8d40f96 SHA512 2fd9a95cce9a3406a09856761d1318d4c6b976b1f9b66c7c5b0b5e95d44b19ba654ab8288f396782c7bb53e6d9949e7cfa9c46763f2a0761c6e86f102cd202e4 DIST jffi-1.3.6.tar.gz 3187269 BLAKE2B 87a98c752440e336948923e73e2756cb0f88cbb111775f7fcc176152c60a050dad2b8d312bf0e6cda9e499b06fa64f6eda0659a6635010cb2da6ade4471225b9 SHA512 0259e59daa438572e94737efc126ab631be5f92e9ac2bf2bfdcdf92bcf9709ef930d68250b7fcaee3126a97c705c112d02bdfb0a800e8eb3b3f2fde6381f7a9f +DIST jffi-1.3.9.tar.gz 3193992 BLAKE2B bcd2dba3f9528c293aebb13a8fbd0b2fd7afcbae0cc5fa231f7e8ab190b834adc9e3f40bfc1211d0019a34a9edbaf8810f44b88f3c44b1e3b8065b2b80ccc6dc SHA512 21bf6997c64c0764c1fe86c9ab9b854037241489789f443a3337253ecc95100c94723a57165c85eed7a6c3837b8c04751af4a1fb5873a9c9fcd9a4535b68fc10 diff --git a/dev-java/jffi/files/jffi-1.3.8-GNUmakefile.patch b/dev-java/jffi/files/jffi-1.3.8-GNUmakefile.patch new file mode 100644 index 000000000000..0e42b385e7b7 --- /dev/null +++ b/dev-java/jffi/files/jffi-1.3.8-GNUmakefile.patch @@ -0,0 +1,28 @@ +diff --git a/jni/GNUmakefile b/jni/GNUmakefile +index cfe570a..c8bbb51 100755 +--- a/jni/GNUmakefile ++++ b/jni/GNUmakefile +@@ -278,7 +278,7 @@ debug: + @echo "OBJS=$(OBJS)" + + $(LIBJFFI): $(OBJS) $(LIBFFI_LIBS) +- $(CC) -o $@ $(LDFLAGS) $(SOFLAGS) $(OBJS) $(LIBFFI) $(LIBS) ++ $(CC) -o $@ $(LDFLAGS) $(SOFLAGS) $(OBJS) $(LIBFFI) $(LIBS) $(LIBFFI_LIBS) + $(STRIP) $@ + ifeq ($(OS), darwin) + codesign -s - $@ +@@ -287,10 +287,14 @@ endif + $(BUILD_DIR)/%.o : $(SRC_DIR)/%.c $(wildcard $(JFFI_SRC_DIR)/*.h) + @mkdir -p $(@D) + @$(CCACHE) $(CC) $(CFLAGS) -c $< -o $@ ++ mkdir -p $(@D) ++ $(CCACHE) $(CC) $(CFLAGS) -c $< -o $@ + + $(BUILD_DIR)/%.o : $(SRC_DIR)/%.S $(wildcard $(JFFI_SRC_DIR)/*.h) + @mkdir -p $(@D) + @$(CC) $(CFLAGS) -o $@ -c $< ++ mkdir -p $(@D) ++ $(CC) $(CFLAGS) -o $@ -c $< + + $(OBJS) : $(LIBFFI) + diff --git a/dev-java/jffi/jffi-1.3.9.ebuild b/dev-java/jffi/jffi-1.3.9.ebuild new file mode 100644 index 000000000000..f946f5fb5408 --- /dev/null +++ b/dev-java/jffi/jffi-1.3.9.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/jnr/jffi/archive/jffi-1.3.9.tar.gz --slot 1.3 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild jffi-1.3.9.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.github.jnr:jffi:1.3.9" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java Foreign Function Interface" +HOMEPAGE="https://github.com/jnr/jffi" +SRC_URI="https://github.com/jnr/${PN}/archive/refs/tags/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1.3" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +DEPEND=">=virtual/jdk-1.8:*" +RDEPEND=">=virtual/jre-1.8:*" + +PATCHES=( "${FILESDIR}"/jffi-1.3.8-GNUmakefile.patch ) + +S="${WORKDIR}/${PN}-${P}" + +JAVA_SRC_DIR="src/main/java" + +# https://github.com/jnr/jffi/blob/b6ad5c066a6346072ea04f8ffa8177204aadcb13/build.xml#L26 +JAVA_TEST_EXTRA_ARGS="-Djffi.library.path=${S}/build/jni -Djffi.boot.library.path=${S}/build/jni" +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" + +src_prepare() { + default + cat > src/main/java/com/kenai/jffi/Version.java <<-EOF + package com.kenai.jffi; + import java.lang.annotation.Native; + public final class Version { + private Version() {} + @Native + public static final int MAJOR = $(ver_cut 1); + @Native + public static final int MINOR = $(ver_cut 2); + @Native + public static final int MICRO = $(ver_cut 3); + } + EOF +} + +src_compile() { + java-pkg-simple_src_compile + + # generate headers + mkdir -p build/jni + javac -h build/jni -classpath target/classes \ + ${JAVA_SRC_DIR}/com/kenai/jffi/{Foreign,ObjectBuffer,Version}.java \ + || die + + #build native library. + local args=( + SRC_DIR=jni + JNI_DIR=jni + BUILD_DIR=build/jni + VERSION=$(ver_cut 1-2) + USE_SYSTEM_LIBFFI=1 + CCACHE= + -f jni/GNUmakefile + ) + emake "${args[@]}" +} + +src_test() { + # build native test library + emake BUILD_DIR=build -f libtest/GNUmakefile + + # https://github.com/jnr/jffi/issues/60 + LC_ALL=C java-pkg-simple_src_test +} + +src_install() { + default + + local libname=".so" + java-pkg_doso build/jni/lib${PN}-$(ver_cut 1-2)${libname} + + # must be after _doso to have JAVA_PKG_LIBDEST set + cat > boot.properties <<-EOF + jffi.boot.library.path = ${JAVA_PKG_LIBDEST} + EOF + jar -uf ${PN}.jar boot.properties || die + + java-pkg-simple_src_install +} diff --git a/dev-java/jnr-ffi/Manifest b/dev-java/jnr-ffi/Manifest index a62c50306aae..0ff907a7d130 100644 --- a/dev-java/jnr-ffi/Manifest +++ b/dev-java/jnr-ffi/Manifest @@ -1,2 +1,3 @@ DIST jnr-ffi-2.0.2.tar.gz 170707 BLAKE2B fc4f1dcea51939b6098b980b4962380e58ba590ea9d4cdba7823c1372bd645d985ae25d8ebf1f0b575a0e4b5c192e5595094076d3cd44e4bb3c077dd838c170f SHA512 80a932408f5ceaf19fd7a399b786aa0d7b9251ea144bc2755bcf3cdc3aea85615a1faa001bbcd3072bc0eead2aaa30d0bbead5f96c82c4b9e455c1ed1379b4c0 +DIST jnr-ffi-2.2.12.tar.gz 285324 BLAKE2B 32e866654b901ded7cdc82999d79873d49bd9d3599d265e9d029e7cf8ce1895f9e830a1af75b8c149c3debc5f3d256f6241d706ecbd94277ce1fa49a2868885c SHA512 420adb647c5d0547f0b18e4f8a21096da9aaebbdf0e50761ec1fd6be64ad29649c7af4d6daf0a8c4c38e02a05e0df836de6fdb7776f10c02d8bfd447a11882b3 DIST jnr-ffi-2.2.8-sources.tar.gz 261959 BLAKE2B 16f7b89c88a61fa07da65d4e5287258f96550b93898bb7313ddd62d1f002276da86aca2c79874eccb466eaebcad5181ff33539996a6558b6d79ce9280cf9c0a9 SHA512 15187d90f15ad82cb6cac0617806ab7d0322bfcb4f44523f2272f93f19ec115625806c9d450bffaa57db32c70906328c8edc905046465b0ec3eb6ff52e500b42 diff --git a/dev-java/jnr-ffi/jnr-ffi-2.2.12.ebuild b/dev-java/jnr-ffi/jnr-ffi-2.2.12.ebuild new file mode 100644 index 000000000000..97e586145250 --- /dev/null +++ b/dev-java/jnr-ffi/jnr-ffi-2.2.12.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/jnr/jnr-ffi/archive/jnr-ffi-2.2.12.tar.gz --slot 2 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild jnr-ffi-2.2.12.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="com.github.jnr:jnr-ffi:2.2.12" +# We don't have junit-jupiter yet +# JAVA_TESTING_FRAMEWORKS="junit-jupiter" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A library for invoking native functions from java" +HOMEPAGE="https://github.com/jnr/jnr-ffi" +SRC_URI="https://github.com/jnr/${PN}/archive/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +CP_DEPEND=" + dev-java/asm:9 + >=dev-java/jffi-1.3.8:1.3 + dev-java/jnr-a64asm:2 + dev-java/jnr-x86asm:1.0 +" + +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:*" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +S="${WORKDIR}/${PN}-${P}" + +JAVA_SRC_DIR="src/main/java" + +# JAVA_TEST_GENTOO_CLASSPATH="!!!groupId-not-found!!!" +# JAVA_TEST_SRC_DIR="src/test/java" + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/jnr-netdb/Manifest b/dev-java/jnr-netdb/Manifest index 1ca6fa73f8ea..9ac877e87be7 100644 --- a/dev-java/jnr-netdb/Manifest +++ b/dev-java/jnr-netdb/Manifest @@ -1 +1,2 @@ DIST jnr-netdb-1.1.4.tar.gz 648347 BLAKE2B 08953f93fe4a6146dfc77c463e07a8b9f6e784ffc26165d7409a623756733a7598b4d0a3fa55302b5f9b01c870cee3062f310c74e20f6a8a11ff1b41d38a0d7a SHA512 949a744b1d443cde564a2582baf7b4323c721417f32a45fd7413f791823cac5877bef62ed0d3079345631b908a581a1acf83dd00a926f87ebbd8e61d38a20195 +DIST jnr-netdb-1.2.0.tar.gz 649059 BLAKE2B 660074d3a0d201784bddb259796ee4bb87a3579d6ffffcb5c3bf171d34e525c768c8c9282d8a99c250282d108011c0cf4bc9b8cf32dc7f3edc7e0a2b1cbaf9d4 SHA512 6eeb21d42b1eb7c0beed4f263c3440c7e5ae15f76365fb189fc8727c824e01d92662564ae641e1233ec0df68f6761c3c31a8a61891de59a524c213959bd32856 diff --git a/dev-java/jnr-netdb/jnr-netdb-1.2.0.ebuild b/dev-java/jnr-netdb/jnr-netdb-1.2.0.ebuild new file mode 100644 index 000000000000..e45ee7a9304b --- /dev/null +++ b/dev-java/jnr-netdb/jnr-netdb-1.2.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Network services database access for java" +HOMEPAGE="https://github.com/jnr/jnr-netdb" +SRC_URI="https://github.com/jnr/jnr-netdb/archive/jnr-netdb-${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1.0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +CP_DEPEND=" + dev-java/jnr-ffi:2" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:*" + +S="${WORKDIR}/${PN}-${P}" + +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" + +src_prepare() { + default + java-pkg_clean +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/jnr-posix/Manifest b/dev-java/jnr-posix/Manifest index 8d1346b1a5b2..2e180c60d0a4 100644 --- a/dev-java/jnr-posix/Manifest +++ b/dev-java/jnr-posix/Manifest @@ -1 +1,2 @@ DIST jnr-posix-3.0.10.tar.gz 85912 BLAKE2B b87ff78ccf10718bd1faf9e308421ba3ab5e90dee5e244fb1b7f53592da8ad98973cc50e6469bcea59e1202ee82b3f77522eb95e23584ff70cc66099ef1c4266 SHA512 a282c164b0b9ace8aba508a48d08d53beb0ddcd4baf5389412941a1e1430d75df9bdd35935a6982d4bb1910c0fdad55910ba028b1b5388c55e19a6c4ed2ba6a1 +DIST jnr-posix-3.1.15.tar.gz 120573 BLAKE2B 8035308440e444876d8d955ec3dd0b9d41f770436b53f964795a183ed7bd676dda8787c37425c488af2aa0accc948b86d1773e7e97ee5bcdaf209383dfda24a6 SHA512 6c8cd6d43c509ef7c16901d02983b823464b3437019233021398b2a9dfc85923db87c585e2f8248f080447a990e308feff25bbbf2a7261019dcae66c22e14a91 diff --git a/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch b/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch new file mode 100644 index 000000000000..eba2a6fc450a --- /dev/null +++ b/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch @@ -0,0 +1,48 @@ +diff --git a/src/test/java/jnr/posix/FileTest.java b/src/test/java/jnr/posix/FileTest.java +index afadb07..7eb8af7 100644 +--- a/src/test/java/jnr/posix/FileTest.java ++++ b/src/test/java/jnr/posix/FileTest.java +@@ -8,6 +8,7 @@ import jnr.ffi.Pointer; + import jnr.posix.util.Platform; + import org.junit.BeforeClass; + import org.junit.Test; ++import org.junit.Ignore; + + import java.io.*; + import java.nio.ByteBuffer; +@@ -215,7 +216,7 @@ public class FileTest { + dir.delete(); + } + +- @Test ++ @Ignore @Test + public void flockTest() throws Throwable { + if (!Platform.IS_WINDOWS) { + File tmp = File.createTempFile("flockTest", "tmp"); +@@ -236,7 +237,7 @@ public class FileTest { + } + } + +- @Test ++ @Ignore @Test + public void dupTest() throws Throwable { + File tmp = File.createTempFile("dupTest", "tmp"); + RandomAccessFile raf = new RandomAccessFile(tmp, "rw"); +@@ -303,7 +304,7 @@ public class FileTest { + } + } + +- @Test ++ @Ignore @Test + public void fcntlDupfdWithArgTest() throws Throwable { + if (!Platform.IS_WINDOWS) { + File tmp = File.createTempFile("dupTest", "tmp"); +@@ -327,7 +328,7 @@ public class FileTest { + } + } + +- @Test ++ @Ignore @Test + public void closeTest() throws Throwable { + File tmp = File.createTempFile("closeTest", "tmp"); + int fd = getFdFromDescriptor(JavaLibCHelper.getDescriptorFromChannel(new RandomAccessFile(tmp, "rw").getChannel())); diff --git a/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild b/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild new file mode 100644 index 000000000000..5e4a34bbddea --- /dev/null +++ b/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/jnr/jnr-posix/archive/jnr-posix-3.1.15.tar.gz --slot 3.0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild jnr-posix-3.1.15.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.github.jnr:jnr-posix:3.1.15" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Common cross-project/cross-platform POSIX APIs" +HOMEPAGE="https://github.com/jnr/jnr-posix" +SRC_URI="https://github.com/jnr/${PN}/archive/${P}.tar.gz" + +LICENSE="EPL-2.0 GPL-2 LGPL-2.1" +SLOT="3.0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +CP_DEPEND=" + >=dev-java/jnr-ffi-2.2.12:2 + dev-java/jnr-constants:0 +" + +DEPEND="${CP_DEPEND} + >=virtual/jdk-11:*" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +S="${WORKDIR}/${PN}-${P}" + +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" + +src_test() { + JAVA_TEST_EXCLUDES=( + # https://github.com/jnr/jnr-posix/blob/jnr-posix-3.1.15/pom.xml#L185 + # <exclude>**/windows/*Test.java</exclude> + "jnr.posix.windows.WindowsFileTest" + "jnr.posix.windows.WindowsHelpersTest" + # Next 3 tests need to run separately, otherwise would fail. + "jnr.posix.GroupTest" + "jnr.posix.NlLanginfoTest" + "jnr.posix.SpawnTest" + ) + local vm_version="$(java-config -g PROVIDES_VERSION)" + if [[ "${vm_version}" -ge "17" ]] ; then + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.io=ALL-UNNAMED ) + # Some tests in jnr.posix.FileTest fail with jdk-17 + eapply "${FILESDIR}/jnr-posix-3.1.15-FileTest.patch" + fi + java-pkg-simple_src_test + JAVA_TEST_RUN_ONLY="jnr.posix.SpawnTest" + java-pkg-simple_src_test + JAVA_TEST_RUN_ONLY="jnr.posix.NlLanginfoTest" + java-pkg-simple_src_test + JAVA_TEST_RUN_ONLY="jnr.posix.GroupTest" + java-pkg-simple_src_test +} diff --git a/dev-java/logback-core/files/logback-core-1.2.11-Ignore-test-failing-under-Java-16.patch b/dev-java/logback-core/files/logback-core-1.2.11-Ignore-test-failing-under-Java-16.patch new file mode 100644 index 000000000000..9423f26e9a1a --- /dev/null +++ b/dev-java/logback-core/files/logback-core-1.2.11-Ignore-test-failing-under-Java-16.patch @@ -0,0 +1,24 @@ +--- a/src/test/java/ch/qos/logback/core/AsyncAppenderBaseTest.java ++++ b/src/test/java/ch/qos/logback/core/AsyncAppenderBaseTest.java +@@ -18,6 +18,7 @@ + import static org.junit.Assert.assertTrue; + + import org.junit.Before; ++import org.junit.Ignore; + import org.junit.Test; + + import ch.qos.logback.core.helpers.NOPAppender; +@@ -281,10 +282,13 @@ public void verifyInterruptionFlagWhenStopping_NOT_INTERUPPTED() { + } + + ++ // In JDK non started threads can be interrupted ++ @Ignore + @Test + public void verifyInterruptionOfWorkerIsSwallowed() { + asyncAppenderBase.addAppender(delayingListAppender); + asyncAppenderBase.start(); ++ Thread.yield(); + asyncAppenderBase.stop(); + assertFalse(asyncAppenderBase.worker.isInterrupted()); + } diff --git a/dev-java/logback-core/logback-core-1.2.11.ebuild b/dev-java/logback-core/logback-core-1.2.11.ebuild index 0cdfe7da5744..82c0939dbb61 100644 --- a/dev-java/logback-core/logback-core-1.2.11.ebuild +++ b/dev-java/logback-core/logback-core-1.2.11.ebuild @@ -70,6 +70,13 @@ src_prepare() { sed \ -e 's:org.mockito.Matchers:org.mockito.ArgumentMatchers:' \ -i 'src/test/java/ch/qos/logback/core/net/AbstractSocketAppenderIntegrationTest.java' || die + + # Ignore test failing under Java 16 + # See https://github.com/qos-ch/logback/commit/d6a8200cea6d960bf6832b9b95aed64e87474afb + local vm_version="$(java-config -g PROVIDES_VERSION)" + if [[ "${vm_version}" -ge "17" ]] ; then + eapply "${FILESDIR}/logback-core-1.2.11-Ignore-test-failing-under-Java-16.patch" + fi } src_test() { @@ -84,10 +91,11 @@ src_test() { pushd src/test/java || die local JAVA_TEST_RUN_ONLY=$(find * \ -name "*Test.java" \ - ! -name "**/All*Test.java" \ - ! -name "**/PackageTest.java" \ + ! -wholename "**/All*Test.java" \ + ! -wholename "**/PackageTest.java" \ ! -name "AbstractAppenderTest.java" \ ! -name "AbstractPatternLayoutBaseTest.java" \ + ! -name "AbstractSocketAppenderIntegrationTest.java" \ ) JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" @@ -97,6 +105,7 @@ src_test() { local vm_version="$(java-config -g PROVIDES_VERSION)" if [[ "${vm_version}" -ge "17" ]] ; then JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.lang=ALL-UNNAMED ) + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.io=ALL-UNNAMED ) fi java-pkg-simple_src_test } diff --git a/dev-java/osgi-enterprise-api/osgi-enterprise-api-5.0.0-r2.ebuild b/dev-java/osgi-enterprise-api/osgi-enterprise-api-5.0.0-r2.ebuild index be9fe048e586..2b8960dfd88b 100644 --- a/dev-java/osgi-enterprise-api/osgi-enterprise-api-5.0.0-r2.ebuild +++ b/dev-java/osgi-enterprise-api/osgi-enterprise-api-5.0.0-r2.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://docs.osgi.org/download/r5/osgi.enterprise-${PV}.jar" LICENSE="Apache-2.0 OSGi-Specification-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +KEYWORDS="amd64 ~arm arm64 ppc64 x86" RESTRICT="bindist" diff --git a/dev-java/relaxng-datatype/relaxng-datatype-1.0-r3.ebuild b/dev-java/relaxng-datatype/relaxng-datatype-1.0-r3.ebuild index 5886aafc3e3f..082bf9631a73 100644 --- a/dev-java/relaxng-datatype/relaxng-datatype-1.0-r3.ebuild +++ b/dev-java/relaxng-datatype/relaxng-datatype-1.0-r3.ebuild @@ -14,7 +14,7 @@ DESCRIPTION="Interface between RELAX NG validators and datatype libraries" HOMEPAGE="https://relaxng.org/" SRC_URI="mirror://sourceforge/relaxng/${MY_P}.zip -> ${P}.zip" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" LICENSE="BSD" SLOT="0" diff --git a/dev-java/sbt/sbt-0.13.18-r1.ebuild b/dev-java/sbt/sbt-0.13.18-r1.ebuild new file mode 100644 index 000000000000..13fbc7b910f9 --- /dev/null +++ b/dev-java/sbt/sbt-0.13.18-r1.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit java-pkg-2 + +L_PN="sbt-launch" +L_P="${L_PN}-${PV}" + +DESCRIPTION="sbt is a build tool for Scala and Java projects that aims to do the basics well" +HOMEPAGE="https://www.scala-sbt.org/" +EGIT_COMMIT="v${PV}" +EGIT_REPO_URI="https://github.com/sbt/sbt.git" +SRC_URI=" + !binary? ( + https://github.com/sbt/sbt/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.xz + https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.xz + https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/${L_PN}/${PV}/${L_PN}.jar -> ${L_P}.jar + ) + binary? ( + https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.xz + )" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="binary" + +# Restrict to jdk:1.8 +# Missing dependency 'object java.lang.Object in compiler mirror', bug #831297 +DEPEND=" + virtual/jdk:1.8 +" + +RDEPEND=" + >=virtual/jre-1.8:* +" + +# test hangs or fails +RESTRICT="test" + +# Note: to bump sbt, some things to try are: +# 1. remove the https://dev.gentoo.org/~gienah/snapshots/${P}-ivy2-deps.tar.xz +# https://dev.gentoo.org/~gienah/snapshots/${P}-sbt-deps.tar.xz and +# binary? ( https://dev.gentoo.org/~gienah/files/dist/${P}-gentoo-binary.tar.xz ) +# from SRC_URI +# 2. Comment the sbt publishLocal line in src_compile. +# 3. try: +# FEATURES='noclean -test' emerge -v -1 dev-java/sbt +# It should fail in src_install since the sbt publishLocal is not done. +# Check if it downloads more stuff in +# src_compile to ${WORKDIR}/.ivy2 and ${WORKDIR}/.sbt. +# 4. If some of the downloads fail, it might be necessary to run the sbt compile +# again manually to obtain all the dependencies, if so: +# cd to ${S} +# export EROOT=/ +# export WORKDIR='/var/tmp/portage/dev-java/${P}/work' +# export L_P=${P} +# export PATH="${WORKDIR}/${L_P}:${PATH}" +# sbt compile +# cd ${WORKDIR} +# find .ivy2 .sbt -uid 0 -exec chown portage:portage {} \; +# 5. cd ${WORKDIR} +# XZ_OPT=-9 tar --owner=portage --group=portage \ +# -cJf /usr/portage/distfiles/${P}-ivy2-deps.tar.xz .ivy2/cache +# XZ_OPT=-9 tar --owner=portage --group=portage \ +# -cJf /usr/portage/distfiles/${P}-sbt-deps.tar.xz .sbt +# Uncomment the sbt publishLocal line in src_compile. +# 6. It *might* download more dependencies for src_test, however the presence +# of some of these may cause the src_compile to fail. So download them +# seperately as root so we can identify the +# additional files. As root: +# cd ${S} +# ${S}/${P} test +# cd ${WORKDIR} +# XZ_OPT=-9 tar --owner=portage --group=portage \ +# -cJf /usr/portage/distfiles/${P}-test-deps.tar.xz \ +# $(find .ivy2/cache .sbt -uid 0 -type f -print) +# Note: It might not download anything in src_test, in which case +# ${P}-test-deps.tar.xz is not required. +# 7. Create the binary +# cd $WORDKIR +# XZ_OPT=-9 tar --owner=portage --group=portage \ +# -cJf /usr/portage/distfiles/${P}-gentoo-binary.tar.xz ${P} .ivy2/local +# 9. Undo the earlier temporary edits to the ebuild. + +src_unpack() { + # Unpack tar files only. + for f in ${A} ; do + [[ ${f} == *".tar."* ]] && unpack ${f} + done +} + +src_prepare() { + default + if ! use binary; then + mkdir "${WORKDIR}/${L_P}" || die + cp -p "${DISTDIR}/${L_P}.jar" "${WORKDIR}/${L_P}/${L_PN}.jar" || die + cat <<- EOF > "${WORKDIR}/${L_P}/sbt" + #!/bin/sh + SBT_OPTS="-Xms512M -Xmx3072M -Xss1M -XX:+CMSClassUnloadingEnabled" + java -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \${SBT_OPTS} -jar "${WORKDIR}/${L_P}/sbt-launch.jar" "\$@" + EOF + cat <<- EOF > "${S}/${P}" + #!/bin/sh + SBT_OPTS="-Xms512M -Xmx3072M -Xss1M -XX:+CMSClassUnloadingEnabled" + java -Djavac.args="-encoding UTF-8" -Duser.home="${WORKDIR}" \${SBT_OPTS} -jar "${S}/launch/target/sbt-launch.jar" "\$@" + EOF + chmod u+x "${WORKDIR}/${L_P}/sbt" "${S}/${P}" || die + + # suppress this warning in build.log: + # [warn] Credentials file /var/tmp/portage/dev-java/${P}/work/.bintray/.credentials does not exist + mkdir -p "${WORKDIR}/.bintray" || die + cat <<- EOF > "${WORKDIR}/.bintray/.credentials" + realm = Bintray API Realm + host = api.bintray.com + user = + password = + EOF + fi +} + +src_compile() { + if ! use binary; then + einfo "=== sbt compile ..." + local vm_version="$(java-config -g PROVIDES_VERSION)" + "${WORKDIR}/${L_P}/sbt" -Dsbt.log.noformat=true compile || die + einfo "=== sbt publishLocal with jdk ${vm_version} ..." + cat <<- EOF | "${WORKDIR}/${L_P}/sbt" -Dsbt.log.noformat=true || die + set every javaVersionPrefix in javaVersionCheck := Some("${vm_version}") + publishLocal + EOF + fi +} + +src_test() { + "${S}/${P}" -Dsbt.log.noformat=true test || die +} + +src_install() { + # Place sbt-launch.jar at the end of the CLASSPATH + java-pkg_dojar $(find "${WORKDIR}"/.ivy2/local -name \*.jar -print | grep -v sbt-launch.jar) \ + $(find "${WORKDIR}"/.ivy2/local -name sbt-launch.jar -print) + local ja="-Dsbt.version=${PV} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled" + java-pkg_dolauncher sbt --jar sbt-launch.jar --java_args "${ja}" +} diff --git a/dev-java/xml-commons-resolver/xml-commons-resolver-1.2-r3.ebuild b/dev-java/xml-commons-resolver/xml-commons-resolver-1.2-r3.ebuild new file mode 100644 index 000000000000..df851d6671ae --- /dev/null +++ b/dev-java/xml-commons-resolver/xml-commons-resolver-1.2-r3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="xml-resolver:xml-resolver:1.2" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="An XML Entity and URI Resolver" +HOMEPAGE="https://xerces.apache.org/xml-commons/components/resolver/" +SRC_URI="mirror://apache/xerces/xml-commons/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +DEPEND=">=virtual/jdk-1.8:*" +RDEPEND=">=virtual/jre-1.8:*" + +DOCS=( KEYS LICENSE.resolver.txt NOTICE-resolver.txt ) +HTML_DOCS=( docs/resolver{,-release-notes}.html ) + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="src" +JAVA_RESOURCE_DIRS="resources" +JAVA_MAIN_CLASS="org.apache.xml.resolver.apps.resolver" + +src_prepare() { + default + java-pkg_clean + rm -rv src/org/apache/xml/resolver/tests || die + mkdir -p resources/org/apache/xml/resolver || die + mv etc resources/org/apache/xml/resolver || die +} + +src_install() { + default + java-pkg-simple_src_install +} |
