[testing] Validate PKG_CONFIG_PATH cases on Windows #18388
Draft
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.
Related to conan-io/conan-center-index#2743, conan-io/setup-conan#4 and #16963 (comment)
When consuming the Conan GH action setup-conan, and trying to build ffmpeg from source, it will require the tool package msys2 as well, and a separated package for pkg-config tool.
The setup-conan uses setup-python to install Conan client, which injects PKG_CONFIG_PATH using Windows path style. At same time, Conan client, when running pkg-config, prepends the generator folder path using unix path, the supported one. The result is a mixed path style in the PKG_CONFIG_PATH which is not supported by pkg-config: https://www.msys2.org/docs/pkgconfig/#syntax-paths-escaping
The environment variable looks like:
This PR tries to reproduce the known case in Conan client tests.
develop
branch, documenting this one.