From owner-freebsd-ports@FreeBSD.ORG Sat Oct 6 09:41:16 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 577DF106564A; Sat, 6 Oct 2012 09:41:15 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ED5C38FC16; Sat, 6 Oct 2012 09:41:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q969fEW4017200; Sat, 6 Oct 2012 09:41:14 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q969fEc2017197; Sat, 6 Oct 2012 09:41:14 GMT (envelope-from bapt@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f Date: Sat, 6 Oct 2012 11:41:12 +0200 From: Baptiste Daroussin To: Doug Barton Message-ID: <20121006094112.GC71753@ithaqua.etoilebsd.net> References: <20121005140534.GB61272@ithaqua.etoilebsd.net> <506F9275.3090106@FreeBSD.org> <20121006080409.GA30675@ithaqua.etoilebsd.net> <20121006084004.GD30675@ithaqua.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+nBD6E3TurpgldQp" Content-Disposition: inline In-Reply-To: <20121006084004.GD30675@ithaqua.etoilebsd.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: ports@FreeBSD.org Subject: Re: [CHANGE PROPOSAL] Moving WWW from pkg-descr to Makefile 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: Sat, 06 Oct 2012 09:41:16 -0000 --+nBD6E3TurpgldQp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 06, 2012 at 10:40:04AM +0200, Baptiste Daroussin wrote: > On Sat, Oct 06, 2012 at 10:04:09AM +0200, Baptiste Daroussin wrote: > > On Fri, Oct 05, 2012 at 07:07:49PM -0700, Doug Barton wrote: > > > On 10/05/2012 07:05 AM, Baptiste Daroussin wrote: > > > > Hi, > > > >=20 > > > > I want to propose and make the actual move of the WWW information f= rom the > > > > pkg-descr to the Makefile itself via a WWW variable. > > > >=20 > > > > doing this will have multiple benefits: > > > > * consistency all metadata bug this one are in Makefile > > >=20 > > > ... except for the distinfo data. > > ... > > >=20 > > > > * speedup make describe avoiding using grep to get the information= s (make > > > > describe itself does not need speed but make index heavily use i= t and this > > > > will definitly benefit from speed up) > > >=20 > > > Agreed, but there are other ways to speed up 'make describe,' and too= ls > > > like ports-mgmt/p5-FreeBSD-Portindex are a much better solution where > > > "create an up to date INDEX quickly" is a real need. > >=20 > > This sounds like: we have a problem, instead of fixing it let's workaro= und it > >=20 > > >=20 > > > > * Third party tool will be able to probe the information more easi= ly. > > >=20 > > > Portmaster doesn't parse WWW for anything, but I have suggested to > > > others in the past that 'while read' in sh is a faster method of find= ing > > > the WWW than grep. In fact, 'make describe' uses this method now, not > > > grep. I vaguely recall that this was done at my suggestion, but I'm t= oo > > > lazy to trace the commit path to confirm it. :) 'make www-site' (which > > > already exists in case there is a 3rd party tool that needs it) uses a > > > different method utilizing awk. I haven't tested which one is faster. > > >=20 > > > I'm also concerned about the proliferation of things being jammed into > > > the ports Makefile (and coincidentally, bpm). I've noticed that just > > > about every operation that portmaster does using 'make -V' has gotten > > > noticeably slower over the last 6-8 months, and the trend seems to be > > > getting worse instead of better. > >=20 > > make www-site already exists and will be made faster, and nothing else = will be > > added, but things will be removed... I don't see the proliferation here= but > > rather a cleanup. > >=20 > > Concerning the bpm, I have removed more old things and useless tests fr= om it > > that I have added! and if people were actively working on switching the= re ports > > to the new option framework then the fallback code could be removed and= this > > will speed up lots of operations. > >=20 > > >=20 > > > > Do anyone have any concern about this? > > >=20 > > > For all these reasons, and for the already-stated reason that it > > > severely lowers the value of 'cat pkg-descr' (which I do quite often, > > > and I'm sure other users do as well) I think this is a bad idea. > > >=20 > > > Doug > > >=20 >=20 > Here is a diff of the final impact on bpm (once WWW: is gone) >=20 > regards, > Bapt I forgot the link sory: http://people.freebsd.org/~bapt/www.diff regards, Bapt --+nBD6E3TurpgldQp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlBv/LgACgkQ8kTtMUmk6EyAewCeLyBh31vMeQIGhjRdqYms/Bz1 WIkAn3m1wcSUQaqJ8/7NmLvwwx+utnpT =jjSR -----END PGP SIGNATURE----- --+nBD6E3TurpgldQp--