Skip to contentSkip to conversation

thrift: upgrade 0.22.0 -> 0.23.0

PATCH New [email protected] 1 participant 2 messages May 4

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 thrift: upgrade 0.22.0 -> 0.23.0

From: Ankur Tyagi <[email protected]>

License-Update: add attribution section for the third-party public-domain code[1]

Dropped patch which is now merged in the upstream version.

Changelog:
https://thrift.apache.org/changelog

[1]https://github.com/apache/thrift/commit/1e5fa4b9b35ad6bfeb238d19897ace7826eda057

---
 .../0001-support-reproducible-builds.patch    | 49 -------------------
 .../{thrift_0.22.0.bb => thrift_0.23.0.bb}    |  5 +-
 2 files changed, 2 insertions(+), 52 deletions(-)
 delete mode 100644 meta-oe/recipes-connectivity/thrift/thrift/0001-support-reproducible-builds.patch
 rename meta-oe/recipes-connectivity/thrift/{thrift_0.22.0.bb => thrift_0.23.0.bb} (91%)
meta-oe/recipes-connectivity/thrift/thrift/0001-support-reproducible-builds.patch deleted +0 -49
deleted file mode 100644
index 7fad4ddaa6..0000000000
@@ -1,49 +0,0 @@
-From d4c19c3c88200c49d48c9d47971977627f98f51b Mon Sep 17 00:00:00 2001
-From: Hongxu Jia <[email protected]>
-Date: Thu, 20 Nov 2025 11:43:45 +0800
-Subject: [PATCH] support reproducible builds
-
-In order to support reproducible builds [1], while using bison to generate
-source code, add COMPILE_FLAGS --file-prefix-map [2] to remove build path
-prefix and source path prefix in the generated header file.
-
-[1] https://reproducible-builds.org/
-[2] https://cgit.git.savannah.gnu.org/cgit/bison.git/commit/?id=dd878d18519689c7bbcd72de4c9f9e53085a3cbf
-
-Upstream-Status: Submitted [https://github.com/apache/thrift/pull/3246]
-
-Signed-off-by: Hongxu Jia <[email protected]>
----
- compiler/cpp/CMakeLists.txt       | 2 +-
- compiler/cpp/tests/CMakeLists.txt | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/compiler/cpp/CMakeLists.txt b/compiler/cpp/CMakeLists.txt
-index 4c1c2c5..a1a8fcb 100644
---- a/compiler/cpp/CMakeLists.txt
-+++ b/compiler/cpp/CMakeLists.txt
-@@ -30,7 +30,7 @@ find_package(BISON REQUIRED)
- file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/thrift/)
- 
- # Create flex and bison files and build the lib parse static library
--BISON_TARGET(thrifty ${CMAKE_CURRENT_SOURCE_DIR}/src/thrift/thrifty.yy ${CMAKE_CURRENT_BINARY_DIR}/thrift/thrifty.cc)
-+BISON_TARGET(thrifty ${CMAKE_CURRENT_SOURCE_DIR}/src/thrift/thrifty.yy ${CMAKE_CURRENT_BINARY_DIR}/thrift/thrifty.cc COMPILE_FLAGS "--file-prefix-map=${CMAKE_BINARY_DIR}='' --file-prefix-map=${CMAKE_SOURCE_DIR}=''")
- FLEX_TARGET(thriftl ${CMAKE_CURRENT_SOURCE_DIR}/src/thrift/thriftl.ll ${CMAKE_CURRENT_BINARY_DIR}/thrift/thriftl.cc)
- ADD_FLEX_BISON_DEPENDENCY(thriftl thrifty)
- 
-diff --git a/compiler/cpp/tests/CMakeLists.txt b/compiler/cpp/tests/CMakeLists.txt
-index 6a078ec..39f5bb2 100644
---- a/compiler/cpp/tests/CMakeLists.txt
-+++ b/compiler/cpp/tests/CMakeLists.txt
-@@ -45,7 +45,7 @@ find_package(BISON REQUIRED)
- file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/thrift/)
- 
- # Create flex and bison files and build the lib parse static library
--BISON_TARGET(thrifty ${THRIFT_COMPILER_SOURCE_DIR}/src/thrift/thrifty.yy ${CMAKE_CURRENT_BINARY_DIR}/thrift/thrifty.cc)
-+BISON_TARGET(thrifty ${THRIFT_COMPILER_SOURCE_DIR}/src/thrift/thrifty.yy ${CMAKE_CURRENT_BINARY_DIR}/thrift/thrifty.cc COMPILE_FLAGS "--file-prefix-map=${CMAKE_BINARY_DIR}='' --file-prefix-map=${CMAKE_SOURCE_DIR}=''")
- FLEX_TARGET(thriftl ${THRIFT_COMPILER_SOURCE_DIR}/src/thrift/thriftl.ll ${CMAKE_CURRENT_BINARY_DIR}/thrift/thriftl.cc)
- ADD_FLEX_BISON_DEPENDENCY(thriftl thrifty)
- 
--- 
-2.34.1
-
meta-oe/recipes-connectivity/thrift/thrift_0.23.0.bb renamed from meta-oe/recipes-connectivity/thrift/thrift_0.22.0.bb +2 -3
similarity index 91%
rename from meta-oe/recipes-connectivity/thrift/thrift_0.22.0.bb
rename to meta-oe/recipes-connectivity/thrift/thrift_0.23.0.bb
index 8ca1d0085e..4f90628b4a 100644
@@ -3,16 +3,15 @@ DESCRIPTION =  "A software framework, for scalable cross-language services devel
 HOMEPAGE = "https://thrift.apache.org/"
 
 LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=c40a383cb3f747e0c7abbf1482f194f0 \
