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.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Bernd Kuhls
2026-09-04 21:55:03 +02:00
committed by Julien Olivain
parent c25fed67e6
commit 0e5019c2e4
3 changed files with 36 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
From ca2c2467c78d9140a7e260727cd3305bf3decd09 Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd@kuhls.net>
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 <bernd@kuhls.net>
---
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

View File

@@ -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

View File

@@ -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