From nobody@FreeBSD.org  Tue Jul 19 18:55:16 2011
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 57B9010657B8
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Jul 2011 18:55:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 47B828FC19
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Jul 2011 18:55:16 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p6JItFYa029345
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 19 Jul 2011 18:55:15 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p6JItF2s029310;
	Tue, 19 Jul 2011 18:55:15 GMT
	(envelope-from nobody)
Message-Id: <201107191855.p6JItF2s029310@red.freebsd.org>
Date: Tue, 19 Jul 2011 18:55:15 GMT
From: Kalten <kalten@gmx.at>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Mk/bsd.gcc.mk: missing 4.7 for USE_GCC
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159036
>Category:       ports
>Synopsis:       Mk/bsd.gcc.mk: missing 4.7 for USE_GCC
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gerald
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 19 19:00:21 UTC 2011
>Closed-Date:    Tue Jul 19 21:17:49 UTC 2011
>Last-Modified:  Tue Jul 19 21:20:11 UTC 2011
>Originator:     Kalten
>Release:        8.2-RELEASE
>Organization:
>Environment:
FreeBSD freeHugin.Walhalla.Leben 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Some ports (e.g. graphics/enblend) have a line like
 USE_GCC=4.4+
in the Makefile, but do not recognise, that lang/gcc47 is allready installed and want to install lang/gcc44 than.
>How-To-Repeat:
Have lang/gcc47 but not lang/gcc44, lang/gcc45 or lang/gcc46 installed, and go to graphics/enblend.
Type make.
>Fix:
I think, you simply have to update the line
``GCCVERSIONS=    030402 040200 040400 040500 040600''
to
``GCCVERSIONS=    030402 040200 040400 040500 040600 040700''
and add a line
``GCCVERSION_040700=      999999 999999 4.7''
to the others (see patch-file). But I am not sure.

Patch attached with submission follows:

--- Mk/bsd.gcc.mk.orig	2011-07-18 14:55:04.000000000 +0200
+++ Mk/bsd.gcc.mk	2011-07-19 20:53:12.000000000 +0200
@@ -37,7 +37,7 @@
 
 # All GCC versions supported by the ports framework.  Keep them in
 # ascending order and in sync with the table below. 
-GCCVERSIONS=	030402 040200 040400 040500 040600
+GCCVERSIONS=	030402 040200 040400 040500 040600 040700
 
 # The first field if the OSVERSION in which it appeared in the base.
 # The second field is the OSVERSION in which it disappeared from the base.
@@ -47,6 +47,7 @@
 GCCVERSION_040400=	999999 999999 4.4
 GCCVERSION_040500=	999999 999999 4.5
 GCCVERSION_040600=	999999 999999 4.6
+GCCVERSION_040700=	999999 999999 4.7
 
 #
 # No configurable parts below this.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gerald 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jul 19 19:00:40 UTC 2011 
Responsible-Changed-Why:  
bsd.gcc.mk is gerald territory (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159036 
State-Changed-From-To: open->closed 
State-Changed-By: gerald 
State-Changed-When: Tue Jul 19 21:16:57 UTC 2011 
State-Changed-Why:  
Thanks for the report.  I had intentionally held off add support for 
USE_GCC=4.7 since that compiler is in the early alpha stage, but your 
use case is a valid one of course. 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/159036: commit references a PR
Date: Tue, 19 Jul 2011 21:16:49 +0000 (UTC)

 gerald      2011-07-19 21:16:39 UTC
 
   FreeBSD ports repository
 
   Modified files:
     Mk                   bsd.gcc.mk 
   Log:
   Add support for USE_GCC=4.7, USE_GCC=4.7+ and notably an installation of
   lang/gcc47 being used when USE_GCC=4.5+ or the like is specified.
   
   PR:             159036
   Submitted by:   kalten@gmx.at
   
   Revision  Changes    Path
   1.52      +3 -2      ports/Mk/bsd.gcc.mk
 _______________________________________________
 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:
