New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[vcpkg] initial openbsd (community) support #14549
[vcpkg] initial openbsd (community) support #14549
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Thanks so much for working on this, just some minor review comments 😄
@strega-nil Thanks, I'll work through your review. I also forgot to add a patched pkg-config to the PR (They ship a custom pkg-config implementation which lacks the |
Please ignore the CI failures, it's not relate to this change, I will rerun the PR after it fixed in baseline. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll run the scripts to update the docs before merging :)
|
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
9e387c1
to
b10223c
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@jgilje thanks so much! |
* initial openbsd support in vcpkg * after clang-format * hardcoded in the preferred compiler for openbsd in bootstrap scipt (thanks @TorMFinn) * Fetch a patched pkg-config because openbsd pkg-config lacks {fcfiledir} * fixes from review feedback * corrected hash for pkg-config.openbsd * re-added missing endif() * regenerate docs * Update scripts/cmake/vcpkg_configure_meson.cmake Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com>
Describe the pull request
This PR adds OpenBSD support for vcpkg. I've tested a couple of packages so far, which compile fine (libpq, botan, brotli, sdl2 with dependencies).The triplet-definition is added in the community folder. The patch consists mostly of a set of defines, I was helped in large part by looking at the previous FreeBSD support.
I've defaulted the port to use clang as the gcc included with OpenBSD is quite old (the last GPL2 release). In vcpkg_configure_make(), I've changed the behaviour when running configure to lookup bash in path first.
Quick instructions (included in the triplet file)
Bootstrap using
CC=/usr/bin/clang CXX=/usr/bin/clang++ ./bootstrap-vcpkg.sh
Use with
VCPKG_FORCE_SYSTEM_BINARIES=1 ./vcpkg install brotli
What does your PR fix?
OpenBSD support for vcpkg
Which triplets are supported/not supported? Have you updated the CI baseline?
x64-openbsd
Does your PR follow the maintainer guide?
Yes