Java portgroup default fallback?
jmr at macports.org
Fri Feb 24 02:57:56 UTC 2023
On 24/2/2023 11:44, Nils Breunese wrote:
> Latest LTS (currently openjdk17) could be reasonable, but ideally the fallback version should be verified to work. If that implicitly happens on CI, because there is never a pre-existing Java installation there, then I guess that’s could be ok, although I personally think it’s good to have explicitly set fallback versions.
Yes, it would need to be a dynamic default, taking into account the OS
version, build_arch, and java.version in order to pick a JDK port that
I don't understand why having individual ports set their own fallback
version would be considered better in general, since it doesn't actually
guarantee that a specific JDK will be present. The portgroup's behaviour
is to use any installed JDK that meets the requirement given in
java.version. Ports that need a specific JDK need to explicitly declare
a dependency on it either way.
More information about the macports-dev