Package Details: fbthrift 2019.03.18.00-1

Git Clone URL: https://aur.archlinux.org/fbthrift.git (read-only)
Package Base: fbthrift
Description: Facebook's branch of Apache Thrift, including a new C++ server.
Upstream URL: https://github.com/facebook/fbthrift
Licenses: Apache
Conflicts: thrift
Provides: thrift
Submitter: dseg
Maintainer: MrAnno
Last Packager: akstrfn
Votes: 4
Popularity: 0.250852
First Submitted: 2015-03-24 06:40
Last Updated: 2019-03-21 21:16

Required by (14)

Sources (1)

Latest Comments

1 2 Next › Last »

dseg commented on 2017-06-17 01:42

A same issue reported on the Github,
>https://github.com/facebook/folly/issues/614
I guess this problem can not be fixed until the folly library fully supports GCC v7.
Could someone please help?

sleeping commented on 2017-06-15 00:58

configure: Unable to find the folly library.
configure: error: Please install the folly library

dseg commented on 2017-03-23 09:02

Updated to the latest version. (2017.03.20.00)

joker512 commented on 2017-03-03 15:01

@ppwwyyxx I tried fbthrift-git. Result is the same.

m3thodic commented on 2017-02-21 16:52

Please add wangle to the build deps, thanks!

checking for getenv in -lwangle... no
configure: error: Please install the wangle library from https://github.com/facebook/wangle

ppwwyyxx commented on 2017-02-08 05:16

@joker512 You can try the package fbthrift-git

joker512 commented on 2017-01-19 16:05

Error during installation:
...
checking for folly/folly-config.h in /usr... yes
checking whether compiling and linking against folly works... no
configure: Unable to find the folly library.
configure: error: Please install the folly library

folly is installed. I tried all: fb-folly, folly and folly-git. I found a bit more information in config.log:
...
/usr/lib/libfolly.so:·undefined·reference·to·`boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform(char·const*,·char·const*)·const'
/usr/lib/libfolly.so:·undefined·reference·to·`boost::re_detail_106300::cpp_regex_traits_implementation<char>::transform_primary(char·const*,·char·const*)·const'
collect2:·error:·ld·returned·1·exit·status
configure:19042:·$?·=·1
...

It looks like something is incompatible between folly and boost...

dseg commented on 2015-12-27 21:52

Updated to 0.31.0

dseg commented on 2015-12-22 22:56

@renarbs
Thank you very much for the patch!

Well, I have some problem with my ArchLinux build pc so it will takes few days to fix the problem and applying your patch, how about co-maintain this package?

renanbs commented on 2015-12-21 23:49

Actually I made it compile using a tip from an issue on fbthrift: https://github.com/facebook/fbthrift/issues/134

Using version 0.31 I created this patch:
--- GeneratedCodeHelper.h 2015-08-24 17:47:32.000000000 -0300
+++ GeneratedCodeHelper-patched.h 2015-12-21 21:05:49.000000000 -0200
@@ -921,7 +921,7 @@
void process_pmap(
Processor* proc,
const typename GeneratedAsyncProcessor::ProcessMap<
- typename GeneratedAsyncProcessor::ProcessFunc<
+ GeneratedAsyncProcessor::ProcessFunc<
Processor, ProtocolReader>>& pmap,
std::unique_ptr<ResponseChannel::Request> req,
std::unique_ptr<folly::IOBuf> buf,

and changed the PKGBUILD to this:
# Maintainer: Daichi Shinozaki <dsdseg@gmail.com>
pkgname=fbthrift
pkgver=0.31.0
pkgrel=1
pkgdesc="Facebook's branch of Apache Thrift, including a new C++ server"
arch=('i686' 'x86_64')
url="https://github.com/facebook/fbthrift"
license=('Apache')
depends=('folly' 'krb5' 'numactl' 'python2')
conflicts=('thrift')
provides=('thrift')
makedepends=('scons')
options=('!emptydirs' 'staticlibs')
source=("https://github.com/facebook/$pkgname/archive/v${pkgver}.tar.gz"
'BinaryProtocol.h.patch'
'CompactProtocol.h.patch'
'Serializer.h.patch'
'Krb5CredentialsCacheManager.cpp.patch'
'Makefile.am.patch'
'ax_check_folly.m4.patch'
'GeneratedCodeHelper.h.patch'
)
md5sums=('80d180ea65b03c7f68834159ab45a7ae'
'5a410a5ffdd4813f9844c06b37cdd048'
'067b4fc38a9e73cc06bd8d29eeb95c4f'
'ae028ff57127ee3f3c44b5b592b09199'
'bda963346b5171e59bacc0034868fa63'
'23625f87b9b2ef4087f4206c5bbe67a6'
'317dcba3617fe197533cd53b624cef35'
'd9490bce5dca950a5d48798a6fcc1d1c'
)

prepare() {
cd "$pkgname-$pkgver/thrift"
patch -p2 --verbose < $srcdir/BinaryProtocol.h.patch
patch -p2 --verbose < $srcdir/CompactProtocol.h.patch
patch -p2 --verbose < $srcdir/Serializer.h.patch
patch -p2 --verbose < $srcdir/Krb5CredentialsCacheManager.cpp.patch
cd "compiler"
patch -p0 --verbose < $srcdir/Makefile.am.patch
cd ..
cd m4
patch -p0 --verbose < $srcdir/ax_check_folly.m4.patch
cd ..
cd lib/cpp2
patch -p0 --verbose < $srcdir/GeneratedCodeHelper.h.patch
cd ../..

sed -ie '1 s/python/python2/' ./compiler/py/main.py
# ArchLinux system has both libboost_python.so and libboost3_python.so.
# Use python2 for build, so prevent libboost3_python.so to be chosen
sed -i -e 's/libboost_python\*.so\*/libboost_python.so\*/' ./m4/ax_boost_python.m4
autoreconf -ivf
}

build() {
cd "$pkgname-$pkgver/thrift"
PYTHON=/usr/bin/python2 ./configure --prefix=/usr
sed --in-place -e 's/python\( -mthrift_compiler.main\)/python2 \1/g' ./lib/cpp2/Makefile
make
}

#check() {
# cd "$pkgname-$pkgver/$pkgname"
# make check
#}

package() {
cd "$pkgname-$pkgver/thrift"
make \
PY_INSTALL_HOME="$pkgdir/usr" \
PY_INSTALL_ARGS="--root '${pkgdir}' --prefix=/usr" \
DESTDIR="$pkgdir" \
install
}

Can you update this package? :-)