[Midnightbsd-cvs] [MidnightBSD/mports] 68487f: ai/github-copilot-cli: switch to the prebuilt Linu...
Lucas Holt
noreply at github.com
Sat Jul 25 00:02:34 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/mports
Commit: 68487fbc442b8ac52876e3ada17658a741555da3
https://github.com/MidnightBSD/mports/commit/68487fbc442b8ac52876e3ada17658a741555da3
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-07-25 (Sat, 25 Jul 2026)
Changed paths:
M ai/Makefile
A ai/github-copilot-cli-legacy/Makefile
A ai/github-copilot-cli-legacy/distinfo
A ai/github-copilot-cli-legacy/files/package-lock-keytar.json
A ai/github-copilot-cli-legacy/files/package-lock-node-addon-api.json
A ai/github-copilot-cli-legacy/files/package-lock-pty.json
A ai/github-copilot-cli-legacy/files/package-lock-sharp.json
A ai/github-copilot-cli-legacy/files/package-lock.json
A ai/github-copilot-cli-legacy/files/patch-node__modules__github_copilot_npm-loader.js
A ai/github-copilot-cli-legacy/pkg-descr
A ai/github-copilot-cli-legacy/pkg-plist
M ai/github-copilot-cli/Makefile
M ai/github-copilot-cli/distinfo
R ai/github-copilot-cli/files/package-lock-keytar.json
R ai/github-copilot-cli/files/package-lock-node-addon-api.json
R ai/github-copilot-cli/files/package-lock-pty.json
R ai/github-copilot-cli/files/package-lock-sharp.json
R ai/github-copilot-cli/files/package-lock.json
R ai/github-copilot-cli/files/patch-node__modules__github_copilot_npm-loader.js
A ai/github-copilot-cli/files/relocate-phdrs.py
M ai/github-copilot-cli/pkg-descr
A ai/github-copilot-cli/pkg-message
R ai/github-copilot-cli/pkg-plist
Log Message:
-----------
ai/github-copilot-cli: switch to the prebuilt Linux binary, fix ENOEXEC
Replace the npm-built port with the upstream copilot-linux-x64 release
running under Linux emulation, and keep the old npm-based port as
ai/github-copilot-cli-legacy.
The upstream binary is a single-file Node SEA: postject injects a large
LOAD/NOTE segment and relocates the program header table ~45MB into the
file. The kernel image activator only accepts program headers within the
first page (sys/kern/imgact_elf.c), so exec(2) failed with ENOEXEC and the
installed copilot binary could not run at all.
files/relocate-phdrs.py rewrites the table over the stale pre-injection
copy at offset 64, dropping PT_PHDR so the 14 remaining entries fit in
front of .interp. The kernel then derives AT_PHDR from the PT_LOAD that
maps file offset 0, so ld.so and the dl_iterate_phdr lookup the SEA uses
to find its payload still see every segment.
While here: add the mandatory LICENSE, correct CATEGORIES, add a
pkg-message warning that upstream self-update reinstates the unrunnable
binary, and regenerate distinfo without the unreferenced arm64 distfile.
AI-Assisted-by: Claude Opus 5 <noreply at anthropic.com>
Signed-off-by: Lucas Holt <luke at foolishgames.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list