Skip to content

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>
qmfrederik added a commit to qmfrederik/conan-gnustep that referenced this pull request Jul 21, 2025
This conflicts with the use of PkgConfig - see conan-io/conan#18388
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