Skip to contentSkip to conversation

thrift: upgrade to 0.14.2

PATCH In review Andrej Valek 1 participant 1 message Aug 10, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 thrift: upgrade to 0.14.2

License-Update: Added new sections for new files

Configuration changes:
- BUILD_EXAMPLES - does not exist anymore
- WITH_SHARED_LIB -> BUILD_SHARED_LIBS, WITH_STATIC_LIB are not to be allowed together
- WITH_AS3=OFF - adobe action script 3 not available

Added new options (disabled by default):
- javascript, nodejs

---
 ...llationPaths.cmake-Define-libdir-in-terms.patch |  8 ++++----
 .../thrift/{thrift_0.13.0.bb => thrift_0.14.2.bb}  | 22 ++++++++++++----------
 2 files changed, 16 insertions(+), 14 deletions(-)
 rename meta-oe/recipes-connectivity/thrift/{thrift_0.13.0.bb => thrift_0.14.2.bb} (72%)
meta-oe/recipes-connectivity/thrift/thrift/0001-DefineInstallationPaths.cmake-Define-libdir-in-terms.patch +4 -4
index 485d7a4b0..e1e474ab0 100644
@@ -12,9 +12,9 @@ Signed-off-by: Khem Raj <[email protected]>
 
 --- a/build/cmake/DefineInstallationPaths.cmake
 +++ b/build/cmake/DefineInstallationPaths.cmake
-@@ -22,11 +22,11 @@
- set(BIN_INSTALL_DIR "bin" CACHE PATH "The binary install dir (default: bin)")
- set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" CACHE PATH "The library install dir (default: lib${LIB_SUFFIX})")
+@@ -26,11 +26,11 @@
+     set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" CACHE PATH "The library install dir (default: lib${LIB_SUFFIX})")
+ endif()
  set(INCLUDE_INSTALL_DIR "include" CACHE PATH "The library install dir (default: include)")
 -set(CMAKE_INSTALL_DIR "lib/cmake" CACHE PATH "The subdirectory to install cmake config files (default: cmake)")
 -set(PKGCONFIG_INSTALL_DIR "lib/pkgconfig" CACHE PATH "The subdirectory to install pkgconfig config files (default: lib/pkgconfig)")
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <[email protected]>
  set(cmakedir "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DIR}")
 --- a/build/cmake/DefineCMakeDefaults.cmake
 +++ b/build/cmake/DefineCMakeDefaults.cmake
-@@ -44,8 +44,8 @@ include(BuildType)
+@@ -44,8 +44,8 @@
  # top of the build tree rather than in hard-to-find leaf
  # directories. This simplifies manual testing and the use of the build
  # tree rather than installed thrift libraries.
meta-oe/recipes-connectivity/thrift/thrift_0.14.2.bb renamed from meta-oe/recipes-connectivity/thrift/thrift_0.13.0.bb +12 -10
similarity index 72%
rename from meta-oe/recipes-connectivity/thrift/thrift_0.13.0.bb
rename to meta-oe/recipes-connectivity/thrift/thrift_0.14.2.bb
index e3880b357..435e5934e 100644
@@ -3,16 +3,16 @@ 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=394465e125cffc0f133695ed43f14047 \
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c40a383cb3f747e0c7abbf1482f194f0 \
                     file://NOTICE;md5=2659b43daca219f99a2f2626ea128f73"
 
-DEPENDS = "thrift-native boost flex-native bison-native openssl"
+DEPENDS = "thrift-native boost flex-native bison-native openssl zlib"
 
 SRC_URI = "https://www-eu.apache.org/dist/thrift//${PV}/${BPN}-${PV}.tar.gz \
            file://0001-DefineInstallationPaths.cmake-Define-libdir-in-terms.patch \
           "
-SRC_URI[md5sum] = "38a27d391a2b03214b444cb13d5664f1"
-SRC_URI[sha256sum] = "7ad348b88033af46ce49148097afe354d513c1fca7c607b59c33ebb6064b5179"
+SRC_URI[md5sum] = "284a48df355aa3910687ee9b894d3ae8"
+SRC_URI[sha256sum] = "4191bfc0b7490e20cc69f9f4dc6e991fbb612d4551aa9eef1dbf7f4c47ce554d"
 
 BBCLASSEXTEND = "native nativesdk"
 
@@ -25,22 +25,24 @@ export HOST_SYS
 
 EXTRA_OECMAKE = " \
     -DBUILD_LIBRARIES=ON \
+    -DBUILD_SHARED_LIBS=ON \
     -DBUILD_COMPILER=ON \
     -DBUILD_TESTING=OFF \
-    -DBUILD_EXAMPLES=OFF \
     -DBUILD_TUTORIALS=OFF \
+    -DWITH_AS3=OFF \
     -DWITH_CPP=ON \
     -DWITH_JAVA=OFF \
-    -DWITH_PYTHON=OFF \
-    -DWITH_STATIC_LIB=ON \
-    -DWITH_SHARED_LIB=ON \
     -DWITH_OPENSSL=ON \
     -DWITH_QT5=OFF \
+    -DWITH_ZLIB=ON \
 "
 
-PACKAGECONFIG ??= "libevent glib"
-PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent"
+PACKAGECONFIG ??= "glib libevent"
 PACKAGECONFIG[glib] = "-DWITH_C_GLIB=ON,-DWITH_C_GLIB=OFF,glib-2.0"
+PACKAGECONFIG[libevent] = "-DWITH_LIBEVENT=ON,-DWITH_LIBEVENT=OFF,libevent"
+PACKAGECONFIG[javascript] = "-DWITH_JAVASCRIPT=ON,-DWITH_JAVASCRIPT=OFF,nodejs"
+PACKAGECONFIG[nodejs] = "-DWITH_NODEJS=ON,-DWITH_NODEJS=OFF,nodejs"
+PACKAGECONFIG[python] = "-DWITH_PYTHON=ON,-DWITH_PYTHON=OFF,python"
 
 do_install_append () {
     ln -sf thrift ${D}/${bindir}/thrift-compiler
Signature · 1 line
2.11.0