From gahr@gahr.ch  Wed Feb 20 21:36:54 2008
Return-Path: <gahr@gahr.ch>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0EC4216A400
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Feb 2008 21:36:54 +0000 (UTC)
	(envelope-from gahr@gahr.ch)
Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73])
	by mx1.freebsd.org (Postfix) with ESMTP id BF99813C46A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Feb 2008 21:36:53 +0000 (UTC)
	(envelope-from gahr@gahr.ch)
Received: from 80-218-191-236.dclient.hispeed.ch ([80.218.191.236] helo=gahrtop.localhost)
	by cpanel03.rubas-s03.net with esmtpa (Exim 4.68)
	(envelope-from <gahr@gahr.ch>)
	id 1JRwcX-0000A2-2S
	for FreeBSD-gnats-submit@freebsd.org; Wed, 20 Feb 2008 22:36:53 +0100
Received: from gahrtop.localhost (localhost [127.0.0.1])
	by gahrtop.localhost (Postfix) with ESMTP id DB68450841
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Feb 2008 22:36:32 +0100 (CET)
Message-Id: <1203543392.19628@gahrtop.localhost>
Date: Wed, 20 Feb 2008 22:36:32 +0100
From: "Pietro Cerutti" <gahr@gahr.ch>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Subject: [patch] math/gambit unbreak on 64 bits platforms + adopt maintainship
X-Send-Pr-Version: gtk-send-pr 0.4.9 
X-GNATS-Notify:

>Number:         120916
>Category:       ports
>Synopsis:       [patch] math/gambit unbreak on 64 bits platforms + adopt maintainship
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gahr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 20 21:40:01 UTC 2008
>Closed-Date:    Tue Feb 26 21:39:56 UTC 2008
>Last-Modified:  Tue Feb 26 21:39:56 UTC 2008
>Originator:     Pietro Cerutti
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 8.0-CURRENT #4: Wed Feb 13 18:13:34 CET 2008
    root@gahrtop.localhost:/usr/obj/usr/src/sys/MSI1034



>Description:


This should fix the build on 64 bits platforms.
The patch have been tested on sparc64.
Please test it also on amd64.

While at it, adopt maintainship...


>How-To-Repeat:





>Fix:


--- _gambit.diff begins here ---
--- Makefile.orig	2008-02-20 22:34:14.000000000 +0100
+++ Makefile	2008-02-20 22:34:30.000000000 +0100
@@ -11,7 +11,7 @@
 CATEGORIES=	math
 MASTER_SITES=	SF
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	gahr@gahr.ch
 COMMENT=	A library of tools for doing computation in game theory
 
 USE_GNOME=	gnometarget gtk20
@@ -26,13 +26,7 @@
 CFLAGS+=	-O2 -fno-strict-aliasing
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 700042 && ${ARCH} == "amd64"
-BROKEN=		Does not compile
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e '/test/s|==|=|g' ${WRKSRC}/configure
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- /dev/null	2008-02-20 22:33:01.000000000 +0100
+++ files/patch-src-tools-enumpoly_pelqhull.cc	2008-02-20 22:34:11.000000000 +0100
@@ -0,0 +1,11 @@
+--- src/tools/enumpoly/pelqhull.cc.orig	2008-02-20 19:44:12.000000000 +0100
++++ src/tools/enumpoly/pelqhull.cc	2008-02-20 19:51:31.000000000 +0100
+@@ -939,7 +939,7 @@
+   else {
+     SETreturnsize_(set, size);
+     fprintf (fp, "%s set=%x maxsize=%d size=%d elems=",
+-	     string, (unsigned int) set, set->maxsize, size);
++	     string, (size_t) set, set->maxsize, size);
+     if (size > (int)set->maxsize)
+       size= set->maxsize+1;
+     for (k=0; k<size; k++)
--- _gambit.diff ends here ---



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Feb 20 21:40:09 UTC 2008 
Responsible-Changed-Why:  
miwi@ wants his PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120916 
Responsible-Changed-From-To: miwi->gahr 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Wed Feb 20 23:29:13 UTC 2008 
Responsible-Changed-Why:  
Submitter is now Committer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120916 
State-Changed-From-To: open->closed 
State-Changed-By: gahr 
State-Changed-When: Tue Feb 26 21:39:55 UTC 2008 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120916 
>Unformatted:
