From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 11 21:00:15 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 23B091065670 for ; Thu, 11 Mar 2010 21:00:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 136A28FC1D for ; Thu, 11 Mar 2010 21:00:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2BL07r3005347 for ; Thu, 11 Mar 2010 21:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2BL07U2005346; Thu, 11 Mar 2010 21:00:07 GMT (envelope-from gnats) Resent-Date: Thu, 11 Mar 2010 21:00:07 GMT Resent-Message-Id: <201003112100.o2BL07U2005346@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrius Morkunas Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D028B106564A for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/144669: [patch] math/polymake fix build with gcc 4.2 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2010 21:00:15 -0000 >Number: 144669 >Category: ports >Synopsis: [patch] math/polymake fix build with gcc 4.2 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 11 21:00:07 UTC 2010 >Closed-Date: >Last-Modified: >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: >Unformatted: