Commit Graph

26 Commits

Author SHA1 Message Date
Hongxu Jia
0e583d2830
thrift: 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

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-11-19 21:20:52 -08:00
Wang Mingyu
0f9f2ecabc
thrift: upgrade 0.21.0 -> 0.22.0
0002-THRIFT-5842-Add-missing-cstdint-include-for-int64_t.patch
removed since it's included in 0.22.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-09 21:24:17 -07:00
Nguyen Dat Tho
a842854681
thrift: Fix build with gcc-15
Backport patch to fix issue: https://errors.yoctoproject.org/Errors/Details/850167/

TOPDIR/tmp/work/core2-64-oe-linux/thrift/0.21.0/thrift-0.21.0/lib/cpp/src/thrift/concurrency/Mutex.h:47:26: error: 'int64_t' has not been declared
   47 |   virtual bool timedlock(int64_t milliseconds) const;
      |                          ^~~~~~~
TOPDIR/tmp/work/core2-64-oe-linux/thrift/0.21.0/thrift-0.21.0/lib/cpp/src/thrift/concurrency/Mutex.h:25:1: note: 'int64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
   24 | #include <thrift/TNonCopyable.h>
  +++ |+#include <cstdint>

Signed-off-by: Nguyen Dat Tho <tho3.nguyen@lge.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-04 19:18:46 -07:00
Yi Zhao
2c58c67854
thrift: upgrade 0.20.0 -> 0.21.0
ChangeLog:
https://github.com/apache/thrift/blob/v0.21.0/CHANGES.md

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-09-29 10:01:07 -07:00
Wang Mingyu
2de743efaa
thrift: upgrade 0.19.0 -> 0.20.0
Changelog:
==========
-C++ library don't work with HTTP (csharp server, cpp client; need cross test enhancement)
-Swift service generator doesn't support oneway
-LNK4042 and LNK2019 in go_validator_generator.cc

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-02 11:28:55 -07:00
Wang Mingyu
2dcbba76e1 thrift: upgrade 0.18.1 -> 0.19.0
Changelog:
===========
- C++ library don't work with HTTP (csharp server, cpp client; need cross test enhancement)
- Swift service generator doesn't support oneway
- LNK4042 and LNK2019 in go_validator_generator.cc
- Add dependabot
- Thrift SSL server stops working if the file descriptor returned is zero
- TMemoryBuffer resizing might shrink the buffer size due to uint32_t overflow
- Constant expects type to be defined before
- Add comparer and capacity arguments to container classes
- Handle ErrAbandonRequest automatically
- uuid sets and map keys may throw on some Haxe targets
- Superfluous block scope in generated write() code
- Haxe 4.30 emits "Local variable retval used without being initialized" on generated code
- Support for deprecated methods (via annotation)
- deprecation warning fixes for @:extern and @:enum
- Migration to JakartaEE and Apache HttpComponents 5
- FutureClient does not extend when service extends from another service
- Support Java 8
- TByteBuffer.java does not allow non-default TConfiguration
- Fix Java UUID typeid
- Server implementation exceptions are not sent to client in ES6 promise-style invocation
- Upgrade to net7.0
- NodeJS header transport leaks headers between all instances
- Php8.1 fix warnings
- add TJSONProtocol support in thrift-swift

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-09-07 08:22:44 -07:00
Mingli Yu
24b89b9ccc thrift: Remove buildpaths
Fixes:
  WARNING: thrift-0.18.1-r0 do_package_qa: QA Issue: File /usr/lib64/cmake/thrift/thriftnbTargets.cmake in package thrift-dev contains reference to TMPDIR
  File /usr/lib64/cmake/thrift/thrift_c_glibTargets.cmake in package thrift-dev contains reference to TMPDIR
  File /usr/lib64/cmake/thrift/thrift_c_glib_zlibTargets.cmake in package thrift-dev contains reference to TMPDIR [buildpaths]
  WARNING: thrift-0.18.1-r0 do_package_qa: QA Issue: File /usr/src/debug/thrift/0.18.1-r0/compiler/cpp/thrift/thrifty.hh in package thrift-src contains reference to TMPDIR
  File /usr/src/debug/thrift/0.18.1-r0/compiler/cpp/thrift/thrifty.cc in package thrift-src contains reference to TMPDIR
  File /usr/src/debug/thrift/0.18.1-r0/compiler/cpp/thrift/thriftl.cc in package thrift-src contains reference to TMPDIR [buildpaths]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-29 08:08:10 -07:00
