fix build with GCC-based architectures.

prior to this patch, some archs still using GCC could not compile the port;
 tested on powerpc64 (sponsored hardware);
 also tested on other archs to check if nothing broke.

 * original patch modified just to bump PORTREVISION, and use PORTSDIR root.

PR:             232276
Submitted by:   Piotr Kubaj <pkubaj@anongoth.pl>
Approved by:    rene (mentor)
Sponsored by:   IntegriCloud
This commit is contained in:
Vinícius Zavam 2018-10-23 12:32:59 +00:00
parent b590da43ed
commit d73ac6dfb6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=482835
2 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= regex2dfa
DISTVERSION= 0.1.6
PORTREVISION= 1
CATEGORIES= textproc
MAINTAINER= egypcio@googlemail.com
@ -12,6 +13,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c++11-lang gmake libtool
USE_GITHUB= yes
GH_ACCOUNT= kpdyer
GNU_CONFIGURE= yes

View File

@ -0,0 +1,11 @@
--- third_party/openfst/src/include/fst/replace.h.orig 2018-10-14 23:15:07 UTC
+++ third_party/openfst/src/include/fst/replace.h
@@ -1250,7 +1250,7 @@ class ArcIterator< ReplaceFst<A, T, C> > {
// If state is already cached, use cached arcs array.
if (fst_.GetImpl()->HasArcs(state_)) {
(fst_.GetImpl())
- ->template CacheBaseImpl<typename C::State, C>::InitArcIterator(
+ ->CacheBaseImpl<typename C::State, C>::InitArcIterator(
state_, &cache_data_);
num_arcs_ = cache_data_.narcs;
arcs_ = cache_data_.arcs; // 'arcs_' is a ptr to the cached arcs.