package/thrift: bump version to 0.24.0
PATCH 1/1 package/thrift: bump version to 0.24.0
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.
---
I did not manage to find the upstream commit which causes the build error.
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/ec6edc9c49bbff49c7d5eb6dcfcc197b7695416b
...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
package/thrift/0001-Add-cstddef-include-to-fix-build-error-with-6.3.0.patch new file +33 -0
@@ -0,0 +1,33 @@ +From ca2c2467c78d9140a7e260727cd3305bf3decd09 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls <[email protected]> +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 <[email protected]> +--- + 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 <cstddef> + #include <cstdlib> + #include <cstring> + #include <limits> +-- +2.47.3 +
package/thrift/thrift.hash +2 -2
@@ -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
package/thrift/thrift.mk +1 -1
@@ -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
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 25 lines · Bernd Kuhls
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=ywithout this bump does not cause build errors.
The Gitlab pipelines detected a build error for this bump with the defconfig bootlin-aarch64-glibc-old:
Quoted 6 lines
/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 typeTo fix the problem we add a patch to include cstddef.
Signed-off-by Bernd Kuhls <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot