summaryrefslogtreecommitdiff
path: root/dev-java/ant/files/ant-1.10.14-AntTest.patch
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-12-24 19:38:07 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2024-01-23 10:42:33 +0100
commit9098e1e1174f7f4eef989a538e29a8469e816363 (patch)
tree49cbc73b917877feb0ccff3756feb0684aa18ba4 /dev-java/ant/files/ant-1.10.14-AntTest.patch
parent6eb34f53b4055c0e8b4c0fdb95a3d86c2fbfed96 (diff)
downloadgentoo-9098e1e1174f7f4eef989a538e29a8469e816363.tar.gz
gentoo-9098e1e1174f7f4eef989a538e29a8469e816363.tar.bz2
gentoo-9098e1e1174f7f4eef989a538e29a8469e816363.zip
dev-java/ant: add 1.10.14 - CVE-2021-36373, CVE-2021-36374
Starting from version 1.10.14, dev-java/ant provides itself ant.jar and ant-launcher.jar instead of having them symlinked from dev-java/ant-core. Jar files of ant-tasks and optionally their javadoc get installed conditionally according to their USE flags. Those which have no compile dependencies are installed unconditionally Closes: https://bugs.gentoo.org/921269 Bug: https://bugs.gentoo.org/850430 Bug: https://bugs.gentoo.org/802165 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/ant/files/ant-1.10.14-AntTest.patch')
-rw-r--r--dev-java/ant/files/ant-1.10.14-AntTest.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-java/ant/files/ant-1.10.14-AntTest.patch b/dev-java/ant/files/ant-1.10.14-AntTest.patch
new file mode 100644
index 000000000000..2e2e7fe38d96
--- /dev/null
+++ b/dev-java/ant/files/ant-1.10.14-AntTest.patch
@@ -0,0 +1,28 @@
+There was 1 failure:
+1) testAntCoreLib(org.apache.tools.ant.taskdefs.AntTest)
+java.lang.AssertionError: found ant.core.lib in: /var/tmp/portage/dev-java/ant-core-1.10.14/work/apache-ant-1.10.14/target/test-classes
+ at org.junit.Assert.fail(Assert.java:89)
+ at org.junit.Assert.assertTrue(Assert.java:42)
+ at org.apache.tools.ant.taskdefs.AntTest.testAntCoreLib(AntTest.java:377)
+
+FAILURES!!!
+Tests run: 32, Failures: 1
+--- a/src/tests/junit/org/apache/tools/ant/taskdefs/AntTest.java
++++ b/src/tests/junit/org/apache/tools/ant/taskdefs/AntTest.java
+@@ -33,6 +33,7 @@ import org.junit.After;
+ import org.junit.Before;
+ import org.junit.Rule;
+ import org.junit.Test;
++import org.junit.Ignore;
+
+ import static org.hamcrest.Matchers.containsString;
+ import static org.junit.Assert.assertEquals;
+@@ -369,7 +370,7 @@ public class AntTest {
+ assertEquals("dadctb", buildRule.getLog());
+ }
+
+- @Test
++ @Test @Ignore
+ public void testAntCoreLib() {
+ // Cf. #42263
+ buildRule.executeTarget("sub-show-ant.core.lib");