RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files
Alexander Matveev
almatvee at openjdk.java.net
Fri Apr 30 04:29:01 UTC 2021
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.
-------------
Commit messages:
- 8266179: [macos] jpackage should specify architecture for produced pkg files
Changes: https://git.openjdk.java.net/jdk/pull/3807/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3807&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8266179
Stats: 7 lines in 2 files changed: 6 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/3807.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3807/head:pull/3807
PR: https://git.openjdk.java.net/jdk/pull/3807
More information about the core-libs-dev
mailing list