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

[feature] Make the generation order of .pc files deterministic for PkgConfigDeps and pkg_config #10341

Closed
czoido opened this issue Jan 14, 2022 · 0 comments · Fixed by #10344
Closed

Comments

@czoido
Copy link
Contributor

czoido commented Jan 14, 2022

After the discussion here and here we have decided to provide as a feature the possibility to force one component to overwrite the .pc file of the main root cpp_info and leave the user to take responsibility for this behavior. So, if for example a recipe defines this cpp_info:

    def package_info(self):
        self.cpp_info.set_property("pkg_config_name", "samplerate")
        self.cpp_info.components["onecomponent"].set_property("pkg_config_name", "samplerate")

When we install this package with pkg_config or PkgConfigDeps generator, the .pc file that will be generated is the one corresponding to the component.

@czoido czoido added this to the 1.45 milestone Jan 14, 2022
domin144 added a commit to domin144/conan that referenced this issue Aug 4, 2023
This fix is related to conan-io#10341
The previous fix did not take into account cases insensitive
filesystems. As a result the issue was still present on Windows.
OpenEXR is an example of affected recipe.
domin144 added a commit to domin144/conan that referenced this issue Aug 7, 2023
This fix is related to conan-io#10341
The previous fix did not take into account cases insensitive
filesystems. As a result the issue was still present on Windows.
OpenEXR is an example of affected recipe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants