Browse Source

Merge pull request #9218 from neheb/fgo

Update Facebook tools
lilik-openwrt-22.03
Rosen Penev 6 years ago
committed by GitHub
parent
commit
8100c69d2e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 112 additions and 79 deletions
  1. +27
    -20
      libs/fbthrift/Makefile
  2. +10
    -8
      libs/libfizz/Makefile
  3. +18
    -16
      libs/libfolly/Makefile
  4. +23
    -0
      libs/libfolly/patches/102-uclibc-patches.patch
  5. +14
    -12
      libs/librsocket-cpp/Makefile
  6. +0
    -16
      libs/librsocket-cpp/patches/100-fix-momit-leaf-frame-pointer-error.patch
  7. +11
    -0
      libs/librsocket-cpp/patches/102-gcc9.patch
  8. +9
    -7
      libs/libwangle/Makefile

+ 27
- 20
libs/fbthrift/Makefile View File

@ -1,49 +1,56 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=fbthrift PKG_NAME:=fbthrift
PKG_VERSION:=2019.05.27.00
PKG_VERSION:=2019.06.10.00
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/facebook/fbthrift/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/facebook/fbthrift/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=7c56dae532e60844520cef4ce03abd4911323fe340fdee0cc3a6a3e8adb09e3f
PKG_HASH:=0897c66564a2742b24dd6ae77812b42987c3493944d1d5d40d4005d71deb7cb5
PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=fbthrift/host
HOST_BUILD_DEPENDS:=boost/host libmstch/host HOST_BUILD_DEPENDS:=boost/host libmstch/host
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/cmake.mk
PKG_BUILD_DEPENDS:=fbthrift/host
HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST) HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
PKG_BUILD_PARALLEL:=1
HOST_BUILD_PARALLEL:=1 HOST_BUILD_PARALLEL:=1
CMAKE_OPTIONS:= \
-DBoost_NO_BOOST_CMAKE=ON \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DBUILD_SHARED_LIBS=ON
CMAKE_HOST_OPTIONS:= \
-DBoost_NO_BOOST_CMAKE=ON \
-Dcompiler_only=ON
HOST_LDFLAGS:=-Wl,-rpath=$(STAGING_DIR_HOST)/lib
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/fbthrift define Package/fbthrift
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE:=Facebook's branch of Apache Thrift, including a new C++ server. TITLE:=Facebook's branch of Apache Thrift, including a new C++ server.
DEPENDS:=+libwangle +libfmt +libmstch +librsocket-cpp +@boost-host-build-filesystem \
+@boost-host-build-thread +@boost-host-build-system
DEPENDS:=+libwangle +libfmt +libmstch +librsocket-cpp \
+@boost-host-build-chrono +@boost-host-build-date_time +@boost-host-build-atomic \
+@boost-host-build-thread +@boost-host-build-system +@boost-host-build-filesystem
endef endef
define Package/fbthrift/description define Package/fbthrift/description
Facebook's branch of Apache Thrift, including a new C++ server. Facebook's branch of Apache Thrift, including a new C++ server.
endef endef
CMAKE_HOST_OPTIONS += \
-DBoost_NO_BOOST_CMAKE=ON \
-Dcompiler_only=ON \
-DCMAKE_SKIP_RPATH=FALSE \
-DCMAKE_INSTALL_RPATH="${STAGING_DIR_HOST}/lib" \
CMAKE_OPTIONS += \
-DBoost_NO_BOOST_CMAKE=ON \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-Dlib_only=ON \
-DTHRIFT1="$(STAGING_DIR_HOST)/bin/thrift1" \
-DTHRIFT_COMPILER_INCLUDE="$(STAGING_DIR_HOST)/include/"
define Package/fbthrift/install define Package/fbthrift/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/


+ 10
- 8
libs/libfizz/Makefile View File

@ -1,27 +1,25 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libfizz PKG_NAME:=libfizz
PKG_VERSION:=2019.05.27.00
PKG_VERSION:=2019.06.10.00
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/facebookincubator/fizz/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/facebookincubator/fizz/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=d3f5325717a2af3684a41889d45b19e975cfff177faffdfaab8cb63df4e0318c
PKG_HASH:=29a9b2d020b70b83bf27fa6332c07c4ae9cca3b82c5ac9214220a815d7f1fe7f
PKG_BUILD_DIR:=$(BUILD_DIR)/fizz-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/fizz-$(PKG_VERSION)
PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
PKG_LICENSE:=BSD PKG_LICENSE:=BSD
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
CMAKE_SOURCE_SUBDIR:=fizz CMAKE_SOURCE_SUBDIR:=fizz
CMAKE_OPTIONS:= \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=ON
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libfizz define Package/libfizz
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
@ -35,6 +33,10 @@ define Package/libfizz/description
Fizz currently supports TLS 1.3 drafts 28, 26 (both wire-compatible with the final specification), and 23. Fizz currently supports TLS 1.3 drafts 28, 26 (both wire-compatible with the final specification), and 23.
endef endef
CMAKE_OPTIONS += \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED_LIBS=ON
define Package/libfizz/install define Package/libfizz/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfizz.so* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfizz.so* $(1)/usr/lib/


