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

Bugfix: PkgConfigDeps generator creates bad Requires references #9635

Conversation

franramirez688
Copy link
Contributor

@franramirez688 franramirez688 commented Sep 20, 2021

Changelog: Bugfix: Fixed bad Requires declaration in *.pc files.
Closes: #9631
Docs: omit

  • 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.

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.

Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, though the code is becoming a little difficult to follow in this class.

conan/tools/gnu/pkgconfigdeps.py Outdated Show resolved Hide resolved
ret["%s.pc" % pkg_genname] = self._pc_file_content(pkg_genname, dep.new_cpp_info,
require_public_deps,
self._get_public_require_deps(dep),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like was getting a list before, and now is going to receive tuples. Or at least the change is not evident.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were getting a list of tuples before, and now a list of strings. I think it's clearer now because we were not using all the values returned.

@franramirez688
Copy link
Contributor Author

Overall looks good, though the code is becoming a little difficult to follow in this class.

Completely agree. I think we need to make a refactor and use templates instead to keep it simpler.

@memsharded memsharded merged commit fbb41f0 into conan-io:develop Sep 20, 2021
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.

new PkgConfigDeps generator creates wrong gtest suite pc files
2 participants