Integrated: 8266179: [macos] jpackage should specify architecture for produced pkg files

Alexander Matveev almatvee at openjdk.java.net
Tue May 4 23:38:54 UTC 2021


On Fri, 30 Apr 2021 04:22:37 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

> jpackage should specify architecture for produced PKG files via hostArchitectures="x86_x64 or arm64". aarch64 installer will be installable on x64 without specifying hostArchitectures which is not correct and if install on arm Mac it will request Rosetta 2. With proposed fix by setting hostArchitectures="x86_x64" if installer contains x64 binaries, it will be installable on x64 Mac and will require Rosetta 2 on arm Mac. hostArchitectures will be set to arm64 if installer contain aarch64 binaries and will gave error when run on x64 Mac and will be installable on arm Mac without triggering installation of Rosetta 2.

This pull request has now been integrated.

Changeset: 2c53654b
Author:    Alexander Matveev <almatvee at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/2c53654bf1140c7cd243598ebdbff9ca4b9c54ba
Stats:     101 lines in 3 files changed: 100 ins; 0 del; 1 mod

8266179: [macos] jpackage should specify architecture for produced pkg files

Reviewed-by: herrick, kcr, asemenyuk

-------------

PR: https://git.openjdk.java.net/jdk/pull/3807


More information about the core-libs-dev mailing list