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
Invalid formatting of libdir/includedir in pkg_config generator [bug] #2756
Comments
Hi @coffee-lord ! Thanks you so much fot the detailed report. Seems it is a bug with absolute paths as you said, mainly affecting recipes with We will try to fix it for the next release. |
Seems the bug has nothing to do with |
@danimtb While we're on the subject, pkg_config generator also doesn't emit |
Hi @coffee-lord Yes, those flags are missing from the logic of the generator. Let's update it with those flags now that we have a PR open for this. Thanks! |
With regards to #2797: 1. conan/conans/client/generators/pkg_config.py Lines 45 to 48 in 8f9f564
Which leads to "Variable 'libdir' not defined" error in pkg-config when
2. Irrelevant rpaths It seems that pkg_config generator outputs rpaths of all dependencies which makes the list of compiler arguments exponentially long. I don't think we need to include rpaths of dependencies at all. Relevant package: |
Yes, the first thing is certainly a bug. Will be solved as soon as possible. Many thanks for your early and detailed feedback! |
Version: conan-1.2.3
OS: Linux
conan/conans/client/generators/pkg_config.py
Lines 28 to 36 in ac25c89
pkg_config
generator doesn't check if libdir or includedir are absolute paths which leads to the following (invalid).pc
being generated forboost_math/1.66.0@bincrafters/stable
:The text was updated successfully, but these errors were encountered: