From 0e5019c2e470e1502f1420879f644365c7ea8842 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Fri, 4 Sep 2026 21:55:03 +0200 Subject: [PATCH] package/thrift: bump version to 0.24.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/apache/thrift/blob/v0.24.0/CHANGES.md Please note that this bump includes CVE-2026-41608: https://lists.apache.org/thread/vwsbcwqdpwdtp8qkjo11ol6rodbfm21f which fixes a security bug in the python bindings that are not used by buildroot. Building this defconfig BR2_aarch64=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y BR2_TOOLCHAIN_EXTERNAL_URL="http://toolchains.bootlin.com/downloads/releases/toolchains/aarch64--glibc--bleeding-edge-2017.05-toolchains-1-2.tar.bz2" BR2_TOOLCHAIN_EXTERNAL_GCC_6=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_9=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_PACKAGE_THRIFT=y without this bump does not cause build errors. The Gitlab pipelines detected a build error for this bump with the defconfig bootlin-aarch64-glibc-old: /builds/bkuhls/buildroot/br-test-pkg/bootlin-aarch64-glibc-old/build/thrift-0.24.0/lib/cpp/src/thrift/transport/TBufferTransports.h:110:32: error: ‘ptrdiff_t’ does not name a type To fix the problem we add a patch to include cstddef. Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain --- ...nclude-to-fix-build-error-with-6.3.0.patch | 33 +++++++++++++++++++ package/thrift/thrift.hash | 4 +-- package/thrift/thrift.mk | 2 +- 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 package/thrift/0001-Add-cstddef-include-to-fix-build-error-with-6.3.0.patch diff --git a/package/thrift/0001-Add-cstddef-include-to-fix-build-error-with-6.3.0.patch b/package/thrift/0001-Add-cstddef-include-to-fix-build-error-with-6.3.0.patch new file mode 100644 index 0000000000..f59454c3d1 --- /dev/null +++ b/package/thrift/0001-Add-cstddef-include-to-fix-build-error-with-6.3.0.patch @@ -0,0 +1,33 @@ +From ca2c2467c78d9140a7e260727cd3305bf3decd09 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Fri, 4 Sep 2026 19:49:59 +0200 +Subject: [PATCH] Add cstddef include to fix build error with 6.3.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +thrift-0.24.0/lib/cpp/src/thrift/transport/TBufferTransports.h:110:32: + error: ‘ptrdiff_t’ does not name a type + +Upstream: https://github.com/apache/thrift/pull/3801 + +Signed-off-by: Bernd Kuhls +--- + lib/cpp/src/thrift/transport/TBufferTransports.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.h b/lib/cpp/src/thrift/transport/TBufferTransports.h +index b78e457b3..b0447b0bc 100644 +--- a/lib/cpp/src/thrift/transport/TBufferTransports.h ++++ b/lib/cpp/src/thrift/transport/TBufferTransports.h +@@ -20,6 +20,7 @@ + #ifndef _THRIFT_TRANSPORT_TBUFFERTRANSPORTS_H_ + #define _THRIFT_TRANSPORT_TBUFFERTRANSPORTS_H_ 1 + ++#include + #include + #include + #include +-- +2.47.3 + diff --git a/package/thrift/thrift.hash b/package/thrift/thrift.hash index 406c65fd25..187fd15c50 100644 --- a/package/thrift/thrift.hash +++ b/package/thrift/thrift.hash @@ -1,4 +1,4 @@ -# From https://downloads.apache.org/thrift/0.23.0/thrift-0.23.0.tar.gz.sha256 -sha256 1859d932d2ae1f13d16c5a196931208c116310a5ff50f2bfd11d3db03be8f46f thrift-0.23.0.tar.gz +# From https://downloads.apache.org/thrift/0.24.0/thrift-0.24.0.tar.gz.sha256 +sha256 e0fa5839a4c5c1d631b0931cf2c554ebbfa4e2fee3a9fb3ffd4f82ce4396c6e4 thrift-0.24.0.tar.gz # License files, locally calculated sha256 89aa7b27868669299bd8a6c53b72ec4beadce42dad6c8336797cc26e1e8df98d LICENSE diff --git a/package/thrift/thrift.mk b/package/thrift/thrift.mk index 34f4671239..a517dd5035 100644 --- a/package/thrift/thrift.mk +++ b/package/thrift/thrift.mk @@ -4,7 +4,7 @@ # ################################################################################ -THRIFT_VERSION = 0.23.0 +THRIFT_VERSION = 0.24.0 THRIFT_SITE = https://downloads.apache.org/thrift/$(THRIFT_VERSION) THRIFT_LICENSE = Apache-2.0, Public Domain (sha256.h) THRIFT_LICENSE_FILES = LICENSE