Repository navigation
Commit dcd90ab
neilpang
[openbsd] Add OpenBSD CI job to GitHub Actions
.builds/openbsd.yml last produced a passing result on 2023-11-10. The
job after that, #1520293 on 2025-06-28, failed, and nothing has run on
builds.sr.ht since; the SourceHut badge in README currently reads
"builds: failure". No sr.ht context appears on any of the last 19
commits here either, so even when those builds did run, their result was
never visible on a commit or a pull request in this repository.
This adds a job that runs the build in an OpenBSD 7.9 VM on a
GitHub-hosted runner:
autotools autoreconf -vif; configure; make
legacy ./Configure -n openbsd; make; bash ./check.bash openbsd
libtool has to come from packages. OpenBSD's base /usr/bin/libtool is a
different program and brings no GNU libtool m4 files, so without the
package aclocal cannot find LT_INIT and autoreconf stops at
Makefile.am:100: you'll need to arrange for the Libtool m4 files
Makefile.am:100: to be found by aclocal
autoreconf-2.72: error: automake failed with exit status: 1
after which the half-written configure dies with
configure[3882]: syntax error: `disable-fast-install' unexpected
.builds/openbsd.yml installs libtool for the same reason. autoconf and
automake are pinned to a package version because pkg_add reports both
names as ambiguous -- 7.9 packages eighteen autoconf versions and twelve
automake versions -- and AUTOCONF_VERSION / AUTOMAKE_VERSION have to
agree with whichever is installed.
"make check" is deliberately not run on the autotools build. It fails
tests/LTbasic2 there with "opened regular file wasn't found"; that test
is not part of the legacy suite, and the two paths end up with very
different flag sets, since configure.ac's openbsd arm sets only
LSOF_VERS while Configure also sets HASIPv6, HAS_SYS_PIPEH and
HAS_STRFTIME. That is left for a separate change.
Verified on GitHub Actions, OpenBSD 7.9:
bash ./check.bash openbsd
successful: 14
skipped: 0
failed: 0
All 14 test cases are passed successfully1 parent 409c680 commit dcd90ab
1 file changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
0 commit comments