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

gtest: Add support for Conan V2 #12326

Merged
merged 11 commits into from
Aug 26, 2022

Conversation

jwillikers
Copy link
Contributor

Specify library name and version: gtest/*


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

@jwillikers jwillikers changed the title gtest/*: Add support for Conan V2 gtest: Add support for Conan V2 Aug 18, 2022
@conan-center-bot

This comment has been minimized.

@jwillikers
Copy link
Contributor Author

Fails to build shared due to issue conan-io/conan#11840.

@jwillikers
Copy link
Contributor Author

@uilianries Thanks!

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit fcad296
gtest/1.11.0
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.

@uilianries
Copy link
Member

I just re-triggered again. I could be a runtime error, that's why we don't see a message error.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit fcad296
gtest/cci.20210126
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmockd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtestd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.

@uilianries
Copy link
Member

It failed again, but no clue about.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 55b5a59
gtest/1.10.0
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmockd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtestd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 4c57244
gtest/1.8.1
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmockd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtestd.so' links to system library 'm' but it is not in cpp_info.system_libs.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 4987162
gtest/cci.20210126
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmockd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtestd.so' links to system library 'm' but it is not in cpp_info.system_libs.

@jwillikers
Copy link
Contributor Author

It failed again, but no clue about.

@uilianries I fixed that issue, but now I've hit a weird one both here and in updates to the gtest Conan package in PR #12411.
There's a link error in the test package step when building with Clang and libstdc++.
I'm able to reproduce the link error locally with Conan 1.51.3, too.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit 56c6465
gtest/1.11.0
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtestd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmockd.so' links to system library 'm' but it is not in cpp_info.system_libs.
gtest/1.12.1
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.
gtest/1.10.0
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmockd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtestd.so' links to system library 'm' but it is not in cpp_info.system_libs.
gtest/cci.20210126
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtestd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmockd.so' links to system library 'm' but it is not in cpp_info.system_libs.
gtest/1.8.1
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_main.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmock_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtest_maind.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgmockd.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libgtestd.so' links to system library 'm' but it is not in cpp_info.system_libs.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

cache_variables is not needed in most cases.

recipes/gtest/all/conanfile.py Show resolved Hide resolved
recipes/gtest/all/conanfile.py Show resolved Hide resolved
recipes/gtest/all/conanfile.py Show resolved Hide resolved
recipes/gtest/all/conanfile.py Show resolved Hide resolved
@uilianries
Copy link
Member

It failed again, but no clue about.

@uilianries I fixed that issue, but now I've hit a weird one both here and in updates to the gtest Conan package in PR #12411. There's a link error in the test package step when building with Clang and libstdc++. I'm able to reproduce the link error locally with Conan 1.51.3, too.

Which error? Log?

@jwillikers
Copy link
Contributor Author

It failed again, but no clue about.

@uilianries I fixed that issue, but now I've hit a weird one both here and in updates to the gtest Conan package in PR #12411. There's a link error in the test package step when building with Clang and libstdc++. I'm able to reproduce the link error locally with Conan 1.51.3, too.

Which error? Log?

Nvm, that was due to my incorrect change.

@conan-center-bot

This comment has been minimized.

uilianries
uilianries previously approved these changes Aug 23, 2022
@conan-center-bot
Copy link
Collaborator

All green in build 11 (729f25373a4f804a72f2f5de7f58515e0e4b5783):

  • gtest/1.12.1@:
    All packages built successfully! (All logs)

  • gtest/1.11.0@:
    All packages built successfully! (All logs)

  • gtest/cci.20210126@:
    All packages built successfully! (All logs)

  • gtest/1.8.1@:
    All packages built successfully! (All logs)

  • gtest/1.10.0@:
    All packages built successfully! (All logs)

@conan-center-bot conan-center-bot merged commit 6a041d2 into conan-io:master Aug 26, 2022
@jwillikers jwillikers deleted the gtest-conan-v2 branch August 26, 2022 18:07
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.

4 participants