10000 [testing] Validate PKG_CONFIG_PATH cases on Windows by uilianries · Pull Request #18388 · conan-io/conan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[testing] Validate PKG_CONFIG_PATH cases on Windows #18388

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

Draft
wants to merge 5 commits into
base: develop2
Choose a base branch
from

Conversation

uilianries
Copy link
Member

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:

PKG_CONFIG_PATH='/c/users/runneradmin/.conan2/p/b/ffmpef3af080da2c28/b/build-release/conan:C:\hostedtoolcache\windows\Python\3.10.11\x64/lib/pkgconfig:/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig'

This PR tries to reproduce the known case in Conan client tests.

  • Refer to the issue that supports this Pull Request.
  • If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
  • I've read the Contributing guide.
  • I've followed the PEP8 style guides for Python code.
  • I've opened another PR in the Conan docs repo to the develop branch, documenting this one.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0