From trevor@FreeBSD.org  Mon Mar 15 14:48:13 2004
Return-Path: <trevor@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 06A6C16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Mar 2004 14:48:13 -0800 (PST)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F394443D39
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Mar 2004 14:48:12 -0800 (PST)
	(envelope-from trevor@FreeBSD.org)
Received: from freefall.freebsd.org (trevor@localhost [127.0.0.1])
	by freefall.freebsd.org (8.12.10/8.12.10) with ESMTP id i2FMmCbv090026
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 15 Mar 2004 14:48:12 -0800 (PST)
	(envelope-from trevor@freefall.freebsd.org)
Received: (from trevor@localhost)
	by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2FMmCK7090025;
	Mon, 15 Mar 2004 14:48:12 -0800 (PST)
	(envelope-from trevor)
Message-Id: <200403152248.i2FMmCK7090025@freefall.freebsd.org>
Date: Mon, 15 Mar 2004 14:48:12 -0800 (PST)
From: Trevor Johnson <trevor@FreeBSD.org>
Reply-To: Trevor Johnson <trevor@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: fix for USE_GCC=3.2
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         64316
>Category:       ports
>Synopsis:       fix for USE_GCC=3.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 15 14:50:17 PST 2004
>Closed-Date:    Thu Sep 30 05:30:46 GMT 2004
>Last-Modified:  Thu Sep 30 05:30:46 GMT 2004
>Originator:     Trevor Johnson
>Release:        FreeBSD 5.2-STABLE i386
>Organization:
>Environment:
bsd.port.mk 1.484
>Description:
	For recent -CURRENT including FreeBSD 5.2 and later,
	USE_GCC=3.2 has no effect.  It should cause the installation
	and use of the GCC 3.2 from the ports collection, because
	the GCC in the base system is a more recent version (e.g.
	3.3.3).

>How-To-Repeat:
>Fix:
also at <URL:http://people.freebsd.org/~trevor/ports/use-gcc-3.2.diff>

Index: /usr/ports/Mk/bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.484
diff -u -r1.484 bsd.port.mk
--- /usr/ports/Mk/bsd.port.mk	4 Feb 2004 04:27:04 -0000	1.484
+++ /usr/ports/Mk/bsd.port.mk	15 Mar 2004 22:39:15 -0000
@@ -1608,7 +1608,7 @@
 MAKE_ENV+=		CC=${CC} CXX=${CXX}
 GCCVERSION=		030100
 .endif
-.if defined(USE_GCC) && ${USE_GCC} == 3.2 && ${OSVERSION} < 500039
+.if defined(USE_GCC) && ${USE_GCC} == 3.2 && ( ${OSVERSION} < 500039 || ${OSVERSION} > 501103 )
 CC=				gcc32
 CXX=			g++32
 F77=			g77-32
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->portmgr 
Responsible-Changed-By: trevor 
Responsible-Changed-When: Mon Mar 15 14:53:27 PST 2004 
Responsible-Changed-Why:  
to maintainers 

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

From: Kris Kennaway <kris@obsecurity.org>
To: Trevor Johnson <trevor@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/64316: fix for USE_GCC=3.2
Date: Mon, 15 Mar 2004 15:13:15 -0800

 On Mon, Mar 15, 2004 at 02:53:42PM -0800, Trevor Johnson wrote:
 > Synopsis: fix for USE_GCC=3.2
 > 
 > Responsible-Changed-From-To: freebsd-ports-bugs->portmgr
 > Responsible-Changed-By: trevor
 > Responsible-Changed-When: Mon Mar 15 14:53:27 PST 2004
 > Responsible-Changed-Why: 
 > to maintainers
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=64316
 
 I don't think this is the right solution - a lot of ports set
 USE_GCC=3.2 to fix the build with older versions (e.g. gcc 2.95), but
 they really mean "3.2 or greater".  There's no need to force 5.x
 systems to downgrade to an older GCC.
 
 On the other hand, USE_GCC=3.3 is a NOP on -current systems, but
 there's a need for some ports to install the newer snapshot of gcc 3.3
 from the port, to work around compiler bugs in the -current snapshot.
 
 USE_GCC seems to not be sufficiently expressive to handle these cases.
 
 Kris
State-Changed-From-To: open->suspended 
State-Changed-By: kris 
State-Changed-When: Sat Mar 20 17:59:53 PST 2004 
State-Changed-Why:  
Needs further work 

http://www.freebsd.org/cgi/query-pr.cgi?pr=64316 
State-Changed-From-To: suspended->closed 
State-Changed-By: kris 
State-Changed-When: Thu Sep 30 05:30:18 GMT 2004 
State-Changed-Why:  
Change committed. 

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