Skip to content

Fix FreeBSD build: make getifs conditional - #26

Merged
lance0 merged 1 commit into
masterfrom
fix/freebsd-getifs
Jan 27, 2026
Merged

lance0 merged 1 commit into
masterfrom
fix/freebsd-getifs

Conversation

@lance0

@lance0 lance0 commented Jan 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fix cargo install ttl failing on FreeBSD due to getifs crate using macOS-specific APIs
  • Make getifs a target-specific dependency (Linux + macOS only)
  • Gateway detection returns None on FreeBSD (non-critical feature - just won't show gateway IP in TUI title bar)
  • Add FreeBSD 14.2 CI job via vmactions/freebsd-vm

Test plan

  • Linux build passes
  • Tests pass
  • FreeBSD CI job passes
  • @nullstream confirms cargo install ttl works on FreeBSD 13/14

Fixes #14

@lance0
lance0 force-pushed the fix/freebsd-getifs branch 2 times, most recently from 5f08780 to 0a500ac Compare January 26, 2026 23:41
- getifs uses macOS-specific APIs (NET_RT_IFLIST2, rt_msghdr) that
  don't exist in FreeBSD's libc bindings
- Make getifs a target-specific dependency (Linux + macOS only)
- Gateway detection returns None on FreeBSD (non-critical feature)
- Add FreeBSD 14.2 CI job via vmactions/freebsd-vm

Fixes #14
@lance0
lance0 force-pushed the fix/freebsd-getifs branch from 0a500ac to ae3e0c5 Compare January 26, 2026 23:46
@lance0
lance0 merged commit acf398f into master Jan 27, 2026
@lance0
lance0 deleted the fix/freebsd-getifs branch January 27, 2026 00:08
@nullstream

Copy link
Copy Markdown

Can do.
Will try both versions, RELENG_13 and RELENG_14.

@lance0 lance0 mentioned this pull request Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FreeBSD build.

2 participants