enonic / xp-distro

Enonic XP full distribution.
GNU General Public License v3.0
3 stars 3 forks source link

Distro for mac arm64 #187

Closed gbbirkisson closed 2 years ago

gbbirkisson commented 3 years ago

Now we have these distros:

For the cli to work on the new arm64 macs we need another distro:

rymsha commented 3 years ago

What exactly does not work? Currently adoptium does not have mac arm64 support

gbbirkisson commented 3 years ago

Well, as it turns out, the JDK runs fine under rosetta on the new M1 macs.

Adoptium are working on providing native support, so we could do this when they do: https://github.com/adoptium/temurin-build/issues/1922

They have some builds already, not sure why they have not published them: https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk/job/jdk-mac-arm64-hotspot/

rymsha commented 3 years ago

Some say Rosetta slows it down a bit. But maybe we don't need to rush at all with this issue. Nobody runs Mac M1 on servers (I hope) On dev - performance drop is unnoticeable

bguijt commented 2 years ago

There already is an OpenJDK 11 build specifically for m1 Macs https://www.azul.com/downloads/?version=java-11-lts&os=macos&architecture=arm-64-bit&package=jdk which could be used just fine in XP.

rymsha commented 2 years ago

We don't use Azul. We use Adoptium in our distro https://adoptium.net/ Adoptium does not provide mac arm64 binaries for Java 11 (yet?) Besides that Elasticsearch issues nasty warning on startup when run on arm-64, because there is no native jna library for that platform.

rymsha commented 2 years ago

In #218 , since we use GraalVM we will introduce experimental support of arm64 (for Linux and MacOS)