Package Details: wangle 2024.05.06.00-1

Git Clone URL: https://aur.archlinux.org/wangle.git (read-only, click to copy)
Package Base: wangle
Description: C++ networking library providing client/server abstractions for building services
Upstream URL: https://github.com/facebook/wangle
Keywords: c++ client facebook network protocol server service
Licenses: Apache-2.0
Provides: libwangle.so
Submitter: dseg
Maintainer: MrAnno (carsme)
Last Packager: carsme
Votes: 3
Popularity: 0.120500
First Submitted: 2015-08-13 09:21 (UTC)
Last Updated: 2024-05-09 17:15 (UTC)

Latest Comments

« First ‹ Previous 1 2

ppwwyyxx commented on 2016-04-18 18:15 (UTC)

Does it compile well with folly-git? I'm seeing the following error: /home/wyx/System/installation/fbstuff/wangle/src/wangle-0.13.0/wangle/ssl/SSLContextManager.cpp: In member function ‘void wangle::SSLContextManager::ctxSetupByOpensslFeature(std::shared_ptr<folly::SSLContext>, const wangle::SSLContextConfig&)’ /home/wyx/System/installation/fbstuff/wangle/src/wangle-0.13.0/wangle/ssl/SSLContextManager.cpp:450:5: error: no matching function for call to ‘folly::SSLContext::addClientHelloCallback(std::_Bind_helper<false, void (folly::SSLContext::*)(ssl_st*, const std::__cxx11::basic_string<char>&, const std::vector<std::pair<std::__cxx11::basic_string<char>, int> >&), folly::SSLContext*, const std::_Placeholder<1>&, const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::type)’ ); ^ In file included from /home/wyx/System/installation/fbstuff/wangle/src/wangle-0.13.0/wangle/../wangle/ssl/SSLContextManager.h:13:0, from /home/wyx/System/installation/fbstuff/wangle/src/wangle-0.13.0/wangle/ssl/SSLContextManager.cpp:10: /usr/include/folly/io/async/SSLContext.h:303:16: note: candidate: virtual void folly::SSLContext::addClientHelloCallback(const ClientHelloCallback&) virtual void addClientHelloCallback(const ClientHelloCallback& cb);

dseg commented on 2015-12-27 21:16 (UTC)

@renanbs Thank you very much for the patches! Updated the package.

renanbs commented on 2015-11-25 03:58 (UTC)

To be able compile this package using folly-git I had to create a new patch to CMakeLists.txt and to ConnectionManager.h. I also changed your PKGBUILD: CMakelists.txt.patch: --- CMakeLists.txt 2015-11-25 01:40:08.738455052 -0200 +++ CMakeLists-patched.txt 2015-11-25 01:28:11.000000000 -0200 @@ -9,7 +9,6 @@ set(CMAKE_CXX_FLAGS "-std=c++0x -fPIC") set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/) - set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) @@ -79,7 +78,9 @@ ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} -lglog - -lgflags) + -lgflags + -lpthread + -latomic) install(TARGETS wangle DESTINATION lib) foreach(dir ${WANGLE_HEADER_DIRS}) ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- ConnectionManager.h.patch: --- ConnectionManager.h 2015-11-25 01:43:58.881780745 -0200 +++ ConnectionManager-patched.h 2015-11-25 01:43:34.295114895 -0200 @@ -60,8 +60,8 @@ */ template<typename... Args> static UniquePtr makeUnique(Args&&... args) { - return folly::make_unique<ConnectionManager, Destructor>( - std::forward<Args>(args)...); + return std::unique_ptr<ConnectionManager, Destructor>( + new ConnectionManager(std::forward<Args>(args)...)); } /** ------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- PKGBUILD.patch: --- PKGBUILD 2015-10-06 12:46:12.000000000 -0300 +++ wanglePKGBUILD/PKGBUILD 2015-11-25 01:48:30.775105052 -0200 @@ -11,16 +11,20 @@ options=('!emptydirs' 'staticlibs') source=("https://github.com/facebook/$pkgname/archive/v${pkgver}.tar.gz" CMakeLists.txt.patch -ServiceTest.cpp.patch) +ServiceTest.cpp.patch +ConnectionManager.h.patch) md5sums=('f6d34eaaf1342384f9f7327c6640e55e' - 'd5086d808c774339062e8a37e22b5921' - '36ff005a5706ca9c5153e610ea157f37') + '10c845f5b26e34d2a3a13f9d9f37223d' + '36ff005a5706ca9c5153e610ea157f37' + '16a1d1c07649776afd92969f90ac4544') prepare() { cd "$pkgname-$pkgver/$pkgname" patch --verbose -p0 -i $srcdir/CMakeLists.txt.patch cd service patch --verbose -p0 -i $srcdir/ServiceTest.cpp.patch + cd ../acceptor + patch --verbose -p0 -i $srcdir/ConnectionManager.h.patch } build() {