forked from pool/protobuf
- update to 21.9: * Ruby * Replace libc strdup usage with internal impl to restore musl compat (#10818) * Auto capitalize enums name in Ruby (#10454) (#10763) * Other * Fix for grpc.tools #17995 & protobuf #7474 (handle UTF-8 paths in argumentfile) (#10721) * C++ * 21.x No longer define no_threadlocal on OpenBSD (#10743) * Java * Mark default instance as immutable first to avoid race during static initialization of default instances (#10771) * Refactoring java full runtime to reuse sub-message builders and prepare to migrate parsing logic from parse constructor to builder. * Move proto wireformat parsing functionality from the private "parsing constructor" to the Builder class. * Change the Lite runtime to prefer merging from the wireformat into mutable messages rather than building up a new immutable object before merging. This way results in fewer allocations and copy operations. * Make message-type extensions merge from wire-format instead of building up instances and merging afterwards. This has much better performance. * Fix TextFormat parser to build up recurring (but supposedly not repeated) sub-messages directly from text rather than building a new sub-message and merging the fully formed message into the existing field. OBS-URL: https://build.opensuse.org/request/show/1032198 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/protobuf?expand=0&rev=133
86 lines
3.6 KiB
Diff
86 lines
3.6 KiB
Diff
From 15daef3b7912b9434955a8614e018de00591aefb Mon Sep 17 00:00:00 2001
|
|
From: Deanna Garcia <deannagarcia@google.com>
|
|
Date: Wed, 3 Aug 2022 17:40:03 +0000
|
|
Subject: [PATCH 1/2] Use release version instead of libtool version
|
|
|
|
---
|
|
src/Makefile.am | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
Index: protobuf-21.9/src/Makefile.am
|
|
===================================================================
|
|
--- protobuf-21.9.orig/src/Makefile.am
|
|
+++ protobuf-21.9/src/Makefile.am
|
|
@@ -18,7 +18,7 @@ else
|
|
PTHREAD_DEF =
|
|
endif
|
|
|
|
-PROTOBUF_VERSION = 32:9:0
|
|
+PROTOBUF_VERSION = 3.21.9
|
|
|
|
if GCC
|
|
# Turn on all warnings except for sign comparison (we ignore sign comparison
|
|
@@ -188,7 +188,7 @@ nobase_include_HEADERS =
|
|
lib_LTLIBRARIES = libprotobuf-lite.la libprotobuf.la libprotoc.la
|
|
|
|
libprotobuf_lite_la_LIBADD = $(PTHREAD_LIBS) $(LIBATOMIC_LIBS)
|
|
-libprotobuf_lite_la_LDFLAGS = -version-info $(PROTOBUF_VERSION) -export-dynamic -no-undefined
|
|
+libprotobuf_lite_la_LDFLAGS = -release $(PROTOBUF_VERSION) -export-dynamic -no-undefined
|
|
if HAVE_LD_VERSION_SCRIPT
|
|
libprotobuf_lite_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotobuf-lite.map
|
|
EXTRA_libprotobuf_lite_la_DEPENDENCIES = libprotobuf-lite.map
|
|
@@ -235,7 +235,7 @@ libprotobuf_lite_la_SOURCES =
|
|
google/protobuf/wire_format_lite.cc
|
|
|
|
libprotobuf_la_LIBADD = $(PTHREAD_LIBS) $(LIBATOMIC_LIBS)
|
|
-libprotobuf_la_LDFLAGS = -version-info $(PROTOBUF_VERSION) -export-dynamic -no-undefined
|
|
+libprotobuf_la_LDFLAGS = -release $(PROTOBUF_VERSION) -export-dynamic -no-undefined
|
|
if HAVE_LD_VERSION_SCRIPT
|
|
libprotobuf_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotobuf.map
|
|
EXTRA_libprotobuf_la_DEPENDENCIES = libprotobuf.map
|
|
@@ -320,7 +320,7 @@ libprotobuf_la_SOURCES =
|
|
nodist_libprotobuf_la_SOURCES = $(nodist_libprotobuf_lite_la_SOURCES)
|
|
|
|
libprotoc_la_LIBADD = $(PTHREAD_LIBS) libprotobuf.la
|
|
-libprotoc_la_LDFLAGS = -version-info $(PROTOBUF_VERSION) -export-dynamic -no-undefined
|
|
+libprotoc_la_LDFLAGS = -release $(PROTOBUF_VERSION) -export-dynamic -no-undefined
|
|
if HAVE_LD_VERSION_SCRIPT
|
|
libprotoc_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libprotoc.map
|
|
EXTRA_libprotoc_la_DEPENDENCIES = libprotoc.map
|
|
Index: protobuf-21.9/cmake/libprotobuf-lite.cmake
|
|
===================================================================
|
|
--- protobuf-21.9.orig/cmake/libprotobuf-lite.cmake
|
|
+++ protobuf-21.9/cmake/libprotobuf-lite.cmake
|
|
@@ -112,7 +112,6 @@ if(protobuf_BUILD_SHARED_LIBS)
|
|
endif()
|
|
set_target_properties(libprotobuf-lite PROPERTIES
|
|
VERSION ${protobuf_VERSION}
|
|
- SOVERSION 32
|
|
OUTPUT_NAME ${LIB_PREFIX}protobuf-lite
|
|
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}")
|
|
add_library(protobuf::libprotobuf-lite ALIAS libprotobuf-lite)
|
|
Index: protobuf-21.9/cmake/libprotobuf.cmake
|
|
===================================================================
|
|
--- protobuf-21.9.orig/cmake/libprotobuf.cmake
|
|
+++ protobuf-21.9/cmake/libprotobuf.cmake
|
|
@@ -128,7 +128,6 @@ if(protobuf_BUILD_SHARED_LIBS)
|
|
endif()
|
|
set_target_properties(libprotobuf PROPERTIES
|
|
VERSION ${protobuf_VERSION}
|
|
- SOVERSION 32
|
|
OUTPUT_NAME ${LIB_PREFIX}protobuf
|
|
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}")
|
|
add_library(protobuf::libprotobuf ALIAS libprotobuf)
|
|
Index: protobuf-21.9/cmake/libprotoc.cmake
|
|
===================================================================
|
|
--- protobuf-21.9.orig/cmake/libprotoc.cmake
|
|
+++ protobuf-21.9/cmake/libprotoc.cmake
|
|
@@ -130,7 +130,6 @@ endif()
|
|
set_target_properties(libprotoc PROPERTIES
|
|
COMPILE_DEFINITIONS LIBPROTOC_EXPORTS
|
|
VERSION ${protobuf_VERSION}
|
|
- SOVERSION 32
|
|
OUTPUT_NAME ${LIB_PREFIX}protoc
|
|
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}")
|
|
add_library(protobuf::libprotoc ALIAS libprotoc)
|