Commit 8a486e85 authored by yuri's avatar yuri
Browse files

New port: devel/fbthrift: Facebook's branch of Apache Thrift, including a new C++ server

parent cbc258c2
......@@ -637,6 +637,7 @@
SUBDIR += fam
SUBDIR += fastcrc
SUBDIR += fb-adb
SUBDIR += fbthrift
SUBDIR += fc++
SUBDIR += fhist
SUBDIR += fifechan
......
# $FreeBSD$
PORTNAME= fbthrift
DISTVERSIONPREFIX= v
DISTVERSION= 2020.09.07.00
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= Facebook's branch of Apache Thrift, including a new C++ server
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
libdouble-conversion.so:devel/double-conversion \
libfizz.so:security/fizz \
libfmt.so:devel/libfmt \
libfolly.so:devel/folly \
libgflags.so:devel/gflags \
libglog.so:devel/glog \
libwangle.so:net/wangle \
libzstd.so:archivers/zstd
USES= bison cmake compiler:c++17-lang ssl
USE_GITHUB= yes
GH_ACCOUNT= facebook
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
post-install: # https://github.com/facebook/fbthrift/issues/393
${FIND} ${STAGEDIR}${PREFIX}/include -type d -empty -delete
.include <bsd.port.mk>
TIMESTAMP = 1599697483
SHA256 (facebook-fbthrift-v2020.09.07.00_GH0.tar.gz) = 644288ab133d5d3f98e80712f6e91fcde8eec339b7a597a2f939854c9297ee19
SIZE (facebook-fbthrift-v2020.09.07.00_GH0.tar.gz) = 5101534
--- thrift/lib/cpp2/server/Cpp2ConnContext.cpp.orig 2020-09-10 00:42:26 UTC
+++ thrift/lib/cpp2/server/Cpp2ConnContext.cpp
@@ -51,7 +51,7 @@ Cpp2ConnContext::PeerCred Cpp2ConnContext::PeerCred::q
} else {
return PeerCred{cred.pid, cred.uid, cred.gid};
}
-#elif defined(LOCAL_PEERCRED) // macOS
+#elif defined(LOCAL_PEERCRED) && defined(LOCAL_PEEREPID) // macOS
struct xucred cred = {};
pid_t epid = 0;
socklen_t len;
Thrift is a serialization and RPC framework for service communication. Thrift
enables these features in all major languages, and there is strong support for
C++, Python, Hack, and Java. Most services at Facebook are written using Thrift
for RPC, and some storage systems use Thrift for serializing records on disk.
WWW: https://github.com/facebook/fbthrift
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment