From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 2 19:10:01 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 E1F9E132 for ; Mon, 2 Sep 2013 19:10:00 +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 BE1992B36 for ; Mon, 2 Sep 2013 19:10:00 +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 r82JA0Q8012420 for ; Mon, 2 Sep 2013 19:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r82JA00M012419; Mon, 2 Sep 2013 19:10:00 GMT (envelope-from gnats) Resent-Date: Mon, 2 Sep 2013 19:10:00 GMT Resent-Message-Id: <201309021910.r82JA00M012419@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 [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 52B00F02 for ; Mon, 2 Sep 2013 19:00:52 +0000 (UTC) (envelope-from tijl@coosemans.org) Received: from mailrelay010.isp.belgacom.be (mailrelay010.isp.belgacom.be [195.238.6.177]) by mx1.freebsd.org (Postfix) with ESMTP id E12DD2AB5 for ; Mon, 2 Sep 2013 19:00:51 +0000 (UTC) Received: from 197.77-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.77.197]) by relay.skynet.be with ESMTP; 02 Sep 2013 20:59:42 +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 r82IxfSG046450 for ; Mon, 2 Sep 2013 20:59:41 +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 r82Ixfhi046449; Mon, 2 Sep 2013 20:59:41 +0200 (CEST) (envelope-from tijl) Message-Id: <201309021859.r82Ixfhi046449@kalimero.tijl.coosemans.org> Date: Mon, 2 Sep 2013 20:59:41 +0200 (CEST) From: Tijl Coosemans To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/181761: [patch] devel/mingw32-binutils: fix build with clang 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: Mon, 02 Sep 2013 19:10:01 -0000 >Number: 181761 >Category: ports >Synopsis: [patch] devel/mingw32-binutils: fix build with clang >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: Mon Sep 02 19:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Tijl Coosemans >Release: FreeBSD 10.0-CURRENT i386 >Organization: >Environment: >Description: The attached removes USE_GCC=any and adds --disable-werror to CONFIGURE_ARGS to allow building with clang. Initially I tried adding flags like -Wno-error=string-plus-int to CFLAGS but I kept having to disable more and more warnings and future versions of clang might require even more that I think setting --disable-werror is best. The attached patch also converts USE_GMAKE to USES=gmake. >How-To-Repeat: >Fix: --- mingw32-binutils.patch begins here --- Index: devel/mingw32-binutils/Makefile =================================================================== --- devel/mingw32-binutils/Makefile (revision 325982) +++ devel/mingw32-binutils/Makefile (working copy) @@ -3,6 +3,7 @@ PORTNAME= binutils PORTVERSION= ${BINUTILVERSION} +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEWARE} @@ -15,14 +16,12 @@ COMMENT= GNU Binutils for Windows cross- BINUTILVERSION= 2.23.1 USE_BZIP2= yes -USE_GCC= any -USE_GMAKE= yes -USES= iconv +USES= gmake iconv GNU_CONFIGURE= yes CONFIGURE_ARGS= --target=${PKGNAMEPREFIX:S/-$//} \ --with-gcc --with-gnu-ld --with-gnu-as \ --disable-nls --disable-win32-registry \ - --disable-shared + --disable-shared --disable-werror INFO_PATH= ${PKGNAMEPREFIX:S/-$//}/info MAN1= ${PKGNAMEPREFIX}addr2line.1 ${PKGNAMEPREFIX}ar.1 \ --- mingw32-binutils.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: