aports/main/protobuf/soversion.patch

40 lines
1.7 KiB
Diff
Raw Permalink Normal View History

Patch-Source: https://gitlab.archlinux.org/archlinux/packaging/packages/protobuf/-/blob/e93df92fead2d46cc2825a866af3f402d498439c/soversion.patch
use an soversion that actually makes sense and not just the full pkgver
--
diff --git a/cmake/libprotobuf-lite.cmake b/cmake/libprotobuf-lite.cmake
2025-02-05 17:00:41 +01:00
index f343458cf..a76c0f68d 100644
--- a/cmake/libprotobuf-lite.cmake
+++ b/cmake/libprotobuf-lite.cmake
2025-02-05 17:00:41 +01:00
@@ -33,6 +33,7 @@ if(protobuf_BUILD_SHARED_LIBS)
endif()
set_target_properties(libprotobuf-lite PROPERTIES
VERSION ${protobuf_VERSION}
+ SOVERSION ${protobuf_VERSION_MINOR}
OUTPUT_NAME ${LIB_PREFIX}protobuf-lite
2025-02-05 17:00:41 +01:00
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}"
# For -fvisibility=hidden and -fvisibility-inlines-hidden
diff --git a/cmake/libprotobuf.cmake b/cmake/libprotobuf.cmake
2025-02-05 17:00:41 +01:00
index 422754a1a..683373fba 100644
--- a/cmake/libprotobuf.cmake
+++ b/cmake/libprotobuf.cmake
2025-02-05 17:00:41 +01:00
@@ -36,6 +36,7 @@ if(protobuf_BUILD_SHARED_LIBS)
endif()
set_target_properties(libprotobuf PROPERTIES
VERSION ${protobuf_VERSION}
+ SOVERSION ${protobuf_VERSION_MINOR}
OUTPUT_NAME ${LIB_PREFIX}protobuf
2025-02-05 17:00:41 +01:00
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}"
# For -fvisibility=hidden and -fvisibility-inlines-hidden
diff --git a/cmake/libprotoc.cmake b/cmake/libprotoc.cmake
2025-02-05 17:00:41 +01:00
index 38a67aa53..ce922f2b6 100644
--- a/cmake/libprotoc.cmake
+++ b/cmake/libprotoc.cmake
2025-02-05 17:00:41 +01:00
@@ -27,6 +27,7 @@ endif()
set_target_properties(libprotoc PROPERTIES
COMPILE_DEFINITIONS LIBPROTOC_EXPORTS
VERSION ${protobuf_VERSION}
+ SOVERSION ${protobuf_VERSION_MINOR}
OUTPUT_NAME ${LIB_PREFIX}protoc
2025-02-05 17:00:41 +01:00
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}"
# For -fvisibility=hidden and -fvisibility-inlines-hidden