]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/commit
protobuf: Update to version 30.2
authorAdolf Belka <adolf.belka@ipfire.org>
Thu, 24 Apr 2025 13:45:43 +0000 (15:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Apr 2025 14:51:44 +0000 (14:51 +0000)
commitdd8b385fc499d3a297e731bd49ab720a4a1fe2de
treeae3127173034eb0dbb51a1a23d852125cdaf7c4e
parenta4e20441ff08401644fc29342338ef8f6bd7984a
protobuf: Update to version 30.2

- Update from version 29.3 to 30.2
- Update of rootfile
- Changes in protobuf required changes in protobuf-c to prevent build crashes. An update
   for protobuf-c is combined in this patch set.
- protobuf, protobuf-c and frr (which depends on those) all built successfully.
- Changelog
    30.2
Compiler
    Restore generator headers in cmake install until the next breaking C++
     release (#20749) (b69f653)
C++
    Remove dllexport attribute on variable definition. (#20833) (7831669)
    Restore generator headers in cmake install until the next breaking C++
     release (#20749) (b69f653)
    Change how we decide which empty string implementation to use. (#20708)
     (221b2a0)
Java
    Remove dllexport attribute on variable definition. (#20833) (7831669)
    Add protobuf_maven artifacts to protobuf_maven_dev as well so they can
     still be referenced correctly using the dev namespace for dev-only
     targets. (#20771) (09b5078)
    Add volatile to featuresResolved (#20766) (b7f06f1)
    Restore generator headers in cmake install until the next breaking C++
     release (#20749) (b69f653)
    Restore custom protobuf maven namespaces to avoid polluting main maven
     namespace for non-dev dependencies as well. (#20739) (f4b0a79)
    Fix Java concurrency issue in feature resolution for old <=3.25.x gencode
     using lazy feature resolution. (#20751) (2dc9f35)
    Fix lite classes in the protobuf-java Maven release to be JDK8 compatible.
     (#20843) (7a4c63b)
Kotlin
    Restore custom protobuf maven namespaces to avoid polluting main maven
     namespace for non-dev dependencies as well. (#20739) (f4b0a79)
Csharp
    Restore generator headers in cmake install until the next breaking C++
     release (#20749) (b69f653)
Objective-C
    Restore generator headers in cmake install until the next breaking C++
     release (#20749) (b69f653)
Python
    Restore generator headers in cmake install until the next breaking C++
     release (#20749) (b69f653)
Ruby
    Restore generator headers in cmake install until the next breaking C++
     release (#20749) (b69f653)
Other
    Restore JDK8 compatibility in Bazel for libraries with dependencies from
     Maven (e.g. //java/util) (#20832) (da9cadc)
    30.1
Bazel
    Loosen py_proto_library check to be on the import path instead of full
     directory (i.e. excluding external/module-name prefix). (#20569) (3576a1f)
Compiler
    Fix python codegen crash when C++ features are used. (#20577) (250c550)
C++
    Fix python codegen crash when C++ features are used. (#20577) (250c550)
Java
    Remove Java runtime classes from kotlin release. (#20607) (4747628)
Kotlin
    Remove Java runtime classes from kotlin release. (#20607) (4747628)
Python
    Fix python codegen crash when C++ features are used. (#20577) (250c550)
Other
    Re-add system_python repo alias to MODULE.bazel (#20662) (ebb5224)
    30.0
Announcements
    This version includes breaking changes to: Objective-C, Python, C++.
        [Objective-C] Remove legacy WKT headers. (d9caebc)
        [Objective-C] Remove deprecated apis. (2a52b90)
        [Objective-C] Remove support for older generated code. (cffa590)
        [Objective-C] Remove GPBUnknownFieldSet. (2b93422)
        [Python] Fix closed enum validation under editions (72b3eda)
        [Python] Remove deprecated GetDebugString() from protobuf python cpp
 extension. (721a452)
        [Python] Remove deprecated reflection methods (292f964)
        [Python] Remove deprecated GetPrototype MessageFactory.GetPrototype(),
 (c261b49)
        [Python] Python nested message class qualname now contains the outer
 message name. (Previous qualname has the same result with name for
 nested message that outer message name was not included) (0720536)
        [Python] Remove deprecated Python RPC Service Interfaces (5ba74b1)
        [Python] Python setdefault behavior change for map field. (81da6b9)
        [Python] Remove deprecated py_proto_library macro.
        [C++] Prohibit using Bazel+MSVC to build protobuf (117e7bb)
        [C++] Remove deprecated Arena::CreateMessage. (d83a536)
        [C++] Remove CMake submodule support in favor of fetched or installed
 dependencies. (3f06ca4)
        [C++] Flip default behavior for handling cmake dependencies. (9cc685e)
        [C++] Add ASAN poisoning after clearing oneof messages on arena.
 (54d068e)
        [C++] Upgrade return type of type_name() and cpp_type_name() from
 const char* to absl::string_view. (a9ad51f)
        [C++] Remove deprecated RepeatedPtrField::ClearedCount(). (e8e3253)
        [C++] Upgrade return type of several string returning functions to
 absl::string_view. (d1990d9)
        [C++] Strip ctype from options in C++ (aebf8b9)
        [C++] Remove MutableRepeatedFieldRef::Reserve() in reflection (913f7b0)
        [C++] Remove deprecated JsonOptions alias. (e2eb0a1)
        [C++] Remove deprecated Arena::GetArena. (30ed452)
Bazel
    Remove reference to cc_proto_aspect (fa02f76)
    Remove deprecated bazel/system_python.bzl alias. (00f108c)
Compiler
    Add notices.h with information about our dependencies' licenses and add
     --notices flag to protoc to print the contents of that file. (a7df327)
    Have the protoc CLI properly report any parser warnings. (cafeaa4)
    Split protoc apart from libprotoc in our cmake configs. (b4b93b3)
    Begin adding extension numbers to SourceCodeInfo and FileDescriptorSet for
     tooling purposes. (9d7236b)
    Fix various unsigned to signed comparison warnings. (#17212) (67de087)
C++
    Fixing staleness tests (6abaf77)
    Add notices.h with information about our dependencies' licenses and add
     --notices flag to protoc to print the contents of that file. (a7df327)
    Backport: Remove if_constexpr usage for future Abseil compatibility
     (#20488) (450ee76)
    Add tests for older gcc versions we still support (#20463) (0778473)
    Fix a bug in handling of implicit-presence string_view fields. (#20403)
     (81196ac)
    Remove rules_rust dependency from MODULE.bazel for 30.x (#20310) (b8248f6)
    Upgrade abseil-cpp to 20250127 and use @com_google_absl -> @abseil-cpp and
     com_google_googletest -> @googletest canonical BCR names. (#20295) (df849cc)
    Replace std::any with a custom solution. (#20251) (6250d09)
    Make DebugString print debug output, enable debug markers for debug output
     (9a03332)
    Fix missing port_undef (#20052) (0644388)
    Use __builtin_expect_with_probability for proto field presence checks.
     (e958419)
    Enable meta-tagging for redaction purposes (1f48795)
    Breaking change: Prohibit using Bazel+MSVC to build protobuf (117e7bb)
    Breaking change: Upgrade return type of several string returning functions
     to absl::string_view. (d1990d9)
    Print the presence probability when analysis is enabled. (d4ba7ff)
    Split protoc apart from libprotoc in our cmake configs. (b4b93b3)
    Breaking change: Strip ctype from options in C++ (aebf8b9)
    Breaking change: Remove MutableRepeatedFieldRef::Reserve() in reflection
     (913f7b0)
    Remove stale references to C++14. (f4cc92c)
    Breaking change: Upgrade return type of type_name() and cpp_type_name()
     from const char* to absl::string_view. (a9ad51f)
    Update cmake minimum version to >=3.16. (21f535c)
    Migrate coded output stream arguments from const std::string& to
     absl::string_view. (0361a59)
    Breaking change: Remove deprecated Arena::GetArena. (30ed452)
    Remove the time (or time-based) entropy being added to Map's seed. (a7875bb)
    Don't use CLOCK_UPTIME_RAW if it won't be defined (#16951) (097dcda)
    Fix DEPENDENCIES in protobuf_generate() to accept multiple values instead
     of silently dropping (52887e1)
    Use ABSL_PREDICT_TRUE|FALSE instead of PROTOBUF_PREDICT_TRUE|FALSE. (fd47730)
    Breaking change: Flip default behavior for handling cmake dependencies.
     (9cc685edf867acf5...

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/protobuf
lfs/protobuf