Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2018 12:32:59 +0000 (UTC)
From:      =?UTF-8?Q?Vin=c3=adcius_Zavam?= <egypcio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r482835 - in head/textproc/regex2dfa: . files
Message-ID:  <201810231232.w9NCWxol000642@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: egypcio
Date: Tue Oct 23 12:32:59 2018
New Revision: 482835
URL: https://svnweb.freebsd.org/changeset/ports/482835

Log:
  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

Added:
  head/textproc/regex2dfa/files/
  head/textproc/regex2dfa/files/patch-third__party_openfst_src_include_fst_replace.h   (contents, props changed)
Modified:
  head/textproc/regex2dfa/Makefile

Modified: head/textproc/regex2dfa/Makefile
==============================================================================
--- head/textproc/regex2dfa/Makefile	Tue Oct 23 12:02:10 2018	(r482834)
+++ head/textproc/regex2dfa/Makefile	Tue Oct 23 12:32:59 2018	(r482835)
@@ -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

Added: head/textproc/regex2dfa/files/patch-third__party_openfst_src_include_fst_replace.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/regex2dfa/files/patch-third__party_openfst_src_include_fst_replace.h	Tue Oct 23 12:32:59 2018	(r482835)
@@ -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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810231232.w9NCWxol000642>