From owner-svn-ports-all@FreeBSD.ORG Sun Mar 1 20:10:11 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B7F88E70; Sun, 1 Mar 2015 20:10:11 +0000 (UTC) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84700D9C; Sun, 1 Mar 2015 20:10:10 +0000 (UTC) Received: from [192.168.0.25] (unknown [130.255.19.191]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by shepard.synsport.net (Postfix) with ESMTP id C17B843BED; Sun, 1 Mar 2015 14:10:02 -0600 (CST) Message-ID: <54F37212.3010800@marino.st> Date: Sun, 01 Mar 2015 21:09:54 +0100 From: John Marino Reply-To: marino@freebsd.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Antoine Brodin , John Marino Subject: Re: svn commit: r380211 - head/security/libgpg-error References: <201503011652.t21GqiLh056130@svn.freebsd.org> <54F3458E.8090401@marino.st> <54F34DC3.8020902@marino.st> <54F35AAD.5010200@marino.st> <54F3678C.90706@marino.st> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "svn-ports-head@freebsd.org" , "svn-ports-all@freebsd.org" , "ports-committers@freebsd.org" X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Mar 2015 20:10:11 -0000 On 3/1/2015 21:05, Antoine Brodin wrote: > On Sun, Mar 1, 2015 at 8:25 PM, John Marino wrote: >> On 3/1/2015 19:46, Antoine Brodin wrote: >>> Can you try using cpp5 -P instead of cpp5? >>> See http://www.gnu.org/software/gcc/gcc-5/porting_to.html >>> >> >> It works. If I just add "CPP= cpp -P" to the stock port makefile, then >> it builds fine. I check "cpp -P" on FreeBSD 10, it seems clang cpp just >> ignores the -P even though it's not a listed option. >> >> I guess if we want to use this, the fix would be something like >> "CPP+= -P" >> >> Would all the FreeBSD releases accept "CPP+= -P" ? > > I tested the src/Makefile.in part of > https://build.opensuse.org/source/openSUSE:Factory/libgpg-error/libgpg-error-1.18-gcc5.patch > on FreeBSD 8.4 / 9.3 / 10.1 / head / head with clang 3.6 and it > worked. Nice to know. What is the rationale for patching the makefiles if defining CPP in the environment has the same result? Just curious because it seems that "CPP+= -P" saves three patches and I'd think that would be desired. John