-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use cpp_info.name lower case in pkg-config generator when defined #5988
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think this is the least bad approach at the moment. Not happy about it, just impact minimization, but lets go with it.
for _, cpp_info in self.deps_build_info.dependencies: | ||
ret["%s.pc" % cpp_info.name] = self.single_pc_file_contents(cpp_info) | ||
for depname, cpp_info in self.deps_build_info.dependencies: | ||
name = cpp_info.name.lower() if cpp_info.name != depname else depname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, if cpp_info.name == depname
it won't go lowercase?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's what the logic says 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, but is it expected? AFAIK pkg-config file should be always in lower-case, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have seen that it is a very extended practice, but AFAIK pkg-config does not force the name to be lower-case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked:
http://manpages.ubuntu.com/manpages/cosmic/man5/pc.5.html
https://dev.gentoo.org/~mgorny/pkg-config-spec.html
there is no hard requirement for lower-case name
Changelog: Bugfix: Use cpp_info.name lower case in pkg-config generator when defined
Docs: omit
develop
branch, documenting this one.Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.