https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: net-vpn/i2p-1.7.0 fails to compile. Discovered on: amd64 (internal ref: ci)
Created attachment 780581 [details] build.log build log and emerge --info
Since the build script [1] does not even mention ant it should be possible to build this package using java-pkg-simple.eclass instead of java-ant-2.eclass. [1]https://github.com/i2p/i2p.i2p/blob/i2p-1.7.0/build.gradle
All this trouble is caused by unnecessarily inheriting java-ant-2.eclass. However, re-writing version ~1.7.0 with java-pkg-simple.eclass seems not worth the effort. Solution: Ensure to build ant-core and ~i2p-1.7.0 using the same GENTOO_VM.
it seems that it was fixed by re-lowering ant-core minimum JDK see related https://bugs.gentoo.org/831290
(In reply to tharvik from comment #4) > it seems that it was fixed by re-lowering ant-core minimum JDK > [...] Sorry, but it is still reproducible. 1. Have ant-core compiled with system java-vm = openjdk-17 2. Change system java-vm to openjdk-8 3. emerge net-vpn/i2p-1.7.0
Created attachment 862607 [details] net-vpn/i2p-2.1.0-r2 build.log with icedtea-bin-8 as system java-vm
The same error appears while compiling net-vpn/i2p-2.1.0-r2 and java-vm is icedtea-bin-8 (build.log attached). net-vpn/i2p-2.1.0-r2 builds successfully setting system java-vm to openjdk-bin-17 The problem seems to be described here: https://stackoverflow.com/questions/61267495/exception-in-thread-main-java-lang-nosuchmethoderror-java-nio-bytebuffer-flip
(In reply to Giuseppe Foti from comment #7) > The same error appears while compiling net-vpn/i2p-2.1.0-r2 and java-vm is > icedtea-bin-8 (build.log attached). Indeed, I forgot about icedtea. Widenning check in linked PR.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5855b9cfa8abd0d3b45a06e226070b98259af207 commit 5855b9cfa8abd0d3b45a06e226070b98259af207 Author: Valérian Rousset <tharvik@users.noreply.github.com> AuthorDate: 2023-06-03 16:38:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-06-14 04:16:29 +0000 net-vpn/i2p: widen pkg_pretend to all JDK for 2.1.0 Closes: https://bugs.gentoo.org/847304 Signed-off-by: Valérian Rousset <tharvik@users.noreply.github.com> Signed-off-by: Sam James <sam@gentoo.org> net-vpn/i2p/i2p-2.1.0-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)