Bug 1025979 - gtest 1.6.0 does not work with gmock on F19
gtest 1.6.0 does not work with gmock on F19
Product: Fedora
Classification: Fedora
Component: gtest (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Terje Røsten
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-11-02 14:00 EDT by Benedikt Gollatz
Modified: 2013-11-04 10:09 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-11-04 10:09:28 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Benedikt Gollatz 2013-11-02 14:00:56 EDT
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):

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

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 10:09:28 EST
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.

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