Skip to content

GHA/non-native: BSD overhaul, test more autotools, bump versions - #22145

Closed
vszakats wants to merge 48 commits into
curl:masterfrom
vszakats:am-bsd-more
Closed

vszakats wants to merge 48 commits into
curl:masterfrom
vszakats:am-bsd-more

Conversation

@vszakats

@vszakats vszakats commented Jun 23, 2026 •

Copy link
Copy Markdown
Member
  • add autotools jobs for MidnightBSD, NetBSD, OpenBSD.
    Takes under 3 minutes per new job, under +6m in total.
    • comment out MidnightBSD to save CI time.
    • to make them as fast as possible, skip building tests and examples,
      and omit libidn2, openldap dependencies.
  • add DragonFly BSD cmake job, which finally works.
    (keep it commented out since the package server fails frequently.)
  • do mport index/upgrade to make MidnightBSD autotools builds work.
  • rework filtering MidnightBSD package manager's excessive log output.
  • fixup OpenBSD autotools job to uninstall system curl to avoid linking
    against it (and breaking debug builds).
  • make OpenBSD package manager commands non-interactive.
  • specify install packages for each matrix entry.
  • make autotools build step verbose (to ease debugging).
  • add link to DragonFly BSD package repo.
  • bump cross-platform-actions from 1.1.0 to 1.3.0.
  • bump FreeBSD 15.0 to 15.1.
  • bump OpenBSD to 7.7 to 7.9.
    This did not go well last time with 7.8, let's see with 7.9.
    Ref: 8d00e28 GHA/non-native: revert to OpenBSD 7.7 due to test hangs with 7.8 #19372
    Ref: c3b890b GHA/non-native: bump to OpenBSD 7.8 #19368
  • sync test-skipper keywords with rest of workflows.
  • drop installing impacket. It was unused.
    (also a slow install with many dependencies)

The original motivation was to prepare fixing OpenBSD's (and possibly
other platforms) getaddrinfo() thread-safety check.
Ref: #22138 (comment)

@github-actions github-actions Bot added the CI Continuous Integration label Jun 23, 2026
@vszakats vszakats changed the title GHA/non-native: try adding build-only autotools BSD jobs where missing GHA/non-native: BSD job overhaul Jun 23, 2026
@vszakats vszakats added the build label Jun 23, 2026
@vszakats

vszakats commented Jun 23, 2026 •

Copy link
Copy Markdown
Member Author

Right, on OpenBSD, the autotools build seems to be linking to the system
libcurl, instead of the one just built. Hence missing the debug functions
when building debug mode.

I wonder if this is related to the super weird (and error prone, and maintenance
heavy) way OpenBSD needs to have autotools installed and configured.

In the non-debug build that's not failing:

curl 8.21.0-DEV (x86_64-unknown-openbsd7.9) libcurl/8.20.0 LibreSSL/4.3.0 zlib/1.3.2 nghttp2/1.68.1 ngtcp2/1.22.1 nghttp3/1.15.0

@bagder

bagder commented Jun 23, 2026

Copy link
Copy Markdown
Member

seems to be linking to the system libcurl, instead of the one just built

At least in the past we used to remove the system curl in some jobs to avoid the risk of getting the wrong one. Maybe that's an option for this as well?

@vszakats

Copy link
Copy Markdown
Member Author

seems to be linking to the system libcurl, instead of the one just built

At least in the past we used to remove the system curl in some jobs to avoid the risk of getting the wrong one. Maybe that's an option for this as well?

I'm trying it now, and yes, it worked!:
https://github.com/curl/curl/actions/runs/28038353954/job/82997711652

@vszakats vszakats changed the title GHA/non-native: BSD job overhaul GHA/non-native: BSD overhaul, test more autotools, version bumps Jun 23, 2026
@vszakats vszakats changed the title GHA/non-native: BSD overhaul, test more autotools, version bumps GHA/non-native: BSD overhaul, test more autotools, bump versions Jun 23, 2026
@vszakats vszakats closed this in bf29c3e Jun 23, 2026
@vszakats
vszakats deleted the am-bsd-more branch June 23, 2026 16:11
vszakats added a commit to libssh2/libssh2 that referenced this pull request Jun 23, 2026
To allow adding/testing more build combinations, e.g. with autotools, or
different crypto backends.

- rework filtering MidnightBSD package manager's excessive log output.
- make OpenBSD package manager commands non-interactive.
- specify install packages for each matrix entry.
- readd DragonFly BSD matrix entry, but leave commented.
- bump cross-platform-actions from 1.1.0 to 1.3.0.
- bump FreeBSD 15.0 to 15.1.
- bump OpenBSD to 7.8 to 7.9.
- sync test-skipper keywords with rest of workflow.

Refs:
curl/curl@bf29c3e
curl/curl#22145

Closes #2120
vszakats added a commit that referenced this pull request Oct 7, 2026
MidnightBSD's `mport install` is prone to return a non-zero exit code on
success (hence the need to use `|| true`; also unrelated to the `grep`
filtering, needed to avoid log noise for no built-in option for this).
Work around by verifying success explicitly, so that a truly failed
install command fails in the 'install prereqs' step, instead of raising
a confusing error (e.g. "cmake: not found") in the step after.

Reported-by: Dan Fandrich
Fixes #23291
Follow-up to b158d1c #21681
Follow-up to bf29c3e #22145

Closes #23294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build CI Continuous Integration

Development

Successfully merging this pull request may close these issues.

2 participants