From owner-freebsd-ports@FreeBSD.ORG Tue Jun 21 10:22:53 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from apollo.emma.line.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id DCC37106564A for ; Tue, 21 Jun 2011 10:22:52 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id CA17923D351 for ; Tue, 21 Jun 2011 12:22:51 +0200 (CEST) Message-ID: <4E0070FB.1090607@FreeBSD.org> Date: Tue, 21 Jun 2011 12:22:51 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20110620153753.GA41541@freebsd.org> <4E006F43.5010505@FreeBSD.org> In-Reply-To: <4E006F43.5010505@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [ANNOUNCE]: clang compiling ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2011 10:22:53 -0000 Am 21.06.2011 12:15, schrieb Alex Dupre: > Roman Divacky ha scritto: >> It would be great if you could skim over the list to see if some of >> the ports >> you maintain are broken and possibly try to fix them. > > I have patches for my ports, can I send them to anyone to test them? > Do something similar to this: 1. install port-tools and portlint unless you already have them 2. move gcc out of the way: cd /usr/bin for i in cc c89 c99 gcc g++ ; do mv $i $i.off done 3. test your port(s): cd /usr/ports/some/port port test -- CC=clang CXX=clang++ 4. move gcc back into place: cd /usr/bin for i in cc c89 c99 gcc g++ ; do mv $i.off $i done It's not exactly what 9-exp has been trying (and will miss, for instance, header differences that trip up clang), but close enough for many ports. HTH