Skip to contentSkip to conversation

package/protobuf-c: bump to version 1.5.1

Buildroot Arnout Vandecappelle via buildroot 1 participant 1 message Feb 28, 2025

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=03c498f1bc1ab9ee1ca305b9fce02a088e514a32
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next

License hash changed due to year update:
https://github.com/protobuf-c/protobuf-c/commit/53e0b201db240694f8c8aabf0d0b579de33bf24d

Drop patches which are now upstream.

---
 ...Protect-against-being-invoked-against-edi.patch | 57 ---------------
 ...-FieldSyntax-to-maximize-compatibility-ac.patch | 84 ----------------------
 ...or-GenerateHeader-Set-min_header_version-.patch | 44 ------------
 package/protobuf-c/protobuf-c.hash                 |  4 +-
 package/protobuf-c/protobuf-c.mk                   |  2 +-
 5 files changed, 3 insertions(+), 188 deletions(-)
package/protobuf-c/0001-CGenerator-Protect-against-being-invoked-against-edi.patch deleted +0 -57
deleted file mode 100644
index c674ca2ee1..0000000000
@@ -1,57 +0,0 @@
-From 2480f4d9d2fa97e5511ed0914ee529a344e969a7 Mon Sep 17 00:00:00 2001
-From: Robert Edmonds <[email protected]>
-Date: Wed, 20 Mar 2024 22:43:30 -0400
-Subject: [PATCH] CGenerator: Protect against being invoked against "edition"
- syntax .proto files
-
-The Google protobuf project is currently experimenting with a new syntax
-for .proto files called "editions". Since protobuf-c is a proto2/proto3
-compiler, after the previous commit reimplementing `FieldSyntax()`, the
-protobuf compiler will abort like this if presented with an "editions"
-syntax .proto file due to the safety check in `FieldSyntax()`:
-
-    $ protoc --experimental_editions --c_out=. test.proto
-    protoc-gen-c: ./protoc-c/c_helpers.h:178: int google::protobuf::compiler::c::FieldSyntax(const google::protobuf::FieldDescriptor*): Assertion `syntax == "proto2" || syntax == "proto3"' failed.
-    --c_out: protoc-gen-c: Plugin killed by signal 6.
-
-On protobuf 26, our `CodeGenerator` can implement certain methods to
-declare that we "support" editions, and then reject any other edition
-except proto2 and proto3, which have apparently been retroactively
-declared to be "editions". Of course this needs to be wrapped in a
-version guard.
-
-With this protection in place, the protobuf compiler cleanly exits with
-a nice error message like this:
-
-    $ protoc --experimental_editions --c_out=. test.proto
-    WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
-    E0000 00:00:1710988958.296200   20022 descriptor.cc:4620] Invalid proto descriptor for file "test.proto":
-    E0000 00:00:1710988958.296239   20022 descriptor.cc:4623]   test.proto: Edition 2023 is later than the maximum supported edition PROTO3
-    --c_out: protoc-gen-c: Plugin failed with status code 1.
-
-Signed-off-by: James Hilliard <[email protected]>
-Upstream: https://github.com/protobuf-c/protobuf-c/pull/711
----
- protoc-c/c_generator.h | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/protoc-c/c_generator.h b/protoc-c/c_generator.h
-index b8b44aa..4aeb579 100644
---- a/protoc-c/c_generator.h
-+++ b/protoc-c/c_generator.h
-@@ -93,6 +93,12 @@ class PROTOC_C_EXPORT CGenerator : public CodeGenerator {
-                 const std::string& parameter,
-                 OutputDirectory* output_directory,
-                 std::string* error) const;
-+
-+#if GOOGLE_PROTOBUF_VERSION >= 5026000
-+  uint64_t GetSupportedFeatures() const { return CodeGenerator::FEATURE_SUPPORTS_EDITIONS; }
-+  Edition GetMinimumEdition() const { return Edition::EDITION_PROTO2; }
-+  Edition GetMaximumEdition() const { return Edition::EDITION_PROTO3; }
-+#endif
- };
- 
- }  // namespace c
--- 
-2.34.1
-
package/protobuf-c/0002-Reimplement-FieldSyntax-to-maximize-compatibility-ac.patch deleted +0 -84

84 lines not on this page · raw message

package/protobuf-c/0003-FileGenerator-GenerateHeader-Set-min_header_version-.patch deleted +0 -44

44 lines not on this page · raw message

package/protobuf-c/protobuf-c.hash +2 -2
index aafd98416a..ea7262028c 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  7b404c63361ed35b3667aec75cc37b54298d56dd2bcf369de3373212cc06fd98  protobuf-c-1.5.0.tar.gz
-sha256  ad28bbf89340b86d15aad1ff62c4f4590025d836415307dc66cf0338235cc2f4  LICENSE
+sha256  20d1dc257da96f8ddff8be4dd9779215bbd0a6069ed53bbe9de38fa7629be06b  protobuf-c-1.5.1.tar.gz
+sha256  2d1d028bd27f8c85bc970d720519d2069ca6213fcb26b9dea444a7c39d24bbb3  LICENSE
package/protobuf-c/protobuf-c.mk +1 -1
index 2b3e86a1bc..b1e8c25496 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-PROTOBUF_C_VERSION = 1.5.0
+PROTOBUF_C_VERSION = 1.5.1
 PROTOBUF_C_SITE = https://github.com/protobuf-c/protobuf-c/releases/download/v$(PROTOBUF_C_VERSION)
 PROTOBUF_C_DEPENDENCIES = host-protobuf-c
 HOST_PROTOBUF_C_DEPENDENCIES = host-protobuf host-pkgconf

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot