From owner-freebsd-ports@FreeBSD.ORG Mon Aug 1 17:21:51 2011 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 E3AEC106564A for ; Mon, 1 Aug 2011 17:21:51 +0000 (UTC) (envelope-from talon@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 77F588FC0A for ; Mon, 1 Aug 2011 17:21:51 +0000 (UTC) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.14.4/jtpda-5.4) with ESMTP id p71HKlD6072768 ; Mon, 1 Aug 2011 19:21:00 +0200 (CEST) X-Ids: 168 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id C11382042F; Mon, 1 Aug 2011 19:21:21 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id AEB7540A1; Mon, 1 Aug 2011 19:21:21 +0200 (CEST) Date: Mon, 1 Aug 2011 19:21:21 +0200 From: Michel Talon To: Jos Backus Message-ID: <20110801172121.GA57098@lpthe.jussieu.fr> References: <20110801085135.GA45113@lpthe.jussieu.fr> <4E367999.8000906@FreeBSD.org> <201108011609.34885.talon@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Miltered: at jchkmail.jussieu.fr with ID 4E36E092.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 4E36E092.000/134.157.10.1/parthe.lpthe.jussieu.fr/parthe.lpthe.jussieu.fr/ Cc: freebsd-ports@freebsd.org Subject: Re: UPDATING 20110730 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: Mon, 01 Aug 2011 17:21:52 -0000 On Mon, Aug 01, 2011 at 09:39:05AM -0700, Jos Backus wrote: > On Aug 1, 2011 7:10 AM, "Michel Talon" wrote: > [snip] > > This being said if an upgrade tool needs to compute (partially) the INDEX, > > most of the time is spent in running make -V in each port, > > because make has to read and interpret enormous files. I don't see any way > to > > cut on that, or one should need to develop a special purpose version of > make > > to evaluate these variables, perhaps which should keep persistent > > computations between ports (but this is dangerous). > > Or don't store lots of data in files in Makefile format. The make language > is a poor data storage format that doesn't allow access to that data from > other tools easily or efficiently. I'm struggling with a similar problem at > $WORK. > > Jos This is unfortunately impossible because the ports system is organized around a make logic and the relevant dependency variables are only obtained through running make on each ports Makefile *in the context* of the gigantic makefiles (bsd.port.mk, etc) which are included. -- Michel TALON