- Unbreak build

PR:		169505
Submitted by:	Gea-Suan Lin <gslin@gslin.org>
Approved by:	maintainer
This commit is contained in:
Martin Wilke 2012-08-05 06:02:30 +00:00
parent c4b4de4392
commit 5348ba2904
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=302069
2 changed files with 12 additions and 2 deletions

View File

@ -6,6 +6,7 @@
PORTNAME= scribe
DISTVERSION= 2.2.2012.01.07
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= https://github.com/facebook/scribe/tarball/${GITVERSION}/
DISTNAME= facebook-scribe-${GITVERSION}
@ -21,8 +22,6 @@ RUN_DEPENDS= p5-Class-Accessor>0:${PORTSDIR}/devel/p5-Class-Accessor \
p5-Thrift>0:${PORTSDIR}/devel/p5-Thrift \
${PYTHON_SITELIBDIR}/thrift/__init__.py:${PORTSDIR}/devel/py-thrift
BROKEN= does not compile
GITVERSION= 63e4824
FETCH_ARGS= -pRr
WRKSRC= ${WRKDIR}/${DISTNAME}

View File

@ -0,0 +1,11 @@
--- src/file.cpp.orig 2012-06-28 12:42:20.000000000 +0800
+++ src/file.cpp 2012-06-28 12:42:30.000000000 +0800
@@ -245,7 +245,7 @@
boost::filesystem::directory_iterator dir_iter(path), end_iter;
for ( ; dir_iter != end_iter; ++dir_iter) {
- _return.push_back(dir_iter->filename());
+ _return.push_back(dir_iter->path().filename().string());
}
}
} catch (const std::exception& e) {