From owner-freebsd-ports@FreeBSD.ORG Fri Jul 25 09:49:44 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E361C1065675 for ; Fri, 25 Jul 2008 09:49:44 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9A1DF8FC18; Fri, 25 Jul 2008 09:49:43 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <4889A1B8.9060900@FreeBSD.org> Date: Fri, 25 Jul 2008 11:49:44 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Dirk Meyer References: <08GlBzRclM@dmeyer.dinoex.sub.org> In-Reply-To: <08GlBzRclM@dmeyer.dinoex.sub.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: chukharev@mail.ru, freebsd-ports@freebsd.org Subject: Re: Mk/bsd.openssl.mk optimization 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: Fri, 25 Jul 2008 09:49:45 -0000 Dirk Meyer wrote: > V.Chukharev schrieb:, > >> So I looked through some Mk stuff, and tryed to optimize it. Since I do not >> know any magic of bsd.*.mk, I did just a simple test. And with the below shown >> patch the time is only 1500 s, while with the original version the time is more >> than 15000 s. I guess the time depens very much on number of installed ports, >> I have about 1300. >> >> The resulting INDEX* files are identical. >> >> I should confess I do not understand how my patch works. I expected to see a >> file /usr/ports/.openssl_installed or /tmp/index_something/.openssl_installed >> or similar, but could not see it... But I hope this patch will inspire you >> to do something really working. > > This patch breaks the desired funtion. > > To speedup index build you can add in in your /etc/make.conf > WITH_OPENSSL_BASE=yes > or > WITH_OPENSSL_PORT=yes > > The linker will pull in the latests version of libssl.so, > So this check is necessary to detect an installed port version, > and record the correct dependency. > > The result can be cached only if no other ports or package is installed. > So you are right that make index could be otimized, > but it will take much more work. Why can't you cache it in bsd.port.subdir.mk as I suggested? Kris