Skip to content

CHEF-34747: Add macOS ARM64 (aarch64-darwin) Habitat plan#185

Draft
nikhil2611 wants to merge 3 commits into
mainfrom
nikhil/CHEF-34747-macos-arm-build
Draft

CHEF-34747: Add macOS ARM64 (aarch64-darwin) Habitat plan#185
nikhil2611 wants to merge 3 commits into
mainfrom
nikhil/CHEF-34747-macos-arm-build

Conversation

@nikhil2611

Copy link
Copy Markdown
Contributor

Summary

Add native macOS ARM64 (aarch64-darwin) Habitat build support for knife.

Related Jira Ticket

CHEF-34747

Changes Made

  • Add habitat/aarch64-darwin/plan.sh for native macOS ARM64 builds
  • Use clang/cmake for native compilation (instead of gcc on Linux)
  • Configure SSL certificates via core/cacerts for license verification
  • Support knife plugins (ec2, google, windows) via habitat bundle group
  • Add DYLD_LIBRARY_PATH for libarchive dynamic linking
  • Use awk for binstub patching (BSD sed compatibility)

Testing Performed

  • Built package successfully with HAB_FEAT_NATIVE_PACKAGE_SUPPORT=1 hab pkg build --native-package
  • Verified knife ssl check works
  • Verified knife bootstrap works (SSL cert verification fixed)
  • Existing habitat/tests/test.sh is compatible with macOS

Build Command

HAB_FEAT_NATIVE_PACKAGE_SUPPORT=1 hab pkg build --native-package habitat/aarch64-darwin

- Add native macOS ARM64 build support for knife
- Use clang/cmake for native compilation instead of gcc
- Configure SSL certificates via core/cacerts for license verification
- Support knife plugins (ec2, google, windows) via habitat bundle group
- Add DYLD_LIBRARY_PATH for libarchive dynamic linking

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: nikhil2611 <ngupta@progress.com>
@nikhil2611 nikhil2611 requested review from a team and jaymzh as code owners June 29, 2026 12:14
@nikhil2611 nikhil2611 added the ai-assisted Work completed with AI assistance following Progress AI policies label Jun 29, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: nikhil2611 <ngupta@progress.com>
@nikhil2611 nikhil2611 marked this pull request as draft June 29, 2026 12:22
- Add habitat-build.yml workflow for macos-14 (ARM64) builds
- Add test.darwin.sh for macOS-specific testing without hab supervisor
- Workflow triggers on PR and push to main branch

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: nikhil2611 <ngupta@progress.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Work completed with AI assistance following Progress AI policies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant