Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hostArchitectures to macOS Distribution file #1005

Merged
merged 2 commits into from
Mar 12, 2021

Conversation

tduffield
Copy link
Contributor

@tduffield tduffield commented Mar 12, 2021

Description

Unless hostArchitectures is set, macOS 11 will assume that the package is x86_64 and require Rosetta 2 on arm64.

This was first validated by manually modifying the Distribution file of an existing package, repackaging it, and then trying to re-install it. It was subsequently validated against a build of harmony. See below the error cases.

When you try to install arm64 package onto x86_64

Dialog indicating that the package cannot be installed on this computer

When you try to install an arm64 package without hostArchitectures setting onto arm64

Dialog indicating that Rosetta 2 needs to be installed


Maintainers

Please ensure that you check for:

  • [] If this change impacts git cache validity, it bumps the git cache
    serial number
  • [] If this change impacts compatibility with omnibus-software, the
    corresponding change is reviewed and there is a release plan
  • [] If this change impacts compatibility with the omnibus cookbook, the
    corresponding change is reviewed and there is a release plan

@tduffield tduffield marked this pull request as ready for review March 12, 2021 17:41
@tduffield tduffield requested review from a team as code owners March 12, 2021 17:41
In our code we call .open on a different object based on which version
of Ruby we are using. We need to ensure we reflect that in our tests.

Signed-off-by: Tom Duffield <[email protected]>
@tduffield tduffield merged commit f089948 into master Mar 12, 2021
@tduffield tduffield deleted the tduffield/host-architectures-distro branch March 12, 2021 19:30
timsutton added a commit to timsutton/omnibus-ruby that referenced this pull request Jul 12, 2023
- this would be addressed already if the omnibus fork included more
  recent upstream updates from chef/omnibus
- chef#1005 is a better fix but it
  depends on safe_architecture method added at some other point
timsutton added a commit to timsutton/omnibus-ruby that referenced this pull request Apr 10, 2024
- this would be addressed already if the omnibus fork included more
  recent upstream updates from chef/omnibus
- chef#1005 is a better fix but it
  depends on safe_architecture method added at some other point
timsutton added a commit to timsutton/omnibus-ruby that referenced this pull request Jun 26, 2024
- this would be addressed already if the omnibus fork included more
  recent upstream updates from chef/omnibus
- chef#1005 is a better fix but it
  depends on safe_architecture method added at some other point
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants