Skip to content

Fixes for OpenBSD port - #1825

Merged
TheJJ merged 3 commits into
SFTtech:masterfrom
ligurio:ligurio/gh-xxxx-openbsd-port
Oct 15, 2026
Merged

TheJJ merged 3 commits into
SFTtech:masterfrom
ligurio:ligurio/gh-xxxx-openbsd-port

Conversation

@ligurio

@ligurio ligurio commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

openage with its dependencies (nyan and toml11) was ported to OpenBSD 1

Footnotes

  1. https://github.com/ligurio/openbsd-wip/pull/5 ↩

@TheJJ TheJJ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the fixes! i'll wait to merge if you want to fixup the commit adding you to mailmap, which is unneeded.

Comment thread .mailmap Outdated
TheJJ

This comment was marked as duplicate.

On OpenBSD include <util.h> (for forkpty()/openpty(), provided by
the already-linked libutil), <termios.h>, <sys/types.h> and
<sys/ioctl.h> instead of the missing <pty.h>.

Implement self_exec_filename() on OpenBSD via
sysctl(KERN_PROC_ARGS) argv[0]. OpenBSD has neither
/proc/self/exe nor KERN_PROC_PATHNAME, so the previous code hit a
static_assert; include <sys/sysctl.h> for it.

Define `typedef sig_t` as `sighandler_t` on OpenBSD, which has no
sighandler_t.
Do not link libopenage with '-Wl,--no-undefined' on OpenBSD.
Shared libraries on OpenBSD are not linked against libc, so the
strict undefined-symbol check fails on libc symbols; the flag
setup is reworked so the Apple and other-ELF cases are unchanged.
@ligurio
ligurio force-pushed the ligurio/gh-xxxx-openbsd-port branch from dd35673 to 6bad51e Compare October 15, 2026 06:19
@TheJJ
TheJJ merged commit 8c7d630 into SFTtech:master Oct 15, 2026
14 checks passed
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.

2 participants