Skip to contentSkip to conversation

protobuf: 5.29.5 -> 6.31.1

PATCH Ryan Eatmon 4 participants 4 messages Jun 25, 2025 – Jun 26, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Not sure why it says 1/2. Ignore that.

Quoted 76 lines · Ryan Eatmon via lists.openembedded.org

Refresh local patches:
- 0001-examples-Makefile-respect-CXX-LDFLAGS-variables-fix-.patch

Fix protobuf build error due to recent abseil-cpp update:
https://git.openembedded.org/meta-openembedded/commit/?h=master&id=e8c0e64e89b565a55d4c4fefe30a90a25fbe5831

Changelog:
https://github.com/protocolbuffers/protobuf/releases/tag/v31.1

---
  ...amples-Makefile-respect-CXX-LDFLAGS-variables-fix-.patch | 4 ++--
  .../protobuf/{protobuf_5.29.5.bb => protobuf_6.31.1.bb}     | 6 ++----
  2 files changed, 4 insertions(+), 6 deletions(-)

rename meta-oe/recipes-devtools/protobuf/{protobuf_5.29.5.bb => protobuf_6.31.1.bb} (95%)

meta-oe/recipes-devtools/protobuf/protobuf/0001-examples-Makefile-respect-CXX-LDFLAGS-variables-fix-.patch +2 -2
index 7a8906a9a4..53fdf7dece 100644
@@ -47,12 +47,12 @@ index f7ee9b116..8cd1359e2 100644
 
   add_person_cpp: add_person.cc protoc_middleman
   	pkg-config --cflags protobuf  # fails if protobuf is not installed