+LIC_FILES_CHKSUM = "file://LICENSE;md5=bdfca4cb0874071cc3e42d2ae3b05a77 \
                     file://NOTICE;md5=2659b43daca219f99a2f2626ea128f73"
 
 DEPENDS = "thrift-native boost flex-native bison-native openssl zlib"
 
 SRC_URI = "https://downloads.apache.org/${BPN}/${PV}/${BP}.tar.gz \
            file://0001-DefineInstallationPaths.cmake-Define-libdir-in-terms.patch \
-           file://0001-support-reproducible-builds.patch \
            "
-SRC_URI[sha256sum] = "794a0e455787960d9f27ab92c38e34da27e8deeda7a5db0e59dc64a00df8a1e5"
+SRC_URI[sha256sum] = "1859d932d2ae1f13d16c5a196931208c116310a5ff50f2bfd11d3db03be8f46f"
 
 BBCLASSEXTEND = "native nativesdk"
 
#1 lore raw

PATCH 2/2 freerdp3: upgrade 3.24.2 -> 3.25.0

From: Ankur Tyagi <[email protected]>

https://github.com/FreeRDP/FreeRDP/releases/tag/3.25.0

---
 .../freerdp/{freerdp3_3.24.2.bb => freerdp3_3.25.0.bb}       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
 rename meta-oe/recipes-support/freerdp/{freerdp3_3.24.2.bb => freerdp3_3.25.0.bb} (94%)
meta-oe/recipes-support/freerdp/freerdp3_3.25.0.bb renamed from meta-oe/recipes-support/freerdp/freerdp3_3.24.2.bb +4 -1
similarity index 94%
rename from meta-oe/recipes-support/freerdp/freerdp3_3.24.2.bb
rename to meta-oe/recipes-support/freerdp/freerdp3_3.25.0.bb
index a4561495cf..e71f2e213f 100644
@@ -8,7 +8,7 @@ RDEPENDS:${PN}-ptest += "cmake coreutils"
 
 inherit pkgconfig cmake ptest
 
-SRCREV = "3028b706908f81767d9b9c744a90778c28f57d61"
+SRCREV = "90e7f064dc3ab8672b8ec714059d8cd51be0743f"
 SRC_URI = "git://github.com/FreeRDP/FreeRDP.git;nobranch=1;protocol=https;tag=${PV} \
            file://run-ptest"
 
@@ -68,6 +68,8 @@ do_configure:prepend() {
     sed -i 's|="\${CMAKE_CURRENT_BINARY_DIR}|="${PTEST_PATH}/test|' ${S}/winpr/libwinpr/utils/test/CMakeLists.txt
     sed -i 's|="\${CMAKE_CURRENT_SOURCE_DIR}|="${PTEST_PATH}/test|' ${S}/libfreerdp/codec/test/CMakeLists.txt
     sed -i 's|="\${CMAKE_CURRENT_BINARY_DIR}|="${PTEST_PATH}/test|' ${S}/libfreerdp/codec/test/CMakeLists.txt
+    sed -i 's|="\${CMAKE_CURRENT_BINARY_DIR}|="${PTEST_PATH}/test|' ${S}/server/proxy/test/CMakeLists.txt
+    sed -i 's|="\${CMAKE_CURRENT_SOURCE_DIR}|="${PTEST_PATH}/test|' ${S}/server/proxy/test/CMakeLists.txt
 
 }
 
@@ -89,6 +91,7 @@ do_install_ptest() {
     cp -r ${S}/resources ${D}${PTEST_PATH}
     cp -r ${S}/libfreerdp/codec/test/planar ${D}${PTEST_PATH}/test/
     cp -r ${S}/libfreerdp/codec/test/interleaved ${D}${PTEST_PATH}/test/
+    cp -r ${S}/server/proxy/test/conf ${D}${PTEST_PATH}/test/
 
     cd ${B}
     # the test definitions, how to execute the tests