feat: Add Habitat plan for macOS aarch64-darwin (Apple Silicon) - #1960
Merged
Conversation
Signed-off-by: nitin sanghi <nsanghi@progress.com>
Signed-off-by: nitin sanghi <nsanghi@progress.com>
sanghinitin
force-pushed
the
CHEF-34741-mac-hab-pkg
branch
from
July 3, 2026 07:52
11f433c to
88ecc05
Compare
sanghinitin
marked this pull request as draft
July 3, 2026 07:55
Signed-off-by: nitin sanghi <nsanghi@progress.com>
sanghinitin
marked this pull request as ready for review
July 16, 2026 10:12
neha-p6
approved these changes
Jul 17, 2026
neha-p6
requested changes
Jul 17, 2026
sanjain-progress
previously approved these changes
Jul 17, 2026
… they now use pull_request_target Signed-off-by: nitin sanghi <nsanghi@progress.com>
sanghinitin
force-pushed
the
CHEF-34741-mac-hab-pkg
branch
from
July 20, 2026 06:11
3f83fcd to
ff54964
Compare
Signed-off-by: nitin sanghi <nsanghi@progress.com>
neha-p6
approved these changes
Jul 20, 2026
nikhil2611
approved these changes
Jul 20, 2026
rishichawda
approved these changes
Jul 21, 2026
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 package plan for macOS aarch64-darwin (Apple Silicon), enabling
hab pkg buildon ARM-based Macs.Changes Made
habitat/aarch64-darwin/plan.sh— full Habitat plan for building ohai on macOS Apple Siliconcore/clanginstead ofcore/gccfor native gem compilation (gcc unavailable on aarch64-darwin)CC/CXXpointing to clang for native extension buildsDYLD_LIBRARY_PATH(macOS) instead ofLD_LIBRARY_PATH(Linux) in the runtime wrapperHOMEandGEM_SPEC_CACHEto writable Habitat cache paths to avoid touching host user directories in Studioraccgem into the vendor directory — required at runtime bytomlrb(usesrequire "racc/parser") but not declared as a gem dependency; Ruby 3.4 bundles racc in its own gem path which is hidden by the wrapperGEM_PATHEvidence / Validation
bash -n habitat/aarch64-darwin/plan.sh— syntax check passeshab pkg build .— completed successfully on aarch64-darwinhab pkg install results/*.hart— installed without errorshab pkg exec sanghinitin/ohai ohai -v— returns correct versionhab pkg exec sanghinitin/ohai ohai— full system detection runs without LoadErrorRoot Cause of racc Issue
tomlrbinternally doesrequire "racc/parser"but does not declareraccas a gem dependency. In Ruby 3.4,raccis a bundled gem living in Ruby's own gem path. The ohai runtime wrapper setsGEM_PATHexclusively to the vendor directory, hiding Ruby's bundled gems. Explicitly installingraccinto the vendor dir resolves this.Related Issue
CHEF-34741
CHEF-34742
AI Assistance
This work was completed with AI assistance following Progress AI policies.