Skip to contentSkip to conversation

thrift upgrade

PATCH In review Andrej Valek 2 participants 4 messages Aug 10, 2021

lore
Share & tools
lore
#0 lore raw

cover thrift upgrade

Upgrade thrift to version 0.14.2 due to remote security vulnerability.

Andrej Valek (2):
thrift: drop unsupported features
thrift: upgrade to 0.14.2

 ...llationPaths.cmake-Define-libdir-in-terms.patch |  8 +++----
 .../thrift/{thrift_0.13.0.bb => thrift_0.14.2.bb}  | 26 ++++++++++------------
 2 files changed, 16 insertions(+), 18 deletions(-)
 rename meta-oe/recipes-connectivity/thrift/{thrift_0.13.0.bb => thrift_0.14.2.bb} (72%)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 thrift: drop unsupported features

- QT4 support was dropped
- Feature for switching between boost and std pointer was dropped
- only std pointers are supported since version 0.13.0

---
 meta-oe/recipes-connectivity/thrift/thrift_0.13.0.bb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
meta-oe/recipes-connectivity/thrift/thrift_0.13.0.bb +1 -5
index 92bcb21bf..e3880b357 100644
@@ -24,7 +24,6 @@ export BUILD_SYS
 export HOST_SYS
 
 EXTRA_OECMAKE = " \
-    -DENABLE_PRECOMPILED_HEADERS=OFF \
     -DBUILD_LIBRARIES=ON \
     -DBUILD_COMPILER=ON \
     -DBUILD_TESTING=OFF \
@@ -36,15 +35,12 @@ EXTRA_OECMAKE = " \
     -DWITH_STATIC_LIB=ON \
     -DWITH_SHARED_LIB=ON \
     -DWITH_OPENSSL=ON \
-    -DWITH_QT4=OFF \
     -DWITH_QT5=OFF \
-    -DWITH_BOOST_FUNCTIONAL=OFF \
 "
 
-PACKAGECONFIG ??= "libevent glib boost-smart-ptr"
+PACKAGECONFIG ??= "libevent glib"
 PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent"
 PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0"
-PACKAGECONFIG[boost-smart-ptr] = "-DWITH_BOOST_SMART_PTR=ON,-DWITH_BOOST_SMART_PTR=OFF,boost"
 
 do_install_append () {
     ln -sf thrift ${D}/${bindir}/thrift-compiler
Signature · 1 line
2.11.0
#2 lore raw
In reply to Andrej Valek
Quoted 2 lines · Andrej Valek

Upgrade thrift to version 0.14.2 due to remote security vulnerability.

No specific security issues are mentioned in the other patches. This is a big jump and from what I can decode from their release notes. They deprecate many things between these two versions.

Unless I can be convinced otherwise, this update is deemed outside the acceptable norms for a stable release.

I think backport the specific security issues may be  more appropriate.

thanks,
Armin

Quoted 12 lines

Andrej Valek (2):
thrift: drop unsupported features
thrift: upgrade to 0.14.2

 ...llationPaths.cmake-Define-libdir-in-terms.patch |  8 +++----
 .../thrift/{thrift_0.13.0.bb => thrift_0.14.2.bb}  | 26 ++++++++++------------
 2 files changed, 16 insertions(+), 18 deletions(-)
 rename meta-oe/recipes-connectivity/thrift/{thrift_0.13.0.bb => thrift_0.14.2.bb} (72%)
#3 lore raw

Hello Armin,

Take a look at the CVE-2020-13949 (https://issues.apache.org/jira/browse/THRIFT-5237). Backporting just those patches is probably no go, that's reason why I chose the upgrade option.

Regards,
Andrej

Quoted 24 lines · Andrej Valek
Quoted 2 lines

Upgrade thrift to version 0.14.2 due to remote security vulnerability.

No specific security issues are mentioned in the other patches. This is a big jump and from what I can decode from their release notes. They deprecate many things between these two versions.

Unless I can be convinced otherwise, this update is deemed outside the acceptable norms for a stable release.

I think backport the specific security issues may be more appropriate.

thanks,
Armin

Quoted 12 lines

Andrej Valek (2):
thrift: drop unsupported features
thrift: upgrade to 0.14.2

 ...llationPaths.cmake-Define-libdir-in-terms.patch |  8 +++----
 .../thrift/{thrift_0.13.0.bb => thrift_0.14.2.bb}  | 26 ++++++++++------------
 2 files changed, 16 insertions(+), 18 deletions(-)
 rename meta-oe/recipes-connectivity/thrift/{thrift_0.13.0.bb => thrift_0.14.2.bb} (72%)