Fix GH Actions Windows CI: switch from pkgconf to pkg-config #4059
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This fixes this CI error that has appeared recently.
MSYS2 recently updated (msys2/MINGW-packages#13257) its version of pkgconf, which is an alternative implementation of the "classic" pkg-config, with both providing the
pkg-config
binary. It seems that this does no longer work correctly (concretely,pkg-config --modversion pkg1 pkg2 pkg3 ...
is supposed to output the version numbers for all arguments, butpkgconf
returns at most two versions).To fix this, I removed cmake (as it requires pkgconf), and we now install pkg-config manually, as putting it in the
install
block above causes it to be silently elided, as the mingw-w64-x86_64-toolchain group containspkgconf
.Checklist
interface-CHANGELOG.md
interface-CHANGELOG.md