Move all to deprecated folder.

This commit is contained in:
2016-11-16 21:57:57 +01:00
parent 01738a7684
commit 05de7d6c04
9777 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
Make it cross-compile happy the hard way, there's no clean way.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
diff -Nura thrift-0.9.1.orig/aclocal/ax_lib_event.m4 thrift-0.9.1/aclocal/ax_lib_event.m4
--- thrift-0.9.1.orig/aclocal/ax_lib_event.m4 2013-08-15 11:04:29.000000000 -0300
+++ thrift-0.9.1/aclocal/ax_lib_event.m4 2013-10-07 20:40:44.076435613 -0300
@@ -75,7 +75,7 @@
AC_LANG_PUSH([C])
dnl This can be changed to AC_LINK_IFELSE if you are cross-compiling,
dnl but then the version cannot be checked.
- AC_RUN_IFELSE([AC_LANG_PROGRAM([[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <sys/types.h>
#include <event.h>
]], [[

View File

@@ -0,0 +1,28 @@
Fillers to make autoreconf (automake) happy.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
diff -Nura thrift-0.9.2.orig/AUTHORS thrift-0.9.2/AUTHORS
--- thrift-0.9.2.orig/AUTHORS 1969-12-31 21:00:00.000000000 -0300
+++ thrift-0.9.2/AUTHORS 2014-12-05 14:46:20.431211224 -0300
@@ -0,0 +1,2 @@
+
+
diff -Nura thrift-0.9.2.orig/ChangeLog thrift-0.9.2/ChangeLog
--- thrift-0.9.2.orig/ChangeLog 1969-12-31 21:00:00.000000000 -0300
+++ thrift-0.9.2/ChangeLog 2014-12-05 14:46:34.290686170 -0300
@@ -0,0 +1,2 @@
+
+
diff -Nura thrift-0.9.2.orig/NEWS thrift-0.9.2/NEWS
--- thrift-0.9.2.orig/NEWS 1969-12-31 21:00:00.000000000 -0300
+++ thrift-0.9.2/NEWS 2014-12-05 14:46:32.308618241 -0300
@@ -0,0 +1,2 @@
+
+
diff -Nura thrift-0.9.2.orig/README thrift-0.9.2/README
--- thrift-0.9.2.orig/README 1969-12-31 21:00:00.000000000 -0300
+++ thrift-0.9.2/README 2014-12-05 14:46:28.305481028 -0300
@@ -0,0 +1,2 @@
+
+

View File

@@ -0,0 +1,16 @@
Make zlib version detection cross-compile happy.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
diff -Nura thrift-0.9.1.orig/aclocal/ax_lib_zlib.m4 thrift-0.9.1/aclocal/ax_lib_zlib.m4
--- thrift-0.9.1.orig/aclocal/ax_lib_zlib.m4 2013-08-15 11:04:29.000000000 -0300
+++ thrift-0.9.1/aclocal/ax_lib_zlib.m4 2013-10-07 20:47:44.523177973 -0300
@@ -73,7 +73,7 @@
# (defined in the library).
AC_LANG_PUSH([C])
dnl This can be changed to AC_LINK_IFELSE if you are cross-compiling.
- AC_RUN_IFELSE([AC_LANG_PROGRAM([[
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <zlib.h>
#if ZLIB_VERNUM >= 0x$WANT_ZLIB_VERSION
#else

View File

@@ -0,0 +1,47 @@
From 9b03d2b02d32302008d2bd0218b31b9a0ca5a748 Mon Sep 17 00:00:00 2001
From: Jens Geyer <jensg@apache.org>
Date: Fri, 3 Apr 2015 12:37:03 +0200
Subject: [PATCH] THRIFT-3071 check minimum required version of automake in bootstrap.sh
Client: Build process
Patch: James E. King, III <jim.king@simplivity.com>
This closes #421
- remove a warning when using libtool
"libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([./aclocal])' to configure.ac,"
[Romain:
- This is upstream commit 4aa95df383bfa13c46a4dc0b41672ec29d476300
- remove the part for bootstrap.sh which is not
bundled in thrift archive.
- fix the commit log accordingly]
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
configure.ac | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac
index 5fa611e..8daeb03 100755
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,7 @@
#
AC_PREREQ(2.65)
+AC_CONFIG_MACRO_DIR([./aclocal])
AC_INIT([thrift], [0.9.2])
@@ -540,6 +541,7 @@ AC_CHECK_FUNCS([memset])
AC_CHECK_FUNCS([mkdir])
AC_CHECK_FUNCS([realpath])
AC_CHECK_FUNCS([select])
+AC_CHECK_FUNCS([setlocale])
AC_CHECK_FUNCS([socket])
AC_CHECK_FUNCS([strchr])
AC_CHECK_FUNCS([strdup])
--
1.9.3

View File

@@ -0,0 +1,28 @@
From 9c3a7e79b256730dd85a7acadbaf57ab018b3127 Mon Sep 17 00:00:00 2001
From: Romain Naour <romain.naour@openwide.fr>
Date: Tue, 7 Apr 2015 07:37:26 +0200
Subject: [PATCH] configure.ac: C++11 is optional
Thrift build fine whitout c++11 support.
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 8daeb03..bfd49ae 100755
--- a/configure.ac
+++ b/configure.ac
@@ -99,7 +99,7 @@ AC_PROG_AWK
AC_PROG_RANLIB
AC_LANG([C++])
-AX_CXX_COMPILE_STDCXX_11([noext])
+AX_CXX_COMPILE_STDCXX_11([noext], [optional])
AC_ARG_ENABLE([libs],
AS_HELP_STRING([--enable-libs], [build the Apache Thrift libraries [default=yes]]),
--
1.9.3

View File

@@ -0,0 +1,24 @@
config BR2_PACKAGE_THRIFT
bool "thrift"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_USE_WCHAR
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
select BR2_PACKAGE_BOOST
select BR2_PACKAGE_LIBEVENT
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_ZLIB
help
The Apache Thrift software framework, for scalable cross-language
services development, combines a software stack with a
code generation engine to build services that work
efficiently and seamlessly between C++, Java, Python, PHP, Ruby,
Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk,
OCaml and Delphi and other languages.
http://thrift.apache.org/
comment "thrift needs a toolchain w/ C++, wchar, threads"
depends on BR2_PACKAGE_BOOST_ARCH_SUPPORTS
depends on !BR2_USE_WCHAR || \
!BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP

View File

@@ -0,0 +1,2 @@
# From https://www.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz.md5
md5 89f63cc4d0100912f4a1f8a9dee63678 thrift-0.9.2.tar.gz

View File

@@ -0,0 +1,73 @@
################################################################################
#
# thrift
#
################################################################################
THRIFT_VERSION = 0.9.2
THRIFT_SITE = http://www.us.apache.org/dist/thrift/$(THRIFT_VERSION)
THRIFT_DEPENDENCIES = host-autoconf-archive host-pkgconf host-thrift boost \
libevent openssl zlib
THRIFT_INSTALL_STAGING = YES
HOST_THRIFT_DEPENDENCIES = host-autoconf-archive host-bison host-boost \
host-flex host-libevent host-openssl host-pkgconf host-zlib
THRIFT_CONF_OPTS = --with-sysroot=$(STAGING_DIR) \
--with-boost \
--with-boost-libdir=$(STAGING_DIR)/usr/lib \
--disable-tests \
--disable-tutorial
HOST_THRIFT_CONF_OPTS = --with-sysroot=$(HOST_DIR) \
--disable-tests \
--disable-tutorial
THRIFT_AUTORECONF = YES
THRIFT_AUTORECONF_OPTS = -I $(HOST_DIR)/usr/share/autoconf-archive
THRIFT_LICENSE = Apache-2.0
THRIFT_LICENSE_FILES = LICENSE
ifeq ($(BR2_STATIC_LIBS),y)
# openssl uses zlib, so we need to explicitly link with it when static
THRIFT_CONF_ENV += LIBS=-lz
endif
# Language selection
# The generator (host tool) works with all of them regardless
# This is just for the libraries / bindings
THRIFT_LANG_CONF_OPTS += --without-csharp --without-java --without-erlang \
--without-python --without-perl --without-php --without-php_extension \
--without-ruby --without-haskell --without-go --without-d \
--without-qt4 --without-lua
HOST_THRIFT_CONF_OPTS += $(THRIFT_LANG_CONF_OPTS) --without-c_glib
THRIFT_CONF_OPTS += $(THRIFT_LANG_CONF_OPTS)
# C bindings
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
THRIFT_DEPENDENCIES += libglib2
else
THRIFT_CONF_OPTS += --without-c_glib
endif
# De-hardcode THRIFT for cross compiling
define THRIFT_TOOL_NO_HARDCODE
for f in `find $(@D) -name Makefile.am -type f`; do \
$(SED) "/^THRIFT =/d" $$f; \
done
$(SED) "s:top_builddir)/compiler/cpp/thrift:THRIFT):" $(@D)/tutorial/Makefile.am
endef
THRIFT_POST_PATCH_HOOKS += THRIFT_TOOL_NO_HARDCODE
define THRIFT_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) THRIFT=$(HOST_DIR)/usr/bin/thrift -C $(@D)
endef
# Install runtime only
define THRIFT_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/lib DESTDIR=$(TARGET_DIR) install
endef
$(eval $(autotools-package))
$(eval $(host-autotools-package))
# to be used by other packages
THRIFT = $(HOST_DIR)/usr/bin/thrift