Skip to content
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

[bug] PkgConfig not using buildenv? #15099

Closed
jasal82 opened this issue Nov 14, 2023 · 2 comments
Closed

[bug] PkgConfig not using buildenv? #15099

jasal82 opened this issue Nov 14, 2023 · 2 comments

Comments

@jasal82
Copy link
Contributor

jasal82 commented Nov 14, 2023

Environment details

  • Conan version: 1.61.0

Steps to reproduce

When I use PkgConfig in a recipe which has a Yocto toolchain package in its build requirements the environment variables set by this package via buildenv_info are not visible to PkgConfig. However, when I set the same variables with env_info it works fine. I think this is not the intended behavior. Yocto toolchains set PKG_CONFIG_PATH so that the pkg-config executable can find the correct .pc files. Without this variable it will query the host system instead.

Logs

No response

@jasal82
Copy link
Contributor Author

jasal82 commented Nov 14, 2023

But it could also be that I am simply using it incorrectly. What is the intended pattern for passing environment variables like CC, CXX, CFLAGS and so on from a build_requires to other recipes in the dependency graph? Following the naming scheme I would have thought that buildenv_info is the correct one, but the current documentation is a bit thin.

@memsharded
Copy link
Member

Sorry this was not responded back then.

There is a more thorough discussion about this in #14422, and the solution is being documented in conan-io/docs#3811. I think this ticket can be closed, and we can follow up in those other ones, thanks!

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

No branches or pull requests

2 participants