CHEF-34737: Add Habitat plan for aarch64-darwin (macOS Apple Silicon)#105
Open
sanghinitin wants to merge 1 commit into
Open
CHEF-34737: Add Habitat plan for aarch64-darwin (macOS Apple Silicon)#105sanghinitin wants to merge 1 commit into
sanghinitin wants to merge 1 commit into
Conversation
Add habitat/aarch64-darwin/plan.sh to support building the fauxhai Habitat package on macOS aarch64 (Apple Silicon). Key changes from the Linux plan: - Uses core/clang and core/cmake instead of core/gcc for native extensions - Adds core/libarchive as a runtime dependency - Sets CC/CXX to clang in do_prepare and do_build - Uses DYLD_LIBRARY_PATH (macOS dynamic linker) in the wrapper script - Creates a runtime wrapper script for the fauxhai binstub - Adds binstub patch injection verification - References PLAN_CONTEXT/../.. since plan is nested one level deeper Signed-off-by: nitin sanghi <nsanghi@progress.com>
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 Habitat build plan for the
aarch64-darwintarget (macOS Apple Silicon), enabling native Habitat package builds for fauxhai on Apple Silicon Macs.Jira Ticket
CHEF-34737
Changes
habitat/aarch64-darwin/plan.sh— a new Habitat plan targeting macOS aarch64Key Differences from Linux plan.sh
Testing Performed
hab pkg build .on macOS aarch64 Habitat Studiofauxhaibinary executes correctlyEvidence of Fixes During Development
sed -i ''''''(BSD syntax) tosed -i(GNU syntax) — Habitat Studio uses GNU sed fromcore/sed/require ['''"''']rubygems['''"''']/to/require "rubygems"/to avoid shell quoting issues that caused EOF parsing errorsFiles Modified
habitat/aarch64-darwin/plan.sh(new file)