Bug 1025979

Summary: gtest 1.6.0 does not work with gmock on F19
Product: [Fedora] Fedora Reporter: Benedikt Gollatz <benedikt>
Component: gtestAssignee: Terje Røsten <terje.rosten>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: tagoh, terje.rosten, tstclair
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-04 15:09:28 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:

Description Benedikt Gollatz 2013-11-02 18:00:56 UTC
Description of problem:
Fedora 19 only provides gtest-1.6.0, which at least in some instances doesn't work with gmock-1.5.0, which is the only provided gmock in F19.

Version-Release number of selected component (if applicable):
gtest-0:1.6.0-2.fc19.x86_64
gtest-devel-0:1.6.0-2.fc19.x86_64
gmock-0:1.5.0-3.fc18.x86_64
gmock-devel-0:1.5.0-3.fc18.x86_64

(Note that there is no other version of gmock in F19: <http://koji.fedoraproject.org/koji/buildinfo?buildID=387091>)

How reproducible:
In my case, always.

Steps to Reproduce:
1. Clone amarok from <git://anongit.kde.org/amarok.git>.
2. Build it.
3.

Actual results:
Building tests fails because gtest-config --version outputs an error message about version mismatch with gmock instead of a version number.

Expected results:
We should have a matching version of gtest installed.

Additional info:
I was not able to use gmock-1.6.0 from F20 because this didn't include libgmock and only provided a noarch package.

I was able to build gtest-1.5.0 from the F18 spec by adding the -i parameter to autoreconf in the prep phase.

Comment 1 Timothy St. Clair 2013-11-04 15:09:28 UTC
According to upstream documentation, gmock dependencies require a src compilation for it's package with 1.6 & > .  I'm not a fan of this policy and reasoning, but alas that is what the recent update requires.  Thus you will need to compile /usr/src/gmock/gmock-all.cc into your testing sources.  

I've verified this is correct, and works on several other packages.