Promote f718fe3493 to main #356

Merged
binjovi-bot merged 1 commit from trunk into main 2026-09-13 17:14:12 +00:00
Collaborator
No description provided.
Build xar with signed char so it works on ARM64
All checks were successful
binjovi/ci Binjovi completed the frozen plan
f718fe3493
The ARM64 zig-builder shipped an xar that printed its usage and exited 1
for every command, so the zelnet macOS .pkg step failed. Both Linux
architectures had already been packaged by then.

xar.c declares `char command = 0, c;` and loops on
`(c = getopt_long(...)) != -1`. A plain char is signed on x86_64, so the
loop ends. It is unsigned on ARM64, where -1 lands as 255: the loop never
ends, and the next pass falls to the switch default, which prints the
usage and exits. Upstream has not changed since 2014, so this appeared
the moment the image was built for the architecture that runs it.

-fsigned-char gives the code the char signedness it was written for.

The stage now builds an archive and reads it back. `xar --version`
answered on a binary that could not archive anything, so the old check
proved nothing.

Claude-Session: https://claude.ai/code/session_01XdBRc9CHgFhAxCyHbdVtt6
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sean/builder-images!356
No description provided.