ports/71344: [PATCH] Teach bsd.port.mk about latest gcc situations

Xin LI delphij at frontfree.net
Fri Sep 3 15:20:24 UTC 2004


>Number:         71344
>Category:       ports
>Synopsis:       [PATCH] Teach bsd.port.mk about latest gcc situations
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 03 15:20:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Xin LI
>Release:        FreeBSD 5.2-delphij i386
>Organization:
The FreeBSD Simplified Chinese Project
>Environment:
System: FreeBSD beastie.frontfree.net 5.2-delphij FreeBSD 5.2-delphij #0: Tue Aug 17 14:22:25 CST 2004 delphij at beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386


>Description:
	gcc 3.4 was imported into base on 07/28/2004 but this was not
reflected in bsd.port.mk.  Also, it doesn't recognaize recetnly added
gcc 3.5 port.

	The attached patch will change this situation.  I think it would
be good to have this committed into ports tree so it gets its way into
the upcoming FreeBSD 5.3-RELEASE
>How-To-Repeat:
	Build a port that makes use of USE_GCC=3.4
>Fix:


--- patch-bsd.port.mk begins here ---
Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/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	3 Sep 2004 15:12:23 -0000
@@ -1325,12 +1325,19 @@
 BUILD_DEPENDS+=	gcc33:${PORTSDIR}/lang/gcc33
 GCCVERSION=		030301
 .endif
-.if ${USE_GCC} == 3.4 # Not yet available in any OSVERSION
+.if ${USE_GCC} == 3.4 && ${OSVERSION} < 502126
 CC=				gcc34
 CXX=			g++34
 F77=			g77-34
 BUILD_DEPENDS+=	gcc34:${PORTSDIR}/lang/gcc34
 GCCVERSION=		030400
+.endif
+.if ${USE_GCC} == 3.5	# Not yet available in any OSVERSION
+CC=				gcc35
+CXX=			g++35
+F77=			g77-35
+BUILD_DEPENDS+=	gcc35:${PORTSDIR}/lang/gcc35
+GCCVERSION=		030500
 .endif
 MAKE_ENV+=	CC="${CC}" CXX="${CXX}"
 .endif
--- patch-bsd.port.mk ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list