From owner-freebsd-ports@FreeBSD.ORG Mon Sep 19 13:43:55 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02580106566B for ; Mon, 19 Sep 2011 13:43:55 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo201.cox.net (eastrmfepo201.cox.net [68.230.241.216]) by mx1.freebsd.org (Postfix) with ESMTP id 99CCF8FC08 for ; Mon, 19 Sep 2011 13:43:54 +0000 (UTC) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmfepo201.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20110919134348.GZLT12561.eastrmfepo201.cox.net@eastrmimpo02.cox.net>; Mon, 19 Sep 2011 09:43:48 -0400 Received: from serene.no-ip.org ([98.164.86.236]) by eastrmimpo02.cox.net with bizsmtp id adjo1h00B55wwzE02djoLV; Mon, 19 Sep 2011 09:43:48 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020203.4E774714.016F,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=WuqbhJSaLsQNgFQdVfTUjneCUYDL0dnDnEJhAdIm7mY= c=1 sm=1 a=tw5jEK2Mse0A:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=uAbGmPAyUfLL1M3oYAsfuA==:17 a=mK_AVkanAAAA:8 a=kviXuzpPAAAA:8 a=tXTTU6Hkh3Zg94SBmEAA:9 a=EfbeE6nfkcTH5WesVAwA:7 a=CjuIK1q_8ugA:10 a=9xyTavCNlvEA:10 a=4vB-4DCPJfMA:10 a=vNEWamThwXgwB7b-:21 a=9bUtihdQzZ-sNuKb:21 a=uAbGmPAyUfLL1M3oYAsfuA==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id p8JDhlYa052422; Mon, 19 Sep 2011 08:43:48 -0500 (CDT) (envelope-from conrads@cox.net) Date: Mon, 19 Sep 2011 08:43:42 -0500 From: "Conrad J. Sabatier" To: bf1783@gmail.com Message-ID: <20110919084342.1cf4ab56@cox.net> In-Reply-To: References: X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Ports with CPPFLAGS in CONFIGURE_(ARGS|ENV) 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: Mon, 19 Sep 2011 13:43:55 -0000 On Mon, 19 Sep 2011 08:47:25 -0400 "b. f." wrote: > > > > OK. Just a few more questions: > > > > portlint -A issues no warning in the case of CPPFLAGS being added to > > CONFIGURE_ARGS. Should I concern myself only with CONFIGURE_ENV, or > > would it be best to modify in either case? > > Either case. There are slight differences in the handling of > variables passed in the environment (as is done by default for > CPPFLAGS), and variables passed on the command-line (as is done for > variables assigned in CONFIGURE_ARGS), but they are usually > unimportant. Most occurrences of CPPFLAGS in CONFIGURE_ARGS are > either mistakes or anachronisms. Right, OK. > > Also, is there any possibility of either CONFIGURE_ENV or > > CONFIGURE_ARGS being used in some non-standard fashion, i.e., with > > anything other than a GNU configure script, meaning they should > > just be left alone? > > Of course that is possible, although such a usage would probably be > rare, if it occurs at all. You should only be concerned about the > case when: > > --HAS_CONFIGURE is defined (note that HAS_CONFIGURE can be implied by > other things, like GNU_CONFIGURE, XORG_CAT, USE_AUTOTOOLS, USE_PHPIZE, > and USE_PHPEXT); and > --the default "do-configure" target has not been overridden; > > because that is when CPPFLAGS is passed in the environment to the > configure script. See bsd.port.mk. > > b. Thank you, that was very informative. I'm definitely going to have to scrutinize bsd.port.mk and friends more closely to better my understanding of how these variables are actually handled, to avoid any potential pitfalls. Final tally (as of this writing) of ports flagged by portlint: 1,521. That's only for the CONFIGURE_ENV cases. I think, for now, I'll limit myself to those. The "edgier" cases may just bog me down too much initially. Once I've succeeded in doing the initial basic cleanup, it will be a little easier to zoom in on the more specialized cases. I'm already somewhat daunted by the sheer number of ports needing attention. Fortunately, though, many of the occurrences are identical (or very nearly so) in format, so it should be possible to devise some automated tools to handle a large number of them. Luckily for me, I'm retired now, and have *lots* of free time. Can't think of a more productive way to spend it than by giving back to the project I've come to know and love over the last 15 years. -- Conrad J. Sabatier conrads@cox.net