Summary: | dev-util/idea-community: Idea does not work with non-binary JDK | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Maciej Barć <xgqt> |
Component: | Current packages | Assignee: | Mike Pagano <mpagano> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Maciej Barć
![]() Are JDK_HOME and JAVA_HOME set? JDK_HOME=/etc/java-config-2/current-system-vm JAVA_HOME=/etc/java-config-2/current-system-vm > Are JDK_HOME and JAVA_HOME set? > JDK_HOME=/etc/java-config-2/current-system-vm > JAVA_HOME=/etc/java-config-2/current-system-vm Yup. > (~)λ echo $JDK_HOME > /etc/java-config-2/current-system-vm > (~)λ echo $JAVA_HOME > /etc/java-config-2/current-system-vm > (~)λ I can't think of any reason not to patch line 56 of idea.sh from: JRE="/opt/openjdk-bin-17" && [[ -d "/opt1/openjdk-17" ]] && JRE="/usr/lib64/openjdk-bin-17" JRE="${JDK_HOME}" to JRE="${JDK_HOME}" (In reply to Mike Pagano from comment #3) > I can't think of any reason not to patch line 56 of idea.sh from: > > JRE="/opt/openjdk-bin-17" && [[ -d "/opt1/openjdk-17" ]] && > JRE="/usr/lib64/openjdk-bin-17" > JRE="${JDK_HOME}" > > to > > JRE="${JDK_HOME}" Yup, following works on "this" machine. > # shellcheck disable=SC2154 > if [ -n "$IDEA_JDK" ] && [ -x "$IDEA_JDK/bin/java" ]; then > JRE="$IDEA_JDK" > else > ### JRE="/opt/openjdk-bin-17" && [[ -d "/opt/openjdk-17" ]] && > JRE="/usr/lib64/openjdk-bin-17" > JRE="${JDK_HOME}" > fi (In reply to Maciej Barć from comment #4) > (In reply to Mike Pagano from comment #3) > > I can't think of any reason not to patch line 56 of idea.sh from: > > > > JRE="/opt/openjdk-bin-17" && [[ -d "/opt1/openjdk-17" ]] && > > JRE="/usr/lib64/openjdk-bin-17" > > JRE="${JDK_HOME}" > > > > to > > > > JRE="${JDK_HOME}" > > Yup, following works on "this" machine. > > > # shellcheck disable=SC2154 > > if [ -n "$IDEA_JDK" ] && [ -x "$IDEA_JDK/bin/java" ]; then > > JRE="$IDEA_JDK" > > else > > ### JRE="/opt/openjdk-bin-17" && [[ -d "/opt/openjdk-17" ]] && > JRE="/usr/lib64/openjdk-bin-17" > > JRE="${JDK_HOME}" > > fi Thanks for the super quick responses. Looks like we apply a patch that added that line, seems to work when I complete remove that else piece. I'm going to drop that patch. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ffb2ede06368ce99a558de1717b3e9bbededf681 commit ffb2ede06368ce99a558de1717b3e9bbededf681 Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2023-01-28 23:40:58 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2023-01-28 23:40:58 +0000 dev-util/idea-community: Remove patch causing breakage setting JRE Closes: https://bugs.gentoo.org/892253 Signed-off-by: Mike Pagano <mpagano@gentoo.org> dev-util/idea-community/files/idea-community-jdk.patch | 11 ----------- dev-util/idea-community/idea-community-2022.3.2.ebuild | 4 ---- 2 files changed, 15 deletions(-) |