android-tools: rebuild against protobuf-23.3_1
This commit is contained in:
parent
2b2991c008
commit
ac3172e698
srcpkgs/android-tools
31
srcpkgs/android-tools/patches/protobuf-23.patch
Normal file
31
srcpkgs/android-tools/patches/protobuf-23.patch
Normal file
@ -0,0 +1,31 @@
|
||||
--- android-tools-34.0.1.orig/vendor/extras/libjsonpb/parse/jsonpb.cpp 2023-06-28 23:15:15.414236253 +0200
|
||||
+++ android-tools-34.0.1/vendor/extras/libjsonpb/parse/jsonpb.cpp 2023-06-28 23:34:21.672962973 +0200
|
||||
@@ -51,7 +51,7 @@
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3016000
|
||||
return MakeError<std::string>(status.error_message().as_string());
|
||||
#else
|
||||
- return MakeError<std::string>(status.message().as_string());
|
||||
+ return MakeError<std::string>(std::string(status.message()));
|
||||
#endif
|
||||
}
|
||||
return ErrorOr<std::string>(std::move(json));
|
||||
@@ -68,7 +68,7 @@
|
||||
#if GOOGLE_PROTOBUF_VERSION < 3016000
|
||||
return MakeError<std::monostate>(status.error_message().as_string());
|
||||
#else
|
||||
- return MakeError<std::monostate>(status.message().as_string());
|
||||
+ return MakeError<std::monostate>(std::string(status.message()));
|
||||
#endif
|
||||
}
|
||||
if (!message->ParseFromString(binary)) {
|
||||
--- a/vendor/CMakeLists.partition.txt 2023-03-03 17:18:50.000000000 +0100
|
||||
+++ - 2023-07-10 23:06:19.290718502 +0200
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
add_library(libjsonpbparse STATIC
|
||||
extras/libjsonpb/parse/jsonpb.cpp)
|
||||
-target_link_libraries(libjsonpbparse PRIVATE libbase)
|
||||
+target_link_libraries(libjsonpbparse PRIVATE libbase absl_status)
|
||||
target_include_directories(libjsonpbparse PUBLIC
|
||||
extras/libjsonpb/parse/include)
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Template file for 'android-tools'
|
||||
pkgname=android-tools
|
||||
version=34.0.1
|
||||
revision=1
|
||||
revision=2
|
||||
archs="armv* aarch64* x86_64* i686* ppc64le*"
|
||||
build_style=cmake
|
||||
hostmakedepends="perl go protobuf pkg-config"
|
||||
|
Loading…
Reference in New Issue
Block a user