From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 23 Sep 2026 15:32:47 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x9N5b-005RKC-2a for lore@lore.pengutronix.de; Wed, 23 Sep 2026 15:32:47 +0200 Received: from [127.0.0.1] (helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1x9N5a-0006p5-Sv; Wed, 23 Sep 2026 15:32:46 +0200 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1x9N5K-0006op-Gv; Wed, 23 Sep 2026 15:32:30 +0200 From: =?UTF-8?q?Sven=20P=C3=BCschel?= To: ptxdist@pengutronix.de Date: Wed, 23 Sep 2026 15:32:22 +0200 Message-ID: <20260923133228.3178396-1-s.pueschel@pengutronix.de> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] protobuf: version bump 33.0 -> 36.2 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: =?UTF-8?q?Sven=20P=C3=BCschel?= Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The patch isn't necessary anymore as upstream has a similar patch [1]. As the host protoc binary we need also requires the libprotobuf library, we also have to enable the library there. [1] https://github.com/protocolbuffers/protobuf/commit/e9efe030ad31fc8a6ae6baca258260e8f3426778 Signed-off-by: Sven Püschel --- ...ix-building-when-libatomic-is-needed.patch | 36 ------------------- patches/protobuf-33.0/series | 4 --- rules/host-protobuf.make | 1 + rules/protobuf.make | 5 +-- 4 files changed, 4 insertions(+), 42 deletions(-) delete mode 100644 patches/protobuf-33.0/0001-Fix-building-when-libatomic-is-needed.patch delete mode 100644 patches/protobuf-33.0/series diff --git a/patches/protobuf-33.0/0001-Fix-building-when-libatomic-is-needed.patch b/patches/protobuf-33.0/0001-Fix-building-when-libatomic-is-needed.patch deleted file mode 100644 index a6a0fd4d8..000000000 --- a/patches/protobuf-33.0/0001-Fix-building-when-libatomic-is-needed.patch +++ /dev/null @@ -1,36 +0,0 @@ -From: Michael Olbrich -Date: Sat, 1 Nov 2025 09:58:09 +0100 -Subject: [PATCH] Fix building when libatomic is needed - -Set target_link_libraries for the correct target, the function argument, -not always libprotobuf. - -Without this building for architectures that need libatomic fails with: - --- Performing Test protobuf_HAVE_BUILTIN_ATOMICS --- Performing Test protobuf_HAVE_BUILTIN_ATOMICS - Failed -CMake Error at cmake/protobuf-configure-target.cmake:11 (target_link_libraries): -Cannot specify link libraries for target "libprotobuf" which is not built -by this project. -Call Stack (most recent call first): -cmake/libprotobuf-lite.cmake:28 (protobuf_configure_target) -CMakeLists.txt:278 (include) - -Signed-off-by: Michael Olbrich ---- - cmake/protobuf-configure-target.cmake | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/cmake/protobuf-configure-target.cmake b/cmake/protobuf-configure-target.cmake -index c67c57056591..425a5afdcd3f 100644 ---- a/cmake/protobuf-configure-target.cmake -+++ b/cmake/protobuf-configure-target.cmake -@@ -8,7 +8,7 @@ - # Refactors configuration options set on all Protobuf targets - function(protobuf_configure_target target) - if(protobuf_LINK_LIBATOMIC) -- target_link_libraries(libprotobuf PRIVATE atomic) -+ target_link_libraries("${target}" PRIVATE atomic) - endif() - - target_compile_features("${target}" PUBLIC cxx_std_17) diff --git a/patches/protobuf-33.0/series b/patches/protobuf-33.0/series deleted file mode 100644 index 213c99846..000000000 --- a/patches/protobuf-33.0/series +++ /dev/null @@ -1,4 +0,0 @@ -# generated by git-ptx-patches -#tag:base --start-number 1 -0001-Fix-building-when-libatomic-is-needed.patch -# 01d9eb118dc3af3da20ecb3e493d0757 - git-ptx-patches magic diff --git a/rules/host-protobuf.make b/rules/host-protobuf.make index 7a205018f..1a075d11c 100644 --- a/rules/host-protobuf.make +++ b/rules/host-protobuf.make @@ -20,6 +20,7 @@ HOST_PROTOBUF_CONF_OPT := \ $(HOST_CMAKE_OPT) \ -Dprotobuf_BUILD_CONFORMANCE=OFF \ -Dprotobuf_BUILD_EXAMPLES=OFF \ + -Dprotobuf_BUILD_LIBPROTOBUF=ON \ -Dprotobuf_BUILD_LIBPROTOC=OFF \ -Dprotobuf_BUILD_LIBUPB=ON \ -Dprotobuf_BUILD_PROTOBUF_BINARIES=ON \ diff --git a/rules/protobuf.make b/rules/protobuf.make index 4abf7c284..639768db6 100644 --- a/rules/protobuf.make +++ b/rules/protobuf.make @@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_PROTOBUF) += protobuf # # Paths and names # -PROTOBUF_VERSION := 33.0 -PROTOBUF_SHA256 := cbc536064706b628dcfe507bef386ef3e2214d563657612296f1781aa155ee07 +PROTOBUF_VERSION := 36.2 +PROTOBUF_SHA256 := 3d9642a662d10e68ebae5e53f14dcce5105684212d5078f8e0d47d1ab3ae6b64 PROTOBUF := protobuf-$(PROTOBUF_VERSION) PROTOBUF_SUFFIX := tar.gz PROTOBUF_URL := https://github.com/google/protobuf/releases/download/v$(PROTOBUF_VERSION)/$(PROTOBUF).$(PROTOBUF_SUFFIX) @@ -34,6 +34,7 @@ PROTOBUF_CONF_OPT := \ $(CROSS_CMAKE_USR) \ -Dprotobuf_BUILD_CONFORMANCE=OFF \ -Dprotobuf_BUILD_EXAMPLES=OFF \ + -Dprotobuf_BUILD_LIBPROTOBUF=ON \ -Dprotobuf_BUILD_LIBPROTOC=OFF \ -Dprotobuf_BUILD_LIBUPB=OFF \ -Dprotobuf_BUILD_PROTOBUF_BINARIES=ON \ -- 2.47.3