Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927403

Summary: net-libs/grpc-1.60.0[test] fails to configure: CMake Error at CMakeLists.txt:3369 (add_library): Cannot find source file: third_party/googletest/googlemock/src/gmock-cardinalities.cc
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Jason Zaman <perfinion>
Status: RESOLVED FIXED    
Severity: normal CC: matoro_gentoo, xen0n
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/36711
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 922877    
Attachments: build.log and emerge --info

Description matoro archtester 2024-03-21 14:29:21 UTC
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -O2 -pipe 
C++             -O2 -pipe 
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring done (0.8s)
CMake Error at CMakeLists.txt:3369 (add_library):
  Cannot find source file:

    third_party/googletest/googlemock/src/gmock-cardinalities.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc


CMake Error at CMakeLists.txt:3369 (add_library):
  No SOURCES given to target: gtest


CMake Generate step failed.  Build files cannot be regenerated correctly.

Reproducible: Always
Comment 1 matoro archtester 2024-03-21 14:29:56 UTC
Created attachment 888044 [details]
build.log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-07-01 19:01:21 UTC
The bug has been closed via the following commit(s):

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

commit b30702ef7ad55579b807ede336c6a4603c726bc3
Author:     Matoro Mahri <matoro_gentoo@matoro.tk>
AuthorDate: 2024-05-17 05:03:59 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-07-01 19:01:12 +0000

    net-libs/grpc: add 1.62.1, wire up tests
    
    There are newer releases available but this is the latest that does not
    require abseil-cpp bump.  Not investigating every single failure right
    now as even with all the exclusions this still plugs in 500+ tests that
    were not there before.
    
    Closes: https://bugs.gentoo.org/927403
    Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
    Closes: https://github.com/gentoo/gentoo/pull/36711
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 net-libs/grpc/Manifest                             |   1 +
 net-libs/grpc/files/grpc-1.62.1-system-gtest.patch |  88 +++++++++
 net-libs/grpc/grpc-1.62.1.ebuild                   | 210 +++++++++++++++++++++
 3 files changed, 299 insertions(+)