Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823902 - dev-libs/libphonenumber-8.12.37[-test] fails with "Can't find Google C++ Testing Framework: can't locate gtest/gtest.h."
Summary: dev-libs/libphonenumber-8.12.37[-test] fails with "Can't find Google C++ Test...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 823946 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-11-16 05:08 UTC by Markus
Modified: 2021-11-16 11:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus 2021-11-16 05:08:22 UTC
Due to kde-apps/kitinerary-21.08.3-r1 it is required now.

Reproducible: Always

Steps to Reproduce:
1. Do not have dev-cpp/gtest installed.
2. Emerge dev-libs/libphonenumber without test use-flag.
Actual Results:  
Fails in configure phase with:
CMake Error at /var/tmpfs/portage/dev-libs/libphonenumber-8.12.37/work/libphonenumber-8.12.37/tools/cpp/gtest.cmake:29 (message):
  Can't find Google C++ Testing Framework: can't locate gtest/gtest.h.
  Please read the README and also take a look at tools/cpp/gtest.cmake.
Call Stack (most recent call first):
  /var/tmpfs/portage/dev-libs/libphonenumber-8.12.37/work/libphonenumber-8.12.37/tools/cpp/CMakeLists.txt:26 (find_or_build_gtest)


-- Configuring incomplete, errors occurred!


Expected Results:  
Builds.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-16 05:29:59 UTC
Please do include the full build.log for reports like this if you can (and the referenced CMake*.txt files it should mention).

And emerge --info.
Comment 2 Andreas Sturmlechner gentoo-dev 2021-11-16 10:11:47 UTC
*** Bug 823946 has been marked as a duplicate of this bug. ***
Comment 3 Larry the Git Cow gentoo-dev 2021-11-16 11:03:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e66040a0ed9da569a73663026e362c50a492c3a

commit 9e66040a0ed9da569a73663026e362c50a492c3a
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-11-16 10:54:59 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-11-16 11:03:04 +0000

    dev-libs/libphonenumber: Fix testing.patch, restrict tests
    
    Set CMAKE_USE_DIR instead of S to make git patches apply.
    
    Closes: https://bugs.gentoo.org/823902
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/libphonenumber-8.12.37-cmake.patch       |  8 +--
 .../files/libphonenumber-8.12.37-testing.patch     | 68 ++++++++++++++++++----
 .../libphonenumber/libphonenumber-8.12.37.ebuild   |  6 +-
 3 files changed, 63 insertions(+), 19 deletions(-)