summaryrefslogtreecommitdiff
path: root/dev-java/ognl
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-java/ognl
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-java/ognl')
-rw-r--r--dev-java/ognl/Manifest1
-rw-r--r--dev-java/ognl/files/ognl-3.1.24-TestOgnlRuntime.patch91
-rw-r--r--dev-java/ognl/metadata.xml8
-rw-r--r--dev-java/ognl/ognl-3.1.24.ebuild81
4 files changed, 181 insertions, 0 deletions
diff --git a/dev-java/ognl/Manifest b/dev-java/ognl/Manifest
new file mode 100644
index 000000000000..c04e5b3f90f8
--- /dev/null
+++ b/dev-java/ognl/Manifest
@@ -0,0 +1 @@
+DIST ognl-3.1.24.tar.gz 3630907 BLAKE2B 666b3a9076904ebb34ec0bd028c7564eb2f75775bb485b11282bd8c7bab5130d694ab60dc255e31c450996e59581befc0af6c10395c3e7e126024ff545279063 SHA512 8d3880970242e09f5baf1044757daa644eb96b08ee0066030729072633576de9d1a3cab6c2a7a2923ad8d048742b825001dadb6da52cdc6735bf9536e0902230
diff --git a/dev-java/ognl/files/ognl-3.1.24-TestOgnlRuntime.patch b/dev-java/ognl/files/ognl-3.1.24-TestOgnlRuntime.patch
new file mode 100644
index 000000000000..34e1ecf3a424
--- /dev/null
+++ b/dev-java/ognl/files/ognl-3.1.24-TestOgnlRuntime.patch
@@ -0,0 +1,91 @@
+There were 5 failures:
+1) test_Exit_JDK_Sandbox(ognl.TestOgnlRuntime)
+junit.framework.AssertionFailedError
+ at junit.framework.Assert.fail(Assert.java:55)
+ at junit.framework.Assert.assertTrue(Assert.java:22)
+ at junit.framework.Assert.assertTrue(Assert.java:31)
+ at junit.framework.TestCase.assertTrue(TestCase.java:200)
+ at ognl.TestOgnlRuntime.test_Exit_JDK_Sandbox(TestOgnlRuntime.java:365)
+2) test_Disable_JDK_Sandbox(ognl.TestOgnlRuntime)
+junit.framework.AssertionFailedError
+ at junit.framework.Assert.fail(Assert.java:55)
+ at junit.framework.Assert.assertTrue(Assert.java:22)
+ at junit.framework.Assert.assertTrue(Assert.java:31)
+ at junit.framework.TestCase.assertTrue(TestCase.java:200)
+ at ognl.TestOgnlRuntime.test_Disable_JDK_Sandbox(TestOgnlRuntime.java:296)
+3) test_Call_Method_In_JDK_Sandbox(ognl.TestOgnlRuntime)
+junit.framework.AssertionFailedError
+ at junit.framework.Assert.fail(Assert.java:55)
+ at junit.framework.Assert.assertTrue(Assert.java:22)
+ at junit.framework.Assert.assertTrue(Assert.java:31)
+ at junit.framework.TestCase.assertTrue(TestCase.java:200)
+ at ognl.TestOgnlRuntime.test_Call_Method_In_JDK_Sandbox(TestOgnlRuntime.java:201)
+4) test_Call_Method_In_JDK_Sandbox_Privileged(ognl.TestOgnlRuntime)
+junit.framework.AssertionFailedError
+ at junit.framework.Assert.fail(Assert.java:55)
+ at junit.framework.Assert.assertTrue(Assert.java:22)
+ at junit.framework.Assert.assertTrue(Assert.java:31)
+ at junit.framework.TestCase.assertTrue(TestCase.java:200)
+ at ognl.TestOgnlRuntime.test_Call_Method_In_JDK_Sandbox_Privileged(TestOgnlRuntime.java:393)
+5) test_Call_Method_In_JDK_Sandbox_Thread_Safety(ognl.TestOgnlRuntime)
+junit.framework.AssertionFailedError: expected:<0> but was:<100>
+ at junit.framework.Assert.fail(Assert.java:57)
+ at junit.framework.Assert.failNotEquals(Assert.java:329)
+ at junit.framework.Assert.assertEquals(Assert.java:78)
+ at junit.framework.Assert.assertEquals(Assert.java:234)
+ at junit.framework.Assert.assertEquals(Assert.java:241)
+ at junit.framework.TestCase.assertEquals(TestCase.java:384)
+ at ognl.TestOgnlRuntime.test_Call_Method_In_JDK_Sandbox_Thread_Safety(TestOgnlRuntime.java:269)
+
+FAILURES!!!
+Tests run: 30, Failures: 5
+
+diff --git a/src/test/java/ognl/TestOgnlRuntime.java b/src/test/java/ognl/TestOgnlRuntime.java
+index 0516f42..fd5bf48 100644
+--- a/src/test/java/ognl/TestOgnlRuntime.java
++++ b/src/test/java/ognl/TestOgnlRuntime.java
+@@ -178,7 +178,7 @@ public class TestOgnlRuntime extends TestCase {
+ assertEquals("Halo 3", OgnlRuntime.callMethod(context, service, "getFullMessageFor", args));
+ }
+
+- public void test_Call_Method_In_JDK_Sandbox()
++ public void noTest_Call_Method_In_JDK_Sandbox()
+ throws Exception {
+ OgnlContext context = (OgnlContext) Ognl.createDefaultContext(null);
+ GenericService service = new GenericServiceImpl();
+@@ -207,7 +207,7 @@ public class TestOgnlRuntime extends TestCase {
+ }
+ }
+
+- public void test_Call_Method_In_JDK_Sandbox_Thread_Safety()
++ public void noTest_Call_Method_In_JDK_Sandbox_Thread_Safety()
+ throws Exception {
+ final OgnlContext context = (OgnlContext) Ognl.createDefaultContext(null);
+ final GenericService service = new GenericServiceImpl();
+@@ -274,7 +274,7 @@ public class TestOgnlRuntime extends TestCase {
+ }
+ }
+
+- public void test_Disable_JDK_Sandbox()
++ public void noTest_Disable_JDK_Sandbox()
+ throws Exception {
+ OgnlContext context = (OgnlContext) Ognl.createDefaultContext(null);
+ GenericService service = new GenericServiceImpl();
+@@ -343,7 +343,7 @@ public class TestOgnlRuntime extends TestCase {
+ }
+ }
+
+- public void test_Exit_JDK_Sandbox()
++ public void noTest_Exit_JDK_Sandbox()
+ throws Exception {
+ OgnlContext context = (OgnlContext) Ognl.createDefaultContext(null);
+ GenericService service = new GenericServiceImpl();
+@@ -371,7 +371,7 @@ public class TestOgnlRuntime extends TestCase {
+ }
+ }
+
+- public void test_Call_Method_In_JDK_Sandbox_Privileged()
++ public void noTest_Call_Method_In_JDK_Sandbox_Privileged()
+ throws Exception {
+ OgnlContext context = (OgnlContext) Ognl.createDefaultContext(null);
+ GenericService service = new GenericServiceImpl();
diff --git a/dev-java/ognl/metadata.xml b/dev-java/ognl/metadata.xml
new file mode 100644
index 000000000000..1f5997cfad3e
--- /dev/null
+++ b/dev-java/ognl/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ </maintainer>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>
diff --git a/dev-java/ognl/ognl-3.1.24.ebuild b/dev-java/ognl/ognl-3.1.24.ebuild
new file mode 100644
index 000000000000..0976137d2a46
--- /dev/null
+++ b/dev-java/ognl/ognl-3.1.24.ebuild
@@ -0,0 +1,81 @@
+# Copyright 2025 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="Object Graph Navigation Library"
+HOMEPAGE="https://ognl.orphan.software/"
+SRC_URI="https://github.com/orphan-oss/ognl/archive/OGNL_${PV//./_}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/ognl-OGNL_${PV//./_}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 arm64 ppc64"
+
+JAVACC_SLOT="7.0.13"
+BDEPEND="dev-java/javacc:${JAVACC_SLOT}"
+
+DEPEND="
+ dev-java/javassist:3
+ >=virtual/jdk-1.8:*
+ test? (
+ dev-java/easymock:2.5
+ dev-java/hamcrest-core:1.3
+ )
+"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+JAVA_AUTOMATIC_MODULE_NAME="ognl"
+JAVA_CLASSPATH_EXTRA="javassist-3"
+JAVA_SRC_DIR="src/java"
+JAVA_TEST_EXCLUDES=(
+ # junit.framework.AssertionFailedError: No tests found in org.ognl.test.OgnlTestCase
+ # org.junit.runners.model.InvalidTestClassError: Invalid test class 'org.ognl.test.objects.TestModel':
+ # org.junit.runners.model.InvalidTestClassError: Invalid test class 'org.ognl.test.objects.TestInherited2':
+ # org.junit.runners.model.InvalidTestClassError: Invalid test class 'org.ognl.test.objects.TestImpl':
+ # org.junit.runners.model.InvalidTestClassError: Invalid test class 'org.ognl.test.objects.TestClass':
+ # org.junit.runners.model.InvalidTestClassError: Invalid test class 'org.ognl.test.objects.TestInherited1':
+ ognl.Java8Test
+ org.ognl.test.OgnlTestCase
+ org.ognl.test.objects.TestModel
+ org.ognl.test.objects.TestInherited2
+ org.ognl.test.objects.TestImpl
+ org.ognl.test.objects.TestClass
+ org.ognl.test.objects.TestInherited1
+)
+JAVA_TEST_GENTOO_CLASSPATH="easymock-2.5 hamcrest-core-1.3 junit-4"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_prepare() {
+ default #780585
+ java-pkg-2_src_prepare
+ "javacc-${JAVACC_SLOT}" \
+ -GRAMMAR_ENCODING=UTF-8 \
+ -LOOKAHEAD=1, -STATIC=false \
+ -JAVA_UNICODE_ESCAPE=true \
+ -UNICODE_INPUT=true \
+ -OUTPUT_DIRECTORY=src/main/java \
+ src/java/ognl/ognl.jj || die "javacc"
+}
+
+src_test() {
+ local vm_version="$(java-config -g PROVIDES_VERSION)"
+ if ver_test "${vm_version}" -ge 21; then
+ # This file has 30 tets, 5 of which would fail with higher Java versions.
+ eapply "${FILESDIR}/ognl-3.1.24-TestOgnlRuntime.patch"
+ fi
+ if ver_test "${vm_version}" -ge 17; then
+ JAVA_TEST_EXTRA_ARGS+=(
+ --add-opens=java.base/java.lang=ALL-UNNAMED
+ --add-opens=java.base/java.util=ALL-UNNAMED
+ )
+ fi
+ java-pkg-simple_src_test
+}