Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2018 23:43:34 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r462985 - in head/math/gambit: . files
Message-ID:  <201802252343.w1PNhYe6017364@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Feb 25 23:43:34 2018
New Revision: 462985
URL: https://svnweb.freebsd.org/changeset/ports/462985

Log:
  math/gambit: Unbroke the port.
  
  Port changes:
  * Added the patch to avoid permissions problem.
    Reported it upstream: https://github.com/gambitproject/gambit/issues/229
  * Took maintainership.
  * Removed USE_LDCONFIG (not needed).
  
  Approved by:	tcberner (mentor, implicit)

Added:
  head/math/gambit/files/patch-src_tools_logit_logbehav.imp   (contents, props changed)
Modified:
  head/math/gambit/Makefile

Modified: head/math/gambit/Makefile
==============================================================================
--- head/math/gambit/Makefile	Sun Feb 25 23:19:09 2018	(r462984)
+++ head/math/gambit/Makefile	Sun Feb 25 23:43:34 2018	(r462985)
@@ -7,22 +7,18 @@ PORTREVISION=	2
 CATEGORIES=	math
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}${PORTVERSION:R:R}/${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Library of tools for doing computation in game theory
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BROKEN_armv6=		fails to compile: 'm_number' is a private member of 'Gambit::GamePlayerRep'
-BROKEN_armv7=		fails to compile: 'm_number' is a private member of 'Gambit::GamePlayerRep'
-
 USES=		compiler:c++11-lib
+GNU_CONFIGURE=	yes
 USE_GNOME=	gtk20
 USE_WX=		3.0
 USE_CXXSTD=	c++11
 WX_CONF_ARGS=	absolute
-GNU_CONFIGURE=	yes
-USE_LDCONFIG=	yes
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/gambit.desktop \

Added: head/math/gambit/files/patch-src_tools_logit_logbehav.imp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/gambit/files/patch-src_tools_logit_logbehav.imp	Sun Feb 25 23:43:34 2018	(r462985)
@@ -0,0 +1,11 @@
+--- src/tools/logit/logbehav.imp.orig	2018-02-25 23:16:35 UTC
++++ src/tools/logit/logbehav.imp
+@@ -269,7 +269,7 @@ void LogBehavProfile<T>::GetPayoff(GameT
+   }
+ 
+   if (node->children.Length())  {
+-    int pl = node->infoset->m_player->m_number, iset = node->infoset->m_number;
++    int pl = node->infoset->m_player->GetNumber(), iset = node->infoset->GetNumber(); // fixes the build problem, see https://github.com/gambitproject/gambit/issues/229
+     if (pl == 0) {
+       // chance player
+       for (int act = 1; act <= node->NumChildren(); act++) {



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