Index: head/textproc/randlm/Makefile =================================================================== --- head/textproc/randlm/Makefile (revision 456947) +++ head/textproc/randlm/Makefile (revision 456948) @@ -1,36 +1,35 @@ # Created by: Dmitry Sivachenko # $FreeBSD$ PORTNAME= randlm PORTVERSION= 0.2.5 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= textproc MASTER_SITES= SF/${PORTNAME} MAINTAINER= demon@FreeBSD.org COMMENT= A toolkit for building randomized language models BUILD_DEPENDS= ${LOCALBASE}/include/google/sparse_hash_map:devel/sparsehash LIB_DEPENDS= libboost_thread.so:devel/boost-libs RUN_DEPENDS= ${LOCALBASE}/include/google/sparse_hash_map:devel/sparsehash BROKEN_aarch64= fails to compile: invalid output constraint =a in assembler BROKEN_armv6= fails to compile: invalid output constraint =a in assembler -BROKEN_armv7= fails to compile: BloomMap.cpp:275:58: error: ordered comparison between pointer and zero ('int *' and 'int') BROKEN_powerpc64= fails to compile: 'itr' does not name a type GNU_CONFIGURE= yes USE_PERL5= run USE_LDCONFIG= yes USES= autoreconf libtool compiler:c++11-lang GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE=yes CXXFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip post-patch: cd ${WRKSRC}/hadoop && ${MV} strings.cpp strings.cc && ${MV} strings.h s.h ${REINPLACE_CMD} -e s#strings.h#s.h# ${WRKSRC}/hadoop/r_compute_ngram_counts.cpp ${WRKSRC}/hadoop/m_compute_ngram_counts_batch.cpp .include Index: head/textproc/randlm/files/patch-BitArray.cpp =================================================================== --- head/textproc/randlm/files/patch-BitArray.cpp (nonexistent) +++ head/textproc/randlm/files/patch-BitArray.cpp (revision 456948) @@ -0,0 +1,11 @@ +--- src/LDHT/BitArray.cpp.orig 2017-03-07 01:14:52 UTC ++++ src/LDHT/BitArray.cpp +@@ -115,7 +115,7 @@ uint64_t BitArray::getLength() { + } + + bool BitArray::validArrayIndex(uint64_t index) { +- if (index >= 0 && index <= getLength()) ++ if (index >= 1 && index <= getLength()) + return true; + else + return false; Property changes on: head/textproc/randlm/files/patch-BitArray.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/textproc/randlm/files/patch-BloomMap.cpp =================================================================== --- head/textproc/randlm/files/patch-BloomMap.cpp (nonexistent) +++ head/textproc/randlm/files/patch-BloomMap.cpp (revision 456948) @@ -0,0 +1,11 @@ +--- src/RandLM/BloomMap.cpp.orig 2017-03-07 00:13:58 UTC ++++ src/RandLM/BloomMap.cpp +@@ -272,7 +272,7 @@ namespace randlm { + + bool BloomMap::computePaths() { + // determine the path lengths based on distribution for codes of each type +- assert(stats_counters_ && root_ == NULL && max_code_ > 0); ++ assert(stats_counters_ && root_ == NULL && max_code_ != NULL); + code_to_leaf_ = new uint64_t*[num_events_]; + code_to_path_len_ = new int*[num_events_]; + code_to_bound_ = new int*[num_events_]; Property changes on: head/textproc/randlm/files/patch-BloomMap.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/textproc/randlm/files/patch-LogFreqBloomFilter.cpp =================================================================== --- head/textproc/randlm/files/patch-LogFreqBloomFilter.cpp (nonexistent) +++ head/textproc/randlm/files/patch-LogFreqBloomFilter.cpp (revision 456948) @@ -0,0 +1,11 @@ +--- src/RandLM/LogFreqBloomFilter.cpp.orig 2017-03-07 00:13:45 UTC ++++ src/RandLM/LogFreqBloomFilter.cpp +@@ -207,7 +207,7 @@ namespace randlm { + + int LogFreqBloomFilter::getMaxHashes(int event_idx) { + // simple for unary encoding +- assert(max_alpha_ > 0 && max_k_ > 0 && max_code_ > 0); ++ assert(max_alpha_ > 0 && max_k_ > 0 && max_code_ != NULL); + return max_alpha_ + (max_k_ * max_code_[event_idx]); + } + Property changes on: head/textproc/randlm/files/patch-LogFreqBloomFilter.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/textproc/randlm/files/patch-RandLM.cpp =================================================================== --- head/textproc/randlm/files/patch-RandLM.cpp (nonexistent) +++ head/textproc/randlm/files/patch-RandLM.cpp (revision 456948) @@ -0,0 +1,11 @@ +--- src/RandLM/RandLM.cpp.orig 2017-03-07 02:01:18 UTC ++++ src/RandLM/RandLM.cpp +@@ -66,7 +66,7 @@ namespace randlm { + smoothing_name = kStupidBackoffSmoothing; + break; + case kWittenBellSmoothingCode: +- smoothing_name == kWittenBellSmoothing; ++ smoothing_name = kWittenBellSmoothing; + break; + case kBackoffSmoothingCode: + smoothing_name = kBackoffSmoothing; Property changes on: head/textproc/randlm/files/patch-RandLM.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/textproc/randlm/files/patch-TableChunkLocator.h =================================================================== --- head/textproc/randlm/files/patch-TableChunkLocator.h (nonexistent) +++ head/textproc/randlm/files/patch-TableChunkLocator.h (revision 456948) @@ -0,0 +1,11 @@ +--- src/LDHT/TableChunkLocator.h.orig 2017-03-07 01:06:04 UTC ++++ src/LDHT/TableChunkLocator.h +@@ -21,7 +21,7 @@ public: + int num_cells, + int num_chunks) = 0; + virtual int locateTableChunkForKey(uint64_t key) = 0; +- ++ virtual ~TableChunkLocator(){}; + }; + + } // namespace LDHT. Property changes on: head/textproc/randlm/files/patch-TableChunkLocator.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property