If you install turbovnc without java flag: $ /usb/bin/vncviewer libjawt.so path: /etc/java-config-2/current-system-vm/lib/amd64 Error: Unable to access jarfile /VncViewer.jar I suggest to remove to add after line 93 in the ebuild + else + rm -f "${ED}"/usr/bin/vncviewer || die in src_install phase when testing java use flag. Also as the java use flag only cares of viewer, it may be good to rename this flag <flag name=viewer>install a java vnc viewer gui</flag>
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ead3e37592f29f619d9bc33ae447fa71d15345ef commit ead3e37592f29f619d9bc33ae447fa71d15345ef Author: Viorel Munteanu <ceamac.paragon@gmail.com> AuthorDate: 2022-02-26 09:10:12 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-27 00:19:24 +0000 net-misc/turbovnc: do not build vncviewer if !java Closes: https://bugs.gentoo.org/833509 Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/24355 Signed-off-by: Sam James <sam@gentoo.org> ...bovnc-2.2.7-r1.ebuild => turbovnc-2.2.7-r2.ebuild} | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-)