Bug 251630 - devel/pycharm-ce : depends on two java versions
Summary: devel/pycharm-ce : depends on two java versions
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Boris Samorodov
Depends on:
Reported: 2020-12-06 09:39 UTC by Stephan Munsch
Modified: 2021-04-22 22:23 UTC (History)
2 users (show)

See Also:
linimon: maintainer-feedback? (bsam)

pycham-ce: change java version to 11 (392 bytes, patch)
2021-04-22 22:23 UTC, Yosique
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Munsch 2020-12-06 09:39:42 UTC
After installing pycharm-ce (2020.2.2) on a FreeBSD 12.2 P1 system the program won't start. A closer look shows that java version 8 is in the dependencies but java 11 is required by at least one of the packages pycharm-ce depends on. 

So installing pycharm-ce always drags java 8 into the installation even if java 11 is already installed. You need to install both java 8 and java 11 at the moment to get pycharm-ce running correctly and have to set JAVA_VERSION to 11 for invoking pycharm-ce (so java 8 has to be installed and but is not used). 

Maybe it would be better to include java 11 instead of java 8 into the pycharm-ce dependencies…

Best regards
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2020-12-06 15:55:07 UTC
^Triage: fix Summary and assign to maintainer.

To submitter: "Package Infrastructure" only applies to machines that are @FreeBSD.org, so it is the wrong selection to use here.
Comment 2 Yosique 2021-04-22 22:23:27 UTC
Created attachment 224368 [details]
pycham-ce: change java version to 11

Just stumbled across this bug.

@Stephan Are you sure JAVA 8 is needed?
I ended up removing JAVA 8 and installing JAVA 11 JRE.
pycharm-ce seems to run fine without JAVA 8.

I also fixed the dependency issue by just adding JAVA_VERSION to the Makefile.
And setting it to JAVA 11.

Attached is a very simple patch. 

Thank you.