From leeym@utopia.leeym.com  Tue Sep  7 01:22:58 2004
Return-Path: <leeym@utopia.leeym.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 073FD16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Sep 2004 01:22:58 +0000 (GMT)
Received: from utopia.leeym.com (utopia.leeym.com [211.21.137.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A920543D53
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Sep 2004 01:22:57 +0000 (GMT)
	(envelope-from leeym@utopia.leeym.com)
Received: from localhost (localhost [127.0.0.1])
	by utopia.leeym.com (Postfix) with ESMTP id 66CF53EAAF3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Sep 2004 09:22:56 +0800 (CST)
Received: from utopia.leeym.com ([127.0.0.1])
 by localhost (utopia.leeym.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 45276-01 for <FreeBSD-gnats-submit@freebsd.org>;
 Tue,  7 Sep 2004 09:22:52 +0800 (CST)
Received: by utopia.leeym.com (Postfix, from userid 1000)
	id A88AE3EAAE4; Tue,  7 Sep 2004 09:22:51 +0800 (CST)
Message-Id: <20040907012251.A88AE3EAAE4@utopia.leeym.com>
Date: Tue,  7 Sep 2004 09:22:51 +0800 (CST)
From: Yen-Ming Lee <leeym@utopia.leeym.com>
Reply-To: Yen-Ming Lee <leeym@utopia.leeym.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: indicate GCC 3.4.x by OSVERSION
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         71442
>Category:       ports
>Synopsis:       indicate GCC 3.4.x by OSVERSION
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 07 01:30:24 GMT 2004
>Closed-Date:    Tue Sep 07 01:54:50 GMT 2004
>Last-Modified:  Tue Sep 07 01:54:50 GMT 2004
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.3-BETA3 i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 5.3-BETA3 FreeBSD 5.3-BETA3 #1: Sun Sep 5 01:06:46 CST 2004 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386


	
>Description:

<quoted from /usr/src/UPDATING>
20040728:
	System compiler has been upgraded to GCC 3.4.2-pre. As with any major
	compiler upgrade, there are several issues to be aware of. GCC 3.4.x
	has broken C++ ABI compatibility with previous releases yet again
	and users will have to rebuild all their C++ programs with the new
	compiler.
</quoted from /usr/src/UPDATING>

WARNING: I am not sure if 503000 is a right value, since I can't find
GCC-3.4 related messages in OSVERSION history:

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/sys/param.h

>How-To-Repeat:

# compile a port which defined USE_GCC=3.3, says databases/firebird,
  and the port still use system compiler (GCC 3.4.2)

>Fix:

--- bsd.port.mk.diff begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.497
diff -u -r1.497 bsd.port.mk
--- bsd.port.mk	3 Aug 2004 19:03:58 -0000	1.497
+++ bsd.port.mk	7 Sep 2004 01:12:55 -0000
@@ -1289,7 +1289,7 @@
 .if ${OSVERSION} >= 500039 && ${OSVERSION} < 501103
 GCCVERSION=		030200
 .endif
-.if ${OSVERSION} >= 501103
+.if ${OSVERSION} >= 501103 && ${OSVERSION} < 503000
 GCCVERSION=		030301
 .endif
 .if ${OSVERSION} >= 599999
--- bsd.port.mk.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Sep 7 01:53:40 GMT 2004 
State-Changed-Why:  
Essentially the same as ports/71344.  However, a more complete patch 
has already been circulated on the portmgr mailing list, which I 
believe is scheduled for testing soon.  Nevertheless, thanks for 
the submission. 

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