+ 18
- 16
libs/libfolly/Makefile View File

@ -1,40 +1,32 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libfolly PKG_NAME:=libfolly
PKG_VERSION:=2019.05.27.00
PKG_VERSION:=2019.06.10.00
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/facebook/folly/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/facebook/folly/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=7535937e4b4bde14e6c854dc55a5fe9f290ccf1918621f20678ebecd0c1239e1
PKG_HASH:=afecd68815a83865d95a3a6b861abe8096beefae45c89566e0d510279b631b57
PKG_BUILD_DIR:=$(BUILD_DIR)/folly-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/folly-$(PKG_VERSION)
PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
PKG_LICENSE:=Apache-2.0 PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
CMAKE_OPTIONS:= \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCXX_STD=gnu++14 \
-DFOLLY_HAVE_UNALIGNED_ACCESS_EXITCODE=OFF \
-DFOLLY_HAVE_LINUX_VDSO_EXITCODE=OFF \
-DFOLLY_HAVE_WCHAR_SUPPORT_EXITCODE=OFF \
-DHAVE_VSNPRINTF_ERRORS_EXITCODE=OFF \
-DFOLLY_HAVE_XSI_STRERROR_R_EXITCODE=0 \
-DBUILD_SHARED_LIBS=ON
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libfolly define Package/libfolly
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE:=An open-source C++ library developed and used at Facebook. TITLE:=An open-source C++ library developed and used at Facebook.
URL:=https://github.com/facebook/folly URL:=https://github.com/facebook/folly
DEPENDS:=+boost +boost-context +boost-date_time +boost-filesystem +boost-program_options +boost-regex \ DEPENDS:=+boost +boost-context +boost-date_time +boost-filesystem +boost-program_options +boost-regex \
+libopenssl +libdouble-conversion +libevent2 +glog +libsodium +libaio +libunwind +libatomic \
+libbz2 +zlib +libzstd +liblzma +liblz4
+libopenssl +libdouble-conversion +libevent2 +glog +libsodium +libaio +libatomic \
+libbz2 +zlib +libzstd +liblzma +liblz4 +PACKAGE_libunwind:libunwind
endef endef
define Package/libfolly/description define Package/libfolly/description
@ -45,6 +37,16 @@ define Package/libfolly/description
This package includes the shared library. This package includes the shared library.
endef endef
CMAKE_OPTIONS += \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON \
-DCXX_STD=gnu++14 \
-DFOLLY_HAVE_UNALIGNED_ACCESS_EXITCODE=OFF \
-DFOLLY_HAVE_LINUX_VDSO_EXITCODE=OFF \
-DFOLLY_HAVE_WCHAR_SUPPORT_EXITCODE=OFF \
-DHAVE_VSNPRINTF_ERRORS_EXITCODE=OFF \
-DFOLLY_HAVE_XSI_STRERROR_R_EXITCODE=0 \
-DBUILD_SHARED_LIBS=ON
define Package/libfolly/install define Package/libfolly/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfolly*.so* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfolly*.so* $(1)/usr/lib/


+ 23
- 0
libs/libfolly/patches/102-uclibc-patches.patch View File

