From owner-freebsd-ports@FreeBSD.ORG Thu Oct 13 00:02:02 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E0B716A41F for ; Thu, 13 Oct 2005 00:02:02 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D48A43D48 for ; Thu, 13 Oct 2005 00:02:02 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 0B41E1A3C27; Wed, 12 Oct 2005 17:02:02 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B186B513A5; Wed, 12 Oct 2005 20:01:59 -0400 (EDT) Date: Wed, 12 Oct 2005 20:01:59 -0400 From: Kris Kennaway To: Edwin Groothuis Message-ID: <20051013000159.GA9092@xor.obsecurity.org> References: <20051012114222.GD1278@k7.mavetju> <434D0CFE.9090007@protey.ru> <20051012211228.GE1278@k7.mavetju> <20051012230710.GA88133@xor.obsecurity.org> <20051012232743.GC1265@k7.mavetju> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20051012232743.GC1265@k7.mavetju> User-Agent: Mutt/1.4.2.1i Cc: ports@freebsd.org, Kris Kennaway Subject: Re: PERL_RUN_DEPENDS and PERL_BUILD_DEPENDS 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: Thu, 13 Oct 2005 00:02:02 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 13, 2005 at 09:27:43AM +1000, Edwin Groothuis wrote: > On Wed, Oct 12, 2005 at 07:07:10PM -0400, Kris Kennaway wrote: > > On Thu, Oct 13, 2005 at 07:12:28AM +1000, Edwin Groothuis wrote: > > > On Wed, Oct 12, 2005 at 05:17:50PM +0400, Sergey Skvortsov wrote: > > > > >The syntax is: > > > > > PERL_BUILD_DEPENDS=3D MIME-Lite:${PORTSDIR}/mail/p5-MIME-Lite > > > > >It checks the for the existence of MIME::Lite with the "perl -e > > > > >'use MIME::Lite'" command. > > > > Obviously this approach will cause great performance degrade. > > > > stat(2) is much more faster than loading perl. > > >=20 > > > Minimal compared with the time it takes to fetch distfiles and to > > > build. That's the only time it is checked. > >=20 > > What about INDEX builds? >=20 > "make index" are multiple "make describe"s. A "make describe" is a > perl script with two extra variables: prdirs and pbdirs. The splitting > of PERL_RUN_DEPEND and PERL_BUILD_DEPENDS was first part of the > split of BUILD_DEPENDS and RUN_DEPENDS. That doesn't seem to answer the question. Won't you be running thousands of extra perl invocations during 'make index' when your patch is fully deployed? Kris --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDTaP2Wry0BWjoQKURAslkAKCwL3cuOBpIYG7RJEt0FanJDKazYQCffN6d BEdNI7j46G69rqzOV2FWkpM= =JBrZ -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--