Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Sep 2013 17:38:35 +0200 (CEST)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/181816: [patch] lang/gcc42, lang/gcc44: remove USE_GCC=any
Message-ID:  <201309041538.r84FcZoP075318@kalimero.tijl.coosemans.org>
Resent-Message-ID: <201309041540.r84Fe25X097271@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181816
>Category:       ports
>Synopsis:       [patch] lang/gcc42, lang/gcc44: remove USE_GCC=any
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 04 15:40:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tijl Coosemans
>Release:        FreeBSD 10.0-CURRENT i386
>Organization:
>Environment:
>Description:
r305610 added USE_GCC=any to these ports but it seems the only problem
was that clang defaults to C99 which has different semantics for extern
inline functions.  The attached patch removes USE_GCC=any and adds
USE_CSTD=gnu89 for gcc42.  For gcc44 this is not possible because
libgfortran requires gnu99, so instead -fgnu89-inline was added to
CFLAGS.  This does not affect libgfortran because it only has static
inline functions.
The patch also contains some USES cleanups.
>How-To-Repeat:
>Fix:

--- gcc.patch begins here ---
Index: lang/gcc42/Makefile
===================================================================
--- lang/gcc42/Makefile	(revision 326283)
+++ lang/gcc42/Makefile	(working copy)
@@ -3,7 +3,7 @@
 
 PORTNAME=	gcc
 PORTVERSION=	4.2.5.20090325
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	lang
 MASTER_SITES=	${MASTER_SITE_GCC}
 MASTER_SITE_SUBDIR=	snapshots/${VERSIONSTRING}
@@ -23,11 +23,10 @@ VERSIONSTRING=	${PORTVERSION:C/([0-9]+\.
 SUFFIX=		${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}
 LATEST_LINK=	gcc${SUFFIX}${PKGNAMESUFFIX}
 NOT_FOR_ARCHS=	arm powerpc
-USES=		bison iconv
+USES=		bison gmake iconv perl5
 USE_BZIP2=	yes
-USE_GCC=	any
-USE_GMAKE=	yes
-USE_PERL5_BUILD=yes
+USE_CSTD=	gnu89
+USE_PERL5=	build
 
 PATCH_WRKSRC=	${SRCDIR}
 CONFIGURE_SCRIPT=	../${SRCDIR:S/${WRKDIR}\///}/configure
Index: lang/gcc44/Makefile
===================================================================
--- lang/gcc44/Makefile	(revision 326283)
+++ lang/gcc44/Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	gcc
 PORTVERSION=	4.4.7
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	lang
 MASTER_SITES=	${MASTER_SITE_GCC}
@@ -22,11 +23,9 @@ SUFFIX=		${PORTVERSION:C/([0-9]+).([0-9]
 LATEST_LINK=	gcc${SUFFIX}${PKGNAMESUFFIX}
 ONLY_FOR_ARCHS=	amd64 i386 sparc64
 USE_BINUTILS=	yes
-USES=		bison iconv
+USES=		bison gmake iconv perl5
 USE_BZIP2=	yes
-USE_GCC=	any
-USE_GMAKE=	yes
-USE_PERL5_BUILD=yes
+USE_PERL5=	build
 
 PATCH_WRKSRC=	${SRCDIR}
 CONFIGURE_SCRIPT=	../${SRCDIR:S/${WRKDIR}\///}/configure
@@ -44,7 +43,7 @@ WRKSRC=		${WRKDIR}/build
 TARGLIB=	${PREFIX}/lib/gcc${SUFFIX}
 LIBEXEC=	${PREFIX}/libexec/gcc${SUFFIX}
 GNU_CONFIGURE=	yes
-CFLAGS+=	-I${LOCALBASE}/include
+CFLAGS+=	-I${LOCALBASE}/include -fgnu89-inline
 CPPFLAGS+=	-I${LOCALBASE}/include
 CONFIGURE_ARGS+=--disable-bootstrap \
 		--disable-nls \
--- gcc.patch ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309041538.r84FcZoP075318>