--	c++ -std=c++14 add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs protobuf`
+-	c++ add_person.cc addressbook.pb.cc -o add_person_cpp `pkg-config --cflags --libs protobuf`
  +	$(CXX) $(CXXFLAGS) $(LDFLAGS) ../src/google/protobuf/.libs/timestamp.pb.o $(PROTOBUF) add_person.cc addressbook.pb.cc -o add_person_cpp
 
   list_people_cpp: list_people.cc protoc_middleman
   	pkg-config --cflags protobuf  # fails if protobuf is not installed
--	c++ -std=c++14 list_people.cc addressbook.pb.cc -o list_people_cpp `pkg-config --cflags --libs protobuf`
+-	c++ list_people.cc addressbook.pb.cc -o list_people_cpp `pkg-config --cflags --libs protobuf`
  +	$(CXX) $(CXXFLAGS) $(LDFLAGS) ../src/google/protobuf/.libs/timestamp.pb.o $(PROTOBUF) list_people.cc addressbook.pb.cc -o list_people_cpp
 
   add_person_dart: add_person.dart protoc_middleman_dart
meta-oe/recipes-devtools/protobuf/protobuf_6.31.1.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_5.29.5.bb +2 -5
similarity index 95%
rename from meta-oe/recipes-devtools/protobuf/protobuf_5.29.5.bb
rename to meta-oe/recipes-devtools/protobuf/protobuf_6.31.1.bb
index 61aff1da28..90be1179aa 100644
@@ -7,20 +7,18 @@ SECTION = "console/tools"
  LICENSE = "BSD-3-Clause & MIT"
  LIC_FILES_CHKSUM = " \
      file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b \
-    file://third_party/lunit/LICENSE;md5=99f08e72434dfa34fe0581d3dfb2d7f4 \
      file://third_party/utf8_range/LICENSE;md5=d4974d297231477b2ff507c35d61c13c \
  "
 
  DEPENDS = "zlib abseil-cpp jsoncpp"
  DEPENDS:append:class-target = " protobuf-native"
 
-SRCREV = "f5de0a0495faa63b4186fc767324f8b9a7bf4fc4"
+SRCREV = "74211c0dfc2777318ab53c2cd2c317a2ef9012de"
 
-SRC_URI = "git://github.com/protocolbuffers/protobuf.git;branch=29.x;protocol=https \
+SRC_URI = "git://github.com/protocolbuffers/protobuf.git;branch=31.x;protocol=https \
             file://run-ptest \
             file://0001-examples-Makefile-respect-CXX-LDFLAGS-variables-fix-.patch \
             file://0001-fix-protobuf-native-build-failure-with-gcc-10.patch \
-           file://0001-utf8_range-add-version-marker-to-library-19009.patch \
             "
  SRC_URI:append:mipsarcho32:toolchain-clang = " file://0001-Fix-build-on-mips-clang.patch "
 
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#118113): https://lists.openembedded.org/g/openembedded-devel/message/118113
Mute This Topic: https://lists.openembedded.org/mt/113835772/6551054
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#2 lore raw
Quoted 7 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ryan Eatmon via lists.openembedded.org
Sent: den 26 juni 2025 01:57
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH 1/2] protobuf: 5.29.5 -> 6.31.1

Not sure why it says 1/2. Ignore that.

You probably subconsciously knew that you should update python3-protobuf as well. ;)

//Peter

#3 lore raw
Quoted 7 lines · Peter Kjellerstedt via lists.openembedded.org
Quoted 7 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ryan Eatmon via lists.openembedded.org
Sent: den 26 juni 2025 01:57
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH 1/2] protobuf: 5.29.5 -> 6.31.1

Quoted 6 lines
Quoted 1 line

Not sure why it says 1/2. Ignore that.

You probably subconsciously knew that you should update python3-protobuf as well. ;)

//Peter

Confirmed

| Failed to import nanopb_pb2.py: Detected mismatched Protobuf Gencode/Runtime major versions when loading nanopb.proto: gencode 6.31.1 runtime 5.29.5. Same major version is required. See Protobuf version guarantees at
https://protobuf.dev/support/cross-version-runtime-guarantee.

git mv ./meta-python/recipes-devtools/python/python3-protobuf_5.29.5.bb ./meta-python/recipes-devtools/python/python3-protobuf_6.31.1.bb and
SRC_URI[sha256sum] = "d8cac4c982f0b957a4dc73a80e2ea24fab08e679c0de9deb835f4a12d69aca9a"

Seem to have addressed the issue

Thanks,
Jon

Quoted 8 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#118115): https://lists.openembedded.org/g/openembedded-devel/message/118115
Mute This Topic: https://lists.openembedded.org/mt/113835772/3616920
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 26 lines · Jon Mason via lists.openembedded.org
Quoted 7 lines · Peter Kjellerstedt via lists.openembedded.org
Quoted 7 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Ryan Eatmon via lists.openembedded.org
Sent: den 26 juni 2025 01:57
To: [email protected]
Subject: Re: [oe] [meta-oe][PATCH 1/2] protobuf: 5.29.5 -> 6.31.1

Quoted 6 lines
Quoted 1 line

Not sure why it says 1/2. Ignore that.

You probably subconsciously knew that you should update python3-protobuf as well. ;)

//Peter

Confirmed

| Failed to import nanopb_pb2.py: Detected mismatched Protobuf Gencode/Runtime major versions when loading nanopb.proto: gencode 6.31.1 runtime 5.29.5. Same major version is required. See Protobuf version guarantees at
https://protobuf.dev/support/cross-version-runtime-guarantee.

Quoted 8 lines

git mv ./meta-python/recipes-devtools/python/python3-protobuf_5.29.5.bb ./meta-python/recipes-devtools/python/python3-protobuf_6.31.1.bb and
SRC_URI[sha256sum] = "d8cac4c982f0b957a4dc73a80e2ea24fab08e679c0de9deb835f4a12d69aca9a"

Seem to have addressed the issue

Please send a patch for this upgrade as well.

Quoted 15 lines

Thanks,
Jon

Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#118123): https://lists.openembedded.org/g/openembedded-devel/message/118123
Mute This Topic: https://lists.openembedded.org/mt/113835772/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-