Bug 1925617 - gtest 1.10 CMake is unusable unless gmock is installed
Summary: gtest 1.10 CMake is unusable unless gmock is installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gtest
Version: 33
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-05 16:54 UTC by Matthew Woehlke
Modified: 2021-04-24 20:04 UTC (History)
5 users (show)

Fixed In Version: gtest-1.10.0-6.fc32 gtest-1.10.0-6.fc33 gtest-1.10.0-6.fc34
Clone Of:
Environment:
Last Closed: 2021-04-13 14:19:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Matthew Woehlke 2021-02-05 16:54:22 UTC
Description of problem:
CMake projects cannot use Google Test unless Google Mock is also installed.

Version-Release number of selected component (if applicable):
gtest-1.10.0-3.fc33

How reproducible:
Always

Steps to Reproduce:
1. dnf install gtest-devel
2. dnf remove gmock
3. create a CMake project that just tries to find_package(GTest CONFIG)

Actual results:
CMake Error at /usr/lib64/cmake/GTest/GTestTargets.cmake:112 (message):
  The imported target "GTest::gmock" references the file

     "/usr/lib64/libgmock.so.1.10.0"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/GTest/GTestTargets.cmake"

  but not all the files it references.

Expected results:
Project configures successfully.

Additional info:
I'm not sure if this is an upstream issue, or if gtest-devel should just require gmock-devel.

Comment 1 Terje Røsten 2021-04-05 17:56:49 UTC
Seems like only gmock and that gmock-devel is not required?

Comment 2 Fedora Update System 2021-04-05 20:54:42 UTC
FEDORA-2021-373cb6db89 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-373cb6db89

Comment 3 Fedora Update System 2021-04-05 20:54:43 UTC
FEDORA-2021-f19c33c4c8 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-f19c33c4c8

Comment 4 Fedora Update System 2021-04-05 20:54:43 UTC
FEDORA-2021-cd4250fe5c has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-cd4250fe5c

Comment 5 Fedora Update System 2021-04-06 01:06:59 UTC
FEDORA-2021-f19c33c4c8 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-f19c33c4c8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-f19c33c4c8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-04-06 01:15:35 UTC
FEDORA-2021-373cb6db89 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-373cb6db89`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-373cb6db89

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-04-06 01:17:36 UTC
FEDORA-2021-cd4250fe5c has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-cd4250fe5c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-cd4250fe5c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-04-13 14:19:39 UTC
FEDORA-2021-cd4250fe5c has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2021-04-13 14:29:57 UTC
FEDORA-2021-f19c33c4c8 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2021-04-24 19:43:47 UTC
FEDORA-2021-373cb6db89 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-04-24 20:04:16 UTC
FEDORA-2021-373cb6db89 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.