ports/64316: fix for USE_GCC=3.2
Trevor Johnson
trevor at FreeBSD.org
Mon Mar 15 22:50:17 UTC 2004
>Number: 64316
>Category: ports
>Synopsis: fix for USE_GCC=3.2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 15 14:50:17 PST 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list