macOS: infraternal-shim portability #300

Closed
opened 2026-11-02 01:15:13 +00:00 by kayg · 1 comment
Owner

Scope

Make the infraternal-shim crate compile for macOS with the smallest platform-specific changes. This issue tracks compile portability only; it does not authorize implementing macOS session behavior.

Evidence

On infraternal-macos-01-std (macOS 26.5.2, arm64), native Cargo for the J80 daemon reached Rust compilation and failed in infraternal-shim before the Mesh registration test:

  • session.rs: unresolved nix::sys::signalfd and nix::sys::socket::sockopt::PeerCredentials.
  • pty.rs: unistd::getgrouplist and unistd::setgroups are unavailable under the selected target/features.
  • pty.rs: nix::libc::SIGRTMAX is unavailable on Darwin.
  • pty.rs: Darwin flistxattr requires a fourth flags argument.
  • pty.rs: Darwin ioctl expects a wider request type for TIOCSCTTY.

Build log: /tmp/J80-registry-red-2.log on the Mac VM.

Requested follow-up

Determine the narrowest compile-time boundary for Linux session/shim operations, or add minimal Darwin cfgs where the code is shared. Do not claim that sessions work on macOS unless their runtime behavior is separately implemented and tested.

## Scope Make the infraternal-shim crate compile for macOS with the smallest platform-specific changes. This issue tracks compile portability only; it does not authorize implementing macOS session behavior. ## Evidence On `infraternal-macos-01-std` (macOS 26.5.2, arm64), native Cargo for the J80 daemon reached Rust compilation and failed in `infraternal-shim` before the Mesh registration test: - `session.rs`: unresolved `nix::sys::signalfd` and `nix::sys::socket::sockopt::PeerCredentials`. - `pty.rs`: `unistd::getgrouplist` and `unistd::setgroups` are unavailable under the selected target/features. - `pty.rs`: `nix::libc::SIGRTMAX` is unavailable on Darwin. - `pty.rs`: Darwin `flistxattr` requires a fourth flags argument. - `pty.rs`: Darwin `ioctl` expects a wider request type for `TIOCSCTTY`. Build log: `/tmp/J80-registry-red-2.log` on the Mac VM. ## Requested follow-up Determine the narrowest compile-time boundary for Linux session/shim operations, or add minimal Darwin cfgs where the code is shared. Do not claim that sessions work on macOS unless their runtime behavior is separately implemented and tested.
Author
Owner

J210 owner-authorized housekeeping: closing this duplicate record as superseded by #320, which tracks the same work and retains its implementation/evidence. This closure does not assert that all successor follow-ups are complete.

J210 owner-authorized housekeeping: closing this duplicate record as superseded by [#320](https://git.kayg.org/kayg/infraternal/issues/320), which tracks the same work and retains its implementation/evidence. This closure does not assert that all successor follow-ups are complete.
kayg closed this issue 2026-11-04 17:04:53 +00:00
Sign in to join this conversation.
No labels
launch-qa
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
kayg/infraternal#300
No description provided.