Since mockito:4 has become available this dropping of tests should be checked: src_prepare() { if use test; then # no *streaming as requiring >dev-java/mockito-1.9.5 sed -e "/streaming.*junit\.test/d" \ -i build.xml || die "unable to remove ministreaming tests" fi
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9826d526b71e87c2ec94a7ea7dce4952cd8a79f commit c9826d526b71e87c2ec94a7ea7dce4952cd8a79f Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2022-05-20 08:20:06 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-05-20 08:45:21 +0000 dev-java/ant-core: raise minimum Java version to 9 While Ant runs on Java 8, it is hit by API changes of ByteBuffer.flip(): The flip() method returns Buffer in Java 8 and ByteBuffer in Java 9. If Ant is now emerged and build using Java 8, and then run with Java 9 (or higher), a NoSuchMethodError is potentially thrown invoking ant: BUILD FAILED /var/tmp/portage/net-vpn/i2p-1.6.1/work/i2p-1.6.1/build.xml:1634: java.lang.NoSuchMethodError: java.nio.CharBuffer.flip()Ljava/nio/CharBuffer; at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:81) at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:66) at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:118) at org.apache.tools.ant.util.ReaderInputStream.<init>(ReaderInputStream.java:93) at org.apache.tools.ant.taskdefs.Concat$ConcatResource.getInputStream(Concat.java:421) at org.apache.tools.ant.util.ResourceUtils.copyUsingStreams(ResourceUtils.java:766) at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:437) at org.apache.tools.ant.taskdefs.Concat.execute(Concat.java:802) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) at org.apache.tools.ant.Task.perform(Task.java:350) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.Target.performTasks(Target.java:470) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401) at org.apache.tools.ant.Project.executeTarget(Project.java:1374) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1264) at org.apache.tools.ant.Main.runBuild(Main.java:827) at org.apache.tools.ant.Main.startAnt(Main.java:223) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) Raising the minimum required Java version to 9 fixes this. Closes: https://bugs.gentoo.org/839093 Signed-off-by: Florian Schmaus <flow@gentoo.org> .../ant-core/{ant-core-1.10.9-r3.ebuild => ant-core-1.10.9-r4.ebuild} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
FWIW, the above commit is supposed to fix bug #831290, and not this bug.
Thanks for the report. It should be fixed by the 1.7.0 bump at https://github.com/gentoo/gentoo/pull/25595
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e81aa8a3def902513230575ca922e2b0f0056840 commit e81aa8a3def902513230575ca922e2b0f0056840 Author: Valérian Rousset <tharvik@users.noreply.github.com> AuthorDate: 2022-02-23 00:59:36 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-05-24 14:41:59 +0000 net-vpn/i2p: bump to 1.7.0 Closes: https://bugs.gentoo.org/839093 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Valérian Rousset <tharvik@users.noreply.github.com> Signed-off-by: Florian Schmaus <flow@gentoo.org> net-vpn/i2p/Manifest | 1 + net-vpn/i2p/i2p-1.7.0.ebuild | 145 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+)