FS#50305 - [gtest] 1.7.0-4 cannot find gtest.pc.in file

Attached to Project: Community Packages
Opened by Wojciech Kozlowski (Wojtek242) - Sunday, 07 August 2016, 16:52 GMT
Last edited by Levente Polyak (anthraxx) - Sunday, 07 August 2016, 23:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

CMake cannot find file gtest.pc.in which it expects to be in /usr/src/gtest/

The file exists, but is in usr/lib/pkgconfig/

I temporarily fixed my installation by making symbolic link from the place CMake expects it to be to where it currently is

Additional info:
* package version: 1.7.0-4

* config and/or log files etc.

% cmake -G "Unix Makefiles" ..
...
CMake Error: File /usr/src/gtest/gtest.pc.in does not exist.
CMake Error at /usr/src/gtest/CMakeLists.txt:33 (configure_file):
configure_file Problem configuring file
...


Steps to reproduce:

Add /usr/src/gtest subdirectory to a CMake project and attempt to generate "Unix Makefiles"
This task depends upon

Closed by  Levente Polyak (anthraxx)
Sunday, 07 August 2016, 23:51 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.7.0-5
Comment by Levente Polyak (anthraxx) - Sunday, 07 August 2016, 22:53 GMT
it does not make much sense that it tries to generate gtest.pc from gtest.pc.in. Also note that the file in usr/lib/pkgconfig/ is different, as that's the already processed output.
Can you try to comment out line 33 from CMakeLists, does that solve your problem? (remember to remove your symlink before testing)
Comment by Wojciech Kozlowski (Wojtek242) - Sunday, 07 August 2016, 23:05 GMT
Removing the symlink and commenting line 33 in the gtest CMakeLists works as well.
Comment by Levente Polyak (anthraxx) - Sunday, 07 August 2016, 23:07 GMT
i'm correcting this issue that way then... I accidentally introduced that by creating and shipping the pkgconfig file.
thanks for verification

Loading...