Skip to contentSkip to conversation

protobuf: upgrade 4.23.4 -> 4.25.2

PATCH Clément Péron 1 participant 1 message Feb 6, 2024 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

Hi,

Quoted 15 lines · Clément Péron via lists.openembedded.org
---
 .../protobuf/{protobuf_4.23.4.bb => protobuf_4.25.2.bb}       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-devtools/protobuf/{protobuf_4.23.4.bb => protobuf_4.25.2.bb} (98%)
meta-oe/recipes-devtools/protobuf/protobuf_4.25.2.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_4.23.4.bb +0 -0
similarity index 98%
rename from meta-oe/recipes-devtools/protobuf/protobuf_4.23.4.bb
rename to meta-oe/recipes-devtools/protobuf/protobuf_4.25.2.bb
index 7d37ee3d2..6cd44a4e7 100644

meta-oe/recipes-devtools/protobuf/protobuf_4.25.2.bb LIC_FILES_CHKSUM = "file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b" · line 13

Quoted 5 lines
meta-oe/recipes-devtools/protobuf/protobuf_4.25.2.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_4.23.4.bb +1 -1
@@ -10,9 +10,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=37b5762e07f0af8c74ce80a8bda4266b"
 DEPENDS = "zlib abseil-cpp"
 DEPENDS:append:class-target = " protobuf-native"
 
-SRCREV = "2c5fa078d8e86e5f4bd34e6f4c9ea9e8d7d4d44a"
+SRCREV = "a9b006bddd52e289029f16aa77b77e8e0033d9ee"

When I try to compile my project that use Protobuf with the SDK, the Cmake find_package(protobuf CONFIG) fails with the following error:

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

CMake Error at SDK_ROOTFS/usr/lib/cmake/utf8_range/utf8_range-targets.cmake:90 (message):
The imported target "utf8_range::utf8_validity" references the file

"SDK_ROOTFS/usr/lib/libutf8_validity.a"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"SDK_ROOTFS/usr/lib/cmake/utf8_range/utf8_range-targets.cmake"

but not all the files it references.

Call Stack (most recent call first):
SDK_ROOTFS/usr/lib/cmake/utf8_range/utf8_range-config.cmake:7 (include) SDK_ROOTFS/usr/lib/cmake/protobuf/protobuf-config.cmake:12 (find_package) modules/grpc/CMakeLists.txt:17 (find_package) <<<<<<<<<<<<<<<<<<<<<<<<<<<

It could be fixed by adding:
+ TOOLCHAIN_TARGET_TASK:append = " protobuf-staticdev"

To the SDK distro configuration file.

Is there a proper way to include this in the recipe file?

Thanks for your help,

Quoted 18 lines
meta-oe/recipes-devtools/protobuf/protobuf_4.25.2.bb renamed from meta-oe/recipes-devtools/protobuf/protobuf_4.23.4.bb +1 -2
-SRC_URI = "gitsm://github.com/protocolbuffers/protobuf.git;branch=23.x;protocol=https \
+SRC_URI = "gitsm://github.com/protocolbuffers/protobuf.git;branch=25.x;protocol=https \
            file://run-ptest \
            file://0001-examples-Makefile-respect-CXX-LDFLAGS-variables-fix-.patch \
            "
--

2.43.0

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