[Bug 268358] devel/jetbrains-clion: give clion a hint to find JAVA_HOME

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 13 Dec 2022 15:33:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268358

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=4fecb327597025f0cd4d809c128279f12dacd5b7

commit 4fecb327597025f0cd4d809c128279f12dacd5b7
Author:     Dmitry Wagin <dmitry.wagin@ya.ru>
AuthorDate: 2022-12-13 15:32:03 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-12-13 15:32:03 +0000

    devel/jetbrains-clion: define default JAVA_HOME

    bin/clion tries to figure out the proper JAVA_HOME, while giving the
    user the ability to override it.

    This can lead to it picking up a too old Java version:

    > clion
       java.lang.UnsupportedClassVersionError:
       com/intellij/util/lang/PathClassLoader has been compiled by a more
       recent version of the Java Runtime (class file version 61.0), this
       version of the Java Runtime only recognizes class file versions up to
       52.0

    To fix this, make the ports tree fill in its JAVA_HOME into bin/clion.
    Users can still override it to something specific by overriding
    CLION_JDK:

    > env CLION_JDK=/some/other/jdk/installation clion

    PR:             268358

 devel/jetbrains-clion/Makefile               | 5 +++--
 devel/jetbrains-clion/files/clion.desktop.in | 2 +-
 devel/jetbrains-clion/files/clion.in         | 3 +++
 3 files changed, 7 insertions(+), 3 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.