dev-java/openjdk: fix jvm detection
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Fri, 18 Jan 2019 06:04:20 +0000 (22:04 -0800)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Fri, 18 Jan 2019 06:12:36 +0000 (22:12 -0800)
This should point to JAVA_VM_DIR which is "/usr/lib/jvm"
Hack below masked detection of jvm for users running
with USE=gentoo-vm

Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
dev-java/openjdk/openjdk-11.0.1_p13.ebuild

index d606429ebcf01b4a4cbff16894c1c6749f5611a6..c16c9e8bb540c97574c093c96827f6b8a4dac77d 100644 (file)
@@ -115,7 +115,7 @@ pkg_setup() {
 
        local vm
        for vm in ${JAVA_PKG_WANT_BUILD_VM}; do
-               if [[ -d ${EPREFIX}/usr/$(get_libdir)/jvm/${vm} ]]; then
+               if [[ -d ${EPREFIX}/usr/lib/jvm/${vm} ]]; then
                        java-pkg-2_pkg_setup
                        return
                fi