CHEF-34733: Add Habitat plan for macOS aarch64-darwin platform#345
Draft
sanghinitin wants to merge 1 commit into
Draft
CHEF-34733: Add Habitat plan for macOS aarch64-darwin platform#345sanghinitin wants to merge 1 commit into
sanghinitin wants to merge 1 commit into
Conversation
Signed-off-by: nitin sanghi <nsanghi@progress.com>
Simplecov Report
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Habitat package plan for the macOS
aarch64-darwin(Apple Silicon) platform, enablinghab pkg buildfor chef-cli on macOS ARM64.Jira Ticket
CHEF-34733
Changes
habitat/aarch64-darwin/plan.sh- full Habitat plan for macOS ARM64Key Design Decisions
core/clanginstead ofcore/gcccore/gccis unavailable on aarch64-darwin; clang is the native macOS compilercore/makeandcore/cmaketopkg_build_depslibyajl2gem which compiles yajl C library via cmakecore/clangbin path, notxcrunxcrunis unavailable inside Habitat build environmentbundle installErrno::ENOENT - getcwdand RubyGems permission errorssed -i(no empty string arg)DYLD_LIBRARY_PATHfor libarchiveIssues Resolved During Development
pkg_build_depsand ensured they are on PATHsed -irm - rf(extra space) treated-andrfas filenames; fixed torm -rfBuild Validation
Files Modified
habitat/aarch64-darwin/plan.sh(new file, +138 lines)Testing
Validated via
hab pkg build .on macOS aarch64-darwin. Build completes, .hart installs, andchef-cli --versionexecutes correctly viahab pkg exec.