Repository navigation
Commit 1769b1f
fix(fix-machos): force adhoc signing for virtualization/hypervisor entitlements
When pantry CI has imported a Developer ID via apple-actions/import-codesign-certs,
brewkit re-signs every Mach-O with that Developer ID. Some entitlements --
notably com.apple.security.virtualization and com.apple.security.hypervisor --
require either adhoc signing or a Developer ID with a matching provisioning
profile. A generic Developer ID without that provisioning is rejected by
macOS Virtualization.framework / hypervisor.framework at runtime (the binary
launches but vz / hv calls fail).
This is what caused lima's limactl to break on pkgx bottles while the
Homebrew bottle worked: Homebrew adhoc-signs these binaries, brewkit was
re-signing them with the Tea Inc. Developer ID, losing the entitlement.
Fix: when these entitlements are present, force adhoc signing instead of
using the Developer ID. Mirrors Homebrew's behavior for the same class of
binaries.
Continues the codesign work from #349 (which only covered the adhoc->adhoc
path -- the Developer-ID->adhoc path needed this complementary guard).
Refs: pkgxdev/pantry#7853
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 25606b4 commit 1769b1f
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
79 | 98 | | |
80 | 99 | | |
81 | 100 | | |
| |||
0 commit comments