From owner-freebsd-ports@FreeBSD.ORG Tue Mar 19 19:54:30 2013 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 1F7AAF58; Tue, 19 Mar 2013 19:54:30 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id B63D712F; Tue, 19 Mar 2013 19:54:29 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r2JJsNRe093772; Tue, 19 Mar 2013 13:54:23 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r2JJsNuq093769; Tue, 19 Mar 2013 13:54:23 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Tue, 19 Mar 2013 13:54:23 -0600 (MDT) From: Warren Block To: Baptiste Daroussin Subject: Re: [CFT] add a config.site cache for the ports In-Reply-To: <20130318174150.GN72627@ithaqua.etoilebsd.net> Message-ID: References: <20130318174150.GN72627@ithaqua.etoilebsd.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 19 Mar 2013 13:54:23 -0600 (MDT) Cc: ports@FreeBSD.org, autotools@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Mar 2013 19:54:30 -0000 On Mon, 18 Mar 2013, Baptiste Daroussin wrote: > Hi, > > The autotools allows us to have a config.site cache where we define our defaults > values for a couple of things, and prevent the "slow" and possibly wrong > autodetection. > > Here is a patch that makes use of it: > http://people.freebsd.org/~bapt/autotools_config_site.diff > > As the libiconv/gettext update has shown the configure scripts can fall back on > gnu version of commands first if it find it, and in case gettext is removed you > can get trouble. > > In this config.site, I hardcoded a couple of FreeBSD binaries in order to always > use them, but I let the toolchain being autodetected. > > I also added a couple of headers to avoid useless checks and more can be added > in the futur. > > Any thought? Avoiding the repeated detection of the exact same things could seriously reduce build times for big ports. Thank you!