Files
packages/libs/protobuf/protobuf-compat/patches/100-rename-protoc.patch
T
George Sapkin 1955859cd4 protobuf: move existing package to protobuf-compat
Move existing protobuf package to protobuf-compat to support packages that
don't work with modern version of Protobuf.

Install headers and libraries into /usr/protobuf-compat so as not to
confuse other packages with duplicate headers, and to prevent paths
conflicts with non-compat Protobuf.

Install link protoc as protoc-compat.

Signed-off-by: George Sapkin <george@sapk.in>
2026-05-13 20:57:12 +03:00

10 lines
353 B
Diff

--- a/cmake/protoc.cmake
+++ b/cmake/protoc.cmake
@@ -12,5 +12,5 @@ add_executable(protoc ${protoc_files} ${
target_link_libraries(protoc libprotoc libprotobuf)
add_executable(protobuf::protoc ALIAS protoc)
-set_target_properties(protoc PROPERTIES
+set_target_properties(protoc PROPERTIES OUTPUT_NAME protoc-compat
VERSION ${protobuf_VERSION})