Skip to content

Commit

Permalink
dev-java/openjdk: don't die on binpkg installation if no jvm on host
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/687040

Package-Manager: Portage-2.3.67, Repoman-2.3.13
Signed-off-by: Georgy Yakovlev <[email protected]>
  • Loading branch information
gyakovlev committed May 31, 2019
1 parent b7a0e12 commit 284b1f6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions dev-java/openjdk/openjdk-8.212_p03-r3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,13 @@ pkg_setup() {
if has_version --host-root dev-java/openjdk:${SLOT}; then
export JDK_HOME=${EPREFIX}/usr/$(get_libdir)/openjdk-${SLOT}
else
JDK_HOME=$(best_version --host-root dev-java/openjdk-bin:${SLOT})
[[ -n ${JDK_HOME} ]] || die "Build VM not found!"
JDK_HOME=${JDK_HOME#*/}
JDK_HOME=${EPREFIX}/opt/${JDK_HOME%-r*}
export JDK_HOME
if [[ ${MERGE_TYPE} != "binary" ]]; then
JDK_HOME=$(best_version --host-root dev-java/openjdk-bin:${SLOT})
[[ -n ${JDK_HOME} ]] || die "Build VM not found!"
JDK_HOME=${JDK_HOME#*/}
JDK_HOME=${EPREFIX}/opt/${JDK_HOME%-r*}
export JDK_HOME
fi
fi
}

Expand Down

0 comments on commit 284b1f6

Please sign in to comment.