Red Hat Bugzilla – Bug 1025979
gtest 1.6.0 does not work with gmock on F19
Last modified: 2013-11-04 10:09:28 EST
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>)
In my case, always.
Steps to Reproduce:
1. Clone amarok from <git://anongit.kde.org/amarok.git>.
2. Build it.
Building tests fails because gtest-config --version outputs an error message about version mismatch with gmock instead of a version number.
We should have a matching version of gtest installed.
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.
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.