From owner-freebsd-ports@FreeBSD.ORG Tue Feb 5 11:15:43 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 B0B12D56; Tue, 5 Feb 2013 11:15:43 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel09.rubas.ch (cpanel09.rubas.ch [195.182.222.79]) by mx1.freebsd.org (Postfix) with ESMTP id 0C2A3ECF; Tue, 5 Feb 2013 11:15:43 +0000 (UTC) Received: from 98-41.199-178.cust.bluewin.ch ([178.199.41.98]:54116 helo=gahrfit.gahr.ch) by cpanel09.rubas.ch with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1U2gUx-002wCE-Ed; Tue, 05 Feb 2013 12:15:36 +0100 Date: Tue, 5 Feb 2013 12:15:32 +0100 From: Pietro Cerutti To: Baptiste Daroussin Subject: Re: [CFT+BRAINSTORM] One USE_ to rule them all Message-ID: <20130205111532.GD916@gahrfit.gahr.ch> References: <20130204181946.GF67687@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fXStkuK2IQBfcDe+" Content-Disposition: inline In-Reply-To: <20130204181946.GF67687@ithaqua.etoilebsd.net> X-PGP-Key: 0x9571F78E X-PGP-Fingerprint: 1203 92B5 3919 AF84 9B97 28D6 C0C2 6A98 9571 F78E User-Agent: Mutt/1.5.21 (2010-09-15) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel09.rubas.ch X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Get-Message-Sender-Via: cpanel09.rubas.ch: authenticated_id: gahr@gahr.ch Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: gahr@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2013 11:15:43 -0000 --fXStkuK2IQBfcDe+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013-Feb-04, 19:19, Baptiste Daroussin wrote: > Hi, >=20 > I have some improvements to the ports tree to propose, and I'm looking for > testers/opinions >=20 > First let me explain: >=20 > I want to introduce a new USE_FEATURES macro into the ports tree >=20 > The goal of this macros is to be able to standardize how we call all the = USE_* > things as well as creating some "load on demand" code for a corresponding > feature. >=20 > What I expect in long term is to get a more readable bsd.port.mk & friend= s, > meaning easier to maintain >=20 > I except some performance improvements given that make will have to parse= less > things. >=20 > I also expect less complexity if bsd.*.mk code. >=20 > What will have is all/most of the code corresponding to a USE_SOMETHING r= ight > now will endup in a Mk/features/something.mk which will be loaded only if= the > ports defines: > USE_FEATURES=3D something >=20 > the loading is done at the very early stage of bsd.port.post.mk to allow = one to > load modify USE_FEATURES depending on some options etc. >=20 > each features/*.mk is itself protected by a variable to avoid multi loadi= ng of > the same file >=20 > if a feature depends on another one the feature itself just have to ".inc= lude" > the other one. Very nice idea, I'm looking forward to taking advantage of it! --=20 Pietro Cerutti The FreeBSD Project gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp --fXStkuK2IQBfcDe+ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEQ6dMACgkQwMJqmJVx947DbwCgnakSqmLNfpxYxUDN5+qFu3Sf +asAnR1ii1pFHGVnlMxw4tASXTAMzvew =5qz7 -----END PGP SIGNATURE----- --fXStkuK2IQBfcDe+--