Khem Raj
f12342676c thrift: Upgrade to 0.18.1
Drop idirafter patch to cmake files its not needed anymore with new
version

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-30 23:05:52 -07:00
Khem Raj
02fa3ea1af thrift: Fix c++ and system header include order problem
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-01-21 10:02:02 -08:00
wangmy
c48321eb77 thrift: upgrade 0.16.0 -> 0.17.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-27 10:04:35 -07:00
Davide Gardenal
e6785da68e thrift: add CVE_PRODUCT to fix CVE reporting
Without CVE_PRODUCT set to apache:thrift cve-check was catching
CVEs form facebook:thrift that are not related with this product.
Now the report is correct.

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-06 05:08:49 -07:00
wangmy
84a8a0ce1e thrift: upgrade 0.14.2 -> 0.16.0
Changelog:
==========
- C++ library don't work with HTTP (csharp server, cpp client; need cross test enhancement)
- Swift service generator doesn't support oneway

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-14 19:42:10 -07:00
Andrej Valek
ccd022736a 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

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-07 21:35:04 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Andrej Valek
1b809dba98 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

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-11 21:58:29 -07:00
Khem Raj
fe2ee80eec thrift: Upgrade to 0.13
License-Update: Copyright years changed

Fix build for multilib
Use python3 during build

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-20 16:07:50 -08:00
Pascal Bach
5ed7b732e1 thrift: update to 0.12.0
Remove the python library feature as it was never installed so nobody should
miss it.

The CMake patches are no longer needed as most of the underlying issue
is fixed in OE core.
The other patches are backports that are already upstream in 0.11.

OpenSSL 1.1 is supported by this version of thrift.

Also add a feature to use boost smart pointers instead of C++ std ones.
This is enabled by default to keep backwards compatibility with the
0.9.3 recipe. However projects depending on thrift might still need to set
FORCE_BOOST_SMART_PTR within their build CMake project to make sure the correct
headers are selected.

Further the different libraries are now split into separate packages.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-16 21:07:25 -07:00
Khem Raj
8baaf20880 thrift: Refresh patches
Make devtool happy patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-14 19:01:41 -07:00
Andrej Valek
c27756081d thrift: add support for openssl 1.1x
The newest Thrift version has currently no fix for building with gcc>=6.
Rather posting supporting patches.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-08 00:57:29 -07:00
Pascal Bach
2ff76a705a thrift: build lib for native and nativesdk
The libraries can also be build for native and nativesdk.
This is useful for running tests on the build machine.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-09-13 11:13:21 +02:00
Pascal Bach
17f6775a14 thrift: refactor recipe
- use release tarball instead of git
- move libevent, python and glib into PACKAGECONFIG
- add NOTICE file to copyright check
- split into multiple packages
  - libthrift for libaries
  - thrift-compiler for compiler
  - thrift pulls in everything as before

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-05-04 09:18:33 +02:00
Cody P Schafer
c7f39c7667 thrift: disable java
Without this, thrift will try to use system java to build it's java
bindings, which is both unexpected and may fail depending on the
version of system java.

Signed-off-by: Cody P Schafer <dev@codyps.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-10-05 18:21:12 +02:00
Cody P Schafer
3b675cb672 thrift: fix build on gcc-6
thrift build issues on gcc-6 were essentially 2 issues:

 - gcc-6 has stricter overflow checking on array declaration, and
   thrift was using `char` when it should have used `signed char`
 - gcc-6 is really picky about it's include paths (`-I`), and thrift
   had a bad habbit of passing internal ones when it was cross compiled
   due to how it was using `include_directories()`

This adds 2 patches (both variations of those submitted upstream, the
ones included here are rebased onto thrift-0.9.3).

	https://issues.apache.org/jira/browse/THRIFT-3831
	https://issues.apache.org/jira/browse/THRIFT-3828

Signed-off-by: Cody P Schafer <dev@codyps.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-15 10:22:48 +02:00
Martin Jansa
289217bbc3 meta-oe: fix indentation
* remove tabs which sneaked in since last cleanup
* meta-oe layers are using consistent indentation with 4 spaces, see
  http://www.openembedded.org/wiki/Styleguide

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-22 15:56:28 +02:00
Martin Jansa
25a78e55e9 abiword, fbreader, tvheadend, glmark2, libqmi, modemmanager, thrift, wvdial, wvstreams, dt, collectd, gtkmathview, tcsh, glcompbench, geos, libspatialite, geis, grail, opencv, openwbem, fwts: blacklist, fails to build with gcc-6 or glibc-2.24
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-06-13 19:06:44 +02:00
Philip Balister
53adf32f49 thrift: Add recipe for Apache Thrift.
* Run tested cpp bindings with GNU Radio Control Port.
 * The patch forcible removes Qt5 from configure. The disable is correct,
   but doesn't prevent a cmake error looking for qmake during configure.
   We do not need Qt5, so remove check. I suspect the issue might be in
   Qt5 cmake files.

Signed-off-by: Philip Balister <philip@balister.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-06 12:38:31 +02:00