From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Sep 4 15:40:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C356B732 for ; Wed, 4 Sep 2013 15:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A16442C4A for ; Wed, 4 Sep 2013 15:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r84Fe2wI097272 for ; Wed, 4 Sep 2013 15:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r84Fe25X097271; Wed, 4 Sep 2013 15:40:02 GMT (envelope-from gnats) Resent-Date: Wed, 4 Sep 2013 15:40:02 GMT Resent-Message-Id: <201309041540.r84Fe25X097271@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tijl Coosemans Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A1EBF5A7 for ; Wed, 4 Sep 2013 15:38:45 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay003.isp.belgacom.be (mailrelay003.isp.belgacom.be [195.238.6.53]) by mx1.freebsd.org (Postfix) with ESMTP id 4119E2C25 for ; Wed, 4 Sep 2013 15:38:44 +0000 (UTC) Received: from 176.65-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.65.176]) by relay.skynet.be with ESMTP; 04 Sep 2013 17:38:37 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id r84FcZ6T075319 for ; Wed, 4 Sep 2013 17:38:36 +0200 (CEST) (envelope-from tijl@kalimero.tijl.coosemans.org) Received: (from tijl@localhost) by kalimero.tijl.coosemans.org (8.14.7/8.14.7/Submit) id r84FcZoP075318; Wed, 4 Sep 2013 17:38:35 +0200 (CEST) (envelope-from tijl) Message-Id: <201309041538.r84FcZoP075318@kalimero.tijl.coosemans.org> Date: Wed, 4 Sep 2013 17:38:35 +0200 (CEST) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/181816: [patch] lang/gcc42, lang/gcc44: remove USE_GCC=any X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Tijl Coosemans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Sep 2013 15:40:02 -0000 >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: