ports/71442: indicate GCC 3.4.x by OSVERSION

Yen-Ming Lee leeym at utopia.leeym.com
Tue Sep 7 01:30:25 UTC 2004


>Number:         71442
>Category:       ports
>Synopsis:       indicate GCC 3.4.x by OSVERSION
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 07 01:30:24 GMT 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list