Bug 1925617

Summary: gtest 1.10 CMake is unusable unless gmock is installed
Product: [Fedora] Fedora Reporter: Matthew Woehlke <mwoehlke.floss>
Component: gtestAssignee: Terje Røsten <terje.rosten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: debarshir, helio, stclairt, tagoh, terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gtest-1.10.0-6.fc32 gtest-1.10.0-6.fc33 gtest-1.10.0-6.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-04-13 14:19:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.