Date: Mon, 21 May 2007 09:34:26 +0200 From: Alexander Leidinger <Alexander@Leidinger.net> To: Doug Barton <dougb@FreeBSD.org> Cc: ports@FreeBSD.org, Stephen Montgomery-Smith <stephen@math.missouri.edu> Subject: Re: Speeding up pkg_version and perhaps other port utilities Message-ID: <20070521093426.l3l6wxmkg00g8swg@webmail.leidinger.net> In-Reply-To: <4650C9C0.3080706@FreeBSD.org> References: <464FD334.9040705@math.missouri.edu> <20070520082931.47fe8db9@deskjail> <4650C9C0.3080706@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Doug Barton <dougb@FreeBSD.org> (from Sun, 20 May 2007 =20 15:20:48 -0700): > Alexander Leidinger wrote: >> Quoting Stephen Montgomery-Smith <stephen@math.missouri.edu> (Sat, =20 >> 19 May 2007 23:48:52 -0500): >> >>> On my system, the program pkg_version can double its speed simply =20 >>> by replacing "make -V PKGNAME" by "make BEFOREPORTMK=3Dyes -V PKGNAME" > > This is very cool! I've already added it to my devel version of > portmaster in several places. I call make a LOT in portmaster, so I > went through every invocation and added this wherever it worked (i.e., > didn't cause a difference in (or absence of) output. Can you share a list of stuff which works? Maybe in our wiki? > I'd also like to say thanks to Stephen, Alexander, and everyone else > who's taken an interest in optimizing the ports infrastructure. I've > managed to work around some of the inefficiencies with portmaster, but > I learn new tricks (like this one) on a regular basis. Having things be > more efficient to start with would be a great thing for all of our > users. Do you have some tricks to share which aren't discussed here so far? =20 Maybe some of them are usable in bsd.port.mk itself. >>> It seems to me that with some clever use like this, certain =20 >>> commands like "make all-package-depends" could selectively read =20 >>> only parts of bsd.port.mk. >> >> You have to make sure no dependency is set in the second part of >> bsd.port.mk then. I don't know for sure if this is already the case. I >> expect that it is not the case. > > It depends on the target. My suggestion would be to test them on an > individual basis. It's usually pretty clear if they will work or not. Yes, but for the package depends I think you can not use it. Bye, Alexander. --=20 Bender to Zoidberg: "You're looking less nuts, crabby." http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070521093426.l3l6wxmkg00g8swg>