Bug 1025979 - gtest 1.6.0 does not work with gmock on F19
Summary: gtest 1.6.0 does not work with gmock on F19
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: gtest
Version: 19
Hardware: x86_64
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: 2013-11-02 18:00 UTC by Benedikt Gollatz
Modified: 2013-11-04 15:09 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-04 15:09:28 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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