Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
5c2778b529 | |||
532c777e9c |
59
711.patch
59
711.patch
@ -1,59 +0,0 @@
|
|||||||
--- protobuf-c-1.5.0/protoc-c/c_file.cc 2024-10-21 20:22:31.574369622 +0200
|
|
||||||
+++ protobuf-c-1.5.0/protoc-c/c_file.cc 2024-10-21 20:22:43.064450125 +0200
|
|
||||||
@@ -117,14 +117,7 @@
|
|
||||||
void FileGenerator::GenerateHeader(io::Printer* printer) {
|
|
||||||
std::string filename_identifier = FilenameIdentifier(file_->name());
|
|
||||||
|
|
||||||
- int min_header_version = 1000000;
|
|
||||||
-#if GOOGLE_PROTOBUF_VERSION >= 4023000
|
|
||||||
- if (FileDescriptorLegacy(file_).syntax() == FileDescriptorLegacy::SYNTAX_PROTO3) {
|
|
||||||
-#else
|
|
||||||
- if (file_->syntax() == FileDescriptor::SYNTAX_PROTO3) {
|
|
||||||
-#endif
|
|
||||||
- min_header_version = 1003000;
|
|
||||||
- }
|
|
||||||
+ const int min_header_version = 1003000;
|
|
||||||
|
|
||||||
// Generate top of header.
|
|
||||||
printer->Print(
|
|
||||||
--- protobuf-c-1.5.0/protoc-c/c_helpers.h 2024-10-21 20:22:31.574369622 +0200
|
|
||||||
+++ protobuf-c-1.5.0/protoc-c/c_helpers.h 2024-10-21 20:22:43.064450125 +0200
|
|
||||||
@@ -70,10 +70,6 @@
|
|
||||||
#include <protobuf-c/protobuf-c.pb.h>
|
|
||||||
#include <google/protobuf/io/printer.h>
|
|
||||||
|
|
||||||
-#if GOOGLE_PROTOBUF_VERSION >= 4023000
|
|
||||||
-# include <google/protobuf/descriptor_legacy.h>
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
namespace google {
|
|
||||||
namespace protobuf {
|
|
||||||
namespace compiler {
|
|
||||||
@@ -173,13 +169,21 @@
|
|
||||||
int compare_name_indices_by_name(const void*, const void*);
|
|
||||||
|
|
||||||
// Return the syntax version of the file containing the field.
|
|
||||||
-// This wrapper is needed to be able to compile against protobuf2.
|
|
||||||
inline int FieldSyntax(const FieldDescriptor* field) {
|
|
||||||
-#if GOOGLE_PROTOBUF_VERSION >= 4023000
|
|
||||||
- return FileDescriptorLegacy(field->file()).syntax() == FileDescriptorLegacy::SYNTAX_PROTO3 ? 3 : 2;
|
|
||||||
-#else
|
|
||||||
- return field->file()->syntax() == FileDescriptor::SYNTAX_PROTO3 ? 3 : 2;
|
|
||||||
-#endif
|
|
||||||
+ auto proto = FileDescriptorProto();
|
|
||||||
+ field->file()->CopyTo(&proto);
|
|
||||||
+
|
|
||||||
+ if (proto.has_syntax()) {
|
|
||||||
+ auto syntax = proto.syntax();
|
|
||||||
+ assert(syntax == "proto2" || syntax == "proto3");
|
|
||||||
+ if (syntax == "proto2") {
|
|
||||||
+ return 2;
|
|
||||||
+ } else if (syntax == "proto3") {
|
|
||||||
+ return 3;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
+ return 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Work around changes in protobuf >= 22.x without breaking compilation against
|
|
BIN
protobuf-c-1.5.0.tar.gz
(Stored with Git LFS)
BIN
protobuf-c-1.5.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
protobuf-c-1.5.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
protobuf-c-1.5.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Feb 9 23:46:28 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Update to release 1.5.1
|
||||||
|
* Order `oneof` union members from largest to smallest
|
||||||
|
* Better compatibility with protobuf >= 26.0
|
||||||
|
- Delete 711.patch (merged)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 27 11:25:31 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Implement naming guidelines and rename libprotobuf-c-devel back
|
||||||
|
to just %name-devel. (The divergence came about on Nov 19 2021
|
||||||
|
as a result of merging two subpackages.)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 22 08:48:51 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
Tue Oct 22 08:48:51 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package protobuf-c
|
# spec file for package protobuf-c
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2011 Pascal Bleser
|
# Copyright (c) 2011 Pascal Bleser
|
||||||
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
|
||||||
#
|
#
|
||||||
@ -20,14 +20,13 @@
|
|||||||
|
|
||||||
%define sover 1
|
%define sover 1
|
||||||
Name: protobuf-c
|
Name: protobuf-c
|
||||||
Version: 1.5.0
|
Version: 1.5.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: C bindings for Google's Protocol Buffers
|
Summary: C bindings for Google's Protocol Buffers
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Tools/Other
|
Group: Development/Tools/Other
|
||||||
URL: https://github.com/protobuf-c/protobuf-c
|
URL: https://github.com/protobuf-c/protobuf-c
|
||||||
Source: https://github.com/protobuf-c/protobuf-c/releases/download/v%version/%name-%version.tar.gz
|
Source: https://github.com/protobuf-c/protobuf-c/releases/download/v%version/%name-%version.tar.gz
|
||||||
Patch0: 711.patch
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: c++_compiler
|
BuildRequires: c++_compiler
|
||||||
@ -51,15 +50,17 @@ Group: System/Libraries
|
|||||||
This package provides a code generator and runtime libraries to use Protocol
|
This package provides a code generator and runtime libraries to use Protocol
|
||||||
Buffers from pure C (not C++).
|
Buffers from pure C (not C++).
|
||||||
|
|
||||||
%package -n libprotobuf-c-devel
|
%package devel
|
||||||
Summary: C bindings for Google's Protocol Buffers
|
Summary: protobuf generator and headers
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libprotobuf-c%sover = %version
|
Requires: libprotobuf-c%sover = %version
|
||||||
Recommends: (protobuf-devel >= 2.6.0 with protobuf-devel < 22)
|
Recommends: (protobuf-devel >= 2.6.0 with protobuf-devel < 22)
|
||||||
Provides: %name = %version
|
Provides: protobuf-c = %version-%release
|
||||||
Obsoletes: %name <= 1.4.0
|
Obsoletes: protobuf-c <= %version-%release
|
||||||
|
Provides: libprotobuf-c-devel = %version-%release
|
||||||
|
Obsoletes: libprotobuf-c-devel <= %version-%release
|
||||||
|
|
||||||
%description -n libprotobuf-c-devel
|
%description devel
|
||||||
This package provides a code generator and runtime libraries to use Protocol
|
This package provides a code generator and runtime libraries to use Protocol
|
||||||
Buffers from pure C (not C++).
|
Buffers from pure C (not C++).
|
||||||
|
|
||||||
@ -88,7 +89,7 @@ make check
|
|||||||
%_libdir/libprotobuf-c.so.%sover
|
%_libdir/libprotobuf-c.so.%sover
|
||||||
%_libdir/libprotobuf-c.so.%sover.*
|
%_libdir/libprotobuf-c.so.%sover.*
|
||||||
|
|
||||||
%files -n libprotobuf-c-devel
|
%files devel
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%dir %_includedir/protobuf-c
|
%dir %_includedir/protobuf-c
|
||||||
%dir %_includedir/google
|
%dir %_includedir/google
|
||||||
|
Loading…
x
Reference in New Issue
Block a user