From nobody@FreeBSD.org  Thu Mar 11 20:51:32 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D028B106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Mar 2010 20:51:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id BF8228FC25
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Mar 2010 20:51:32 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2BKpWoA054088
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 11 Mar 2010 20:51:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2BKpWiE054087;
	Thu, 11 Mar 2010 20:51:32 GMT
	(envelope-from nobody)
Message-Id: <201003112051.o2BKpWiE054087@www.freebsd.org>
Date: Thu, 11 Mar 2010 20:51:32 GMT
From: Andrius Morkunas <hinokind@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] math/polymake fix build with gcc 4.2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: gawrilow@math.tu-berlin.de

>Number:         144669
>Category:       ports
>Synopsis:       [patch] math/polymake fix build with gcc 4.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kwm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 11 21:00:07 UTC 2010
>Closed-Date:    Sat May 29 07:30:54 UTC 2010
>Last-Modified:  Sat May 29 07:40:06 UTC 2010
>Originator:     Andrius Morkunas
>Release:        
>Organization:
>Environment:
>Description:
Get rid of USE_GCC=3.4
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN math/polymake.orig/Makefile math/polymake/Makefile
--- math/polymake.orig/Makefile	2009-05-13 09:45:54.000000000 +0000
+++ math/polymake/Makefile	2010-02-02 18:03:43.106462396 +0000
@@ -22,7 +22,6 @@
 USE_GMAKE=	yes
 USE_BZIP2=	yes
 USE_PERL5=	5.8.1+
-USE_GCC=	3.4
 
 HAS_CONFIGURE=	yes
 INSTALL_TARGET=	install install-devel
@@ -36,6 +35,9 @@
 BROKEN=		Does not build with perl >= 5.10
 .endif
 
+pre-configure:
+	@${REINPLACE_CMD} -e 's|return "$$CXX seems not to be any|\#|' ${WRKSRC}/support/configure.pl
+
 do-configure:
 	cd ${WRKSRC}; \
 	${RM} -f build*/conf.make; \
@@ -52,7 +54,7 @@
 	  ${ECHO_CMD} PerlExe='${PERL}'; \
 	  ${ECHO_CMD} Arch=; \
 	  ${ECHO_CMD} ProcessDep=none; \
-	} | ${GMAKE} configure
+	} |  ${GMAKE} ${MAKE_ENV} LD=${LD} configure
 
 pre-install:
 	${RM} -f `find ${WRKSRC} -name '*.orig'`
diff -ruN math/polymake.orig/files/patch-support_build.make math/polymake/files/patch-support_build.make
--- math/polymake.orig/files/patch-support_build.make	1970-01-01 00:00:00.000000000 +0000
+++ math/polymake/files/patch-support_build.make	2010-02-02 15:33:25.058919695 +0000
@@ -0,0 +1,13 @@
+--- support/build.make	2007-01-17 16:25:44.000000000 +0000
++++ support/build.make	2010-01-28 22:51:05.116780927 +0000
+@@ -134,10 +134,6 @@
+   endif
+ endif # !SourceDir
+ 
+-ifeq "$(COMOversion)$(ICCversion)$(GCCversion)" ""
+-  $(error unknown C++ compiler)
+-endif
+-
+ ifdef COMOversion
+   addinclude = -I$(patsubst $/,%,$(dir $(1))) --preinclude $(notdir $(1))
+   make_dep_opt := -MD --no_preproc_only


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Mar 11 21:00:25 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144669 
Responsible-Changed-From-To: freebsd-ports-bugs->kwm 
Responsible-Changed-By: kwm 
Responsible-Changed-When: Thu Mar 11 21:09:50 UTC 2010 
Responsible-Changed-Why:  
Will handle this pr. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144669 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: gawrilow@math.tu-berlin.de
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/144669: [patch] math/polymake fix build with gcc 4.2
Date: Thu, 11 Mar 2010 21:00:23 UT

 Maintainer of math/polymake,
 
 Please note that PR ports/144669 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/144669
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
State-Changed-From-To: feedback->closed 
State-Changed-By: kwm 
State-Changed-When: Sat May 29 07:30:38 UTC 2010 
State-Changed-Why:  
Committed thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144669 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/144669: commit references a PR
Date: Sat, 29 May 2010 07:30:45 +0000 (UTC)

 kwm         2010-05-29 07:30:31 UTC
 
   FreeBSD ports repository
 
   Modified files:
     math/polymake        Makefile 
   Added files:
     math/polymake/files  patch-support_build.make 
   Log:
   Get rid of USE_GCC=3.4
   
   PR:             ports/144669
   Submitted by:   Andrius Morkunas <hinokind@gmail.com>
   Approved by:    maintainer timeout (6 weeks)
   
   Revision  Changes    Path
   1.14      +5 -3      ports/math/polymake/Makefile
   1.1       +13 -0     ports/math/polymake/files/patch-support_build.make (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