@ -0,0 +1,23 @@
--- a/folly/CachelinePadded.h
+++ b/folly/CachelinePadded.h
@@ -35,10 +35,6 @@ namespace folly {
*/
template <typename T>
class CachelinePadded {
- static_assert(
- alignof(T) <= max_align_v,
- "CachelinePadded does not support over-aligned types.");
-
public:
template <typename... Args>
explicit CachelinePadded(Args&&... args)
--- a/folly/external/farmhash/farmhash.cpp
+++ b/folly/external/farmhash/farmhash.cpp
@@ -181,6 +181,7 @@
#undef bswap_32
#undef bswap_64
+#undef _BYTESWAP_H
#include <byteswap.h>
#endif

+ 14
- 12
libs/librsocket-cpp/Makefile View File

@ -1,30 +1,26 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=librsocket-cpp PKG_NAME:=librsocket-cpp
PKG_SOURCE_DATE:=2019-05-08
PKG_SOURCE_VERSION:=ddc80392b17a3fadcbea09f82ea5f6936f0fd459
PKG_SOURCE_DATE:=2019-06-11
PKG_SOURCE_VERSION:=741f817fd519e0610cddb5783aae812355e19435
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/rsocket/rsocket-cpp/tar.gz/$(PKG_SOURCE_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/rsocket/rsocket-cpp/tar.gz/$(PKG_SOURCE_VERSION)?
PKG_HASH:=b9b5177be57f6cd23ff3592845b11209167f679b683cb73acbf351e7a3550a76
PKG_HASH:=56886deba0f3594b4a430b1f515c90a138800b8e387440e6b8bf728d660f457a
PKG_BUILD_DIR:=$(BUILD_DIR)/rsocket-cpp-$(PKG_SOURCE_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/rsocket-cpp-$(PKG_SOURCE_VERSION)
PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
PKG_LICENSE:=Apache-2.0 PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
CMAKE_BINARY_SUBDIR:=builddir CMAKE_BINARY_SUBDIR:=builddir
CMAKE_OPTIONS:= \
-DBUILD_BENCHMARKS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_SHARED_LIBS=ON
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/librsocket-cpp define Package/librsocket-cpp
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
@ -47,6 +43,12 @@ define Package/libyarpl/description
C++ implementation of reactive functional programming including both Observable and Flowable types. C++ implementation of reactive functional programming including both Observable and Flowable types.
endef endef
CMAKE_OPTIONS += \
-DBUILD_BENCHMARKS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_SHARED_LIBS=ON
define Package/librsocket-cpp/install define Package/librsocket-cpp/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libReactiveSocket.so* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libReactiveSocket.so* $(1)/usr/lib/


+ 0
- 16
libs/librsocket-cpp/patches/100-fix-momit-leaf-frame-pointer-error.patch View File

@ -1,16 +0,0 @@
diff --git a/yarpl/CMakeLists.txt b/yarpl/CMakeLists.txt
--- a/yarpl/CMakeLists.txt Fri May 03 07:45:18 2019 -0700
+++ b/yarpl/CMakeLists.txt Tue May 07 02:03:23 2019 -0700
@@ -21,7 +21,11 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-weak-vtables -Wno-padded")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -momit-leaf-frame-pointer")
+ include(CheckCXXCompilerFlag)
+ CHECK_CXX_COMPILER_FLAG("-momit-leaf-frame-pointer" HAVE_OMIT_LEAF_FRAME_POINTER)
+ if(HAVE_OMIT_LEAF_FRAME_POINTER)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -momit-leaf-frame-pointer")
+ endif()
endif()
if(YARPL_WRAP_SHARED_IN_LOCK)

+ 11
- 0
libs/librsocket-cpp/patches/102-gcc9.patch View File

@ -0,0 +1,11 @@
--- a/yarpl/Refcounted.h
+++ b/yarpl/Refcounted.h
@@ -42,7 +42,7 @@ std::shared_ptr<T> atomic_exchange(
auto refptr = ar->ref.lock();
auto old = std::move(*refptr);
*refptr = std::move(r);
- return std::move(old);
+ return old;
}
template <typename T>

+ 9
- 7
libs/libwangle/Makefile View File

@ -1,26 +1,25 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libwangle PKG_NAME:=libwangle
PKG_VERSION:=2019.05.27.00
PKG_VERSION:=2019.06.10.00
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/facebook/wangle/tar.gz/v$(PKG_VERSION)? PKG_SOURCE_URL:=https://codeload.github.com/facebook/wangle/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=935d94658133279d98de27ab7c78801c87f16414b8eec43766798acc5b14f549
PKG_HASH:=3721c003aa5fce889699b0301705eced7a0ea4ab2e7e12af543dab3493ba8be9
PKG_BUILD_DIR:=$(BUILD_DIR)/wangle-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/wangle-$(PKG_VERSION)
PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
PKG_LICENSE:=Apache-2.0 PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
CMAKE_SOURCE_SUBDIR:=wangle CMAKE_SOURCE_SUBDIR:=wangle
CMAKE_OPTIONS:= \
-DBUILD_SHARED_LIBS=ON
CMAKE_INSTALL:=1 CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libwangle define Package/libwangle
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
@ -33,6 +32,9 @@ define Package/libwangle/description
This package includes the shared library. This package includes the shared library.
endef endef
CMAKE_OPTIONS:= \
-DBUILD_SHARED_LIBS=ON
define Package/libwangle/install define Package/libwangle/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libwangle.so* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwangle.so* $(1)/usr/lib/


Loading…
Cancel
Save