Date: Fri, 25 Jul 2008 19:19:42 +0200 From: Kris Kennaway <kris@FreeBSD.org> To: "V.Chukharev" <chukharev@mail.ru> Cc: Dirk Meyer <dirk.meyer@dinoex.sub.org>, freebsd-ports@freebsd.org Subject: Re: Mk/bsd.openssl.mk optimization Message-ID: <488A0B2E.9070403@FreeBSD.org> In-Reply-To: <op.ueuwd8rs0g54sc@localhost> References: <op.ueqfl1xy0g54sc@localhost> <08GlBzRclM@dmeyer.dinoex.sub.org> <op.ueumske80g54sc@localhost> <op.ueuwd8rs0g54sc@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
V.Chukharev wrote: > On Fri, 25 Jul 2008 16:09:10 +0300, V.Chukharev <chukharev@mail.ru> wrote: > >> On Fri, 25 Jul 2008 07:30:18 +0300, Dirk Meyer <dirk.meyer@dinoex.sub.org> wrote: >> >>> So you are right that make index could be otimized, >>> but it will take much more work. >> Totally agree on this. I tryed to make caching in bsd.subdir.mk as Kris >> proposed, and I got also considerable speedup, but not as good as >> with the first patch. The grep on all packages is done once per port >> category. I miss how to pass the results to a child make... >> >> Anyway, I attach the new (better, but still not fully working) patch JFYI. > > Well, I've found how to pass params to a child make. So the next version of the > patch comes at the end of this post. > > This patch should work well for index builds, but I have big doubts about > all the rest. Please review and test if possible. > > With the patch Mk/bsd.port.sudir.mk .include's Mk/bsd.openssl.mk, hence everywhere > when the former is used the latter is inderectly included. This is because I did not > want to split the openssl staff into two parts. I put some protection. You don't want to .include the file, just use the same make -f trick that I used for e.g. the python and java variable caching. Kris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?488A0B2E.9070403>