dev-build/ignition-cmake: use proper patch to find protobuf

Signed-off-by: Alexis Ballier <aballier@gentoo.org>
This commit is contained in:
Alexis Ballier
2024-09-06 16:50:49 +02:00
parent 71987d7f3c
commit d9712457ef
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
Index: gz-cmake-ignition-cmake2_2.17.2/cmake/FindIgnProtobuf.cmake
===================================================================
--- gz-cmake-ignition-cmake2_2.17.2.orig/cmake/FindIgnProtobuf.cmake
+++ gz-cmake-ignition-cmake2_2.17.2/cmake/FindIgnProtobuf.cmake
@@ -31,7 +31,7 @@ find_package(Protobuf ${IgnProtobuf_FIND
if(NOT ${Protobuf_FOUND})
# If a config-file was not found, then fall back on the system-installed
# find-module that comes with CMake.
- find_package(Protobuf ${IgnProtobuf_FIND_VERSION})
+ find_package(Protobuf CONFIG REQUIRED)
endif()
set(IgnProtobuf_missing_components "")

View File

@@ -14,6 +14,7 @@ SLOT="2"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=( "${FILESDIR}/protobuf2.patch" )
S="${WORKDIR}/gz-cmake-${PN}2_${PV}"
src_configure() {