From owner-freebsd-questions@FreeBSD.ORG Tue Jun 24 14:07:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 532E51065675 for ; Tue, 24 Jun 2008 14:07:24 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id C9D358FC0A for ; Tue, 24 Jun 2008 14:07:23 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-253-25-183.bredband.comhem.se ([83.253.25.183]:54783 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KB99n-0005aT-9d for freebsd-questions@freebsd.org; Tue, 24 Jun 2008 16:06:04 +0200 Received: (qmail 2843 invoked from network); 24 Jun 2008 16:06:01 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 24 Jun 2008 16:06:01 +0200 Received: (qmail 92425 invoked by uid 1001); 24 Jun 2008 16:06:01 +0200 Date: Tue, 24 Jun 2008 16:06:01 +0200 From: Erik Trulsson To: Stevan Tiefert Message-ID: <20080624140601.GA92328@owl.midgard.homeip.net> References: <200806241536.49891.stevan_tiefert@yahoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806241536.49891.stevan_tiefert@yahoo.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.253.25.183 X-Scan-Result: No virus found in message 1KB99n-0005aT-9d. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KB99n-0005aT-9d 50cdfb612e1124c82462ff4c28eaf20b Cc: freebsd-questions@freebsd.org Subject: Re: Historical question about INDEX-file in /usr/ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2008 14:07:24 -0000 On Tue, Jun 24, 2008 at 03:36:49PM +0200, Stevan Tiefert wrote: > Hello list, > > a small question for the expirienced users of FreeBSD: > > At which time the name of "INDEX.db" to "INDEX-?.db" changed? (I suppose > during the creating time of FreeBSD 6) And then it was changed, was the > database format also been changed? The "INDEX.db" / "INDEX-?.db" files are created by (I believe) portsupgrade and are not really part of the ports tree as such. I don't know if they have changed the database format, but I doubt it. The 'base' files are just plain textfiles named "INDEX" / "INDEX-?". As far as I know their format hasn't changed in a long time either. The switch from plain "INDEX" to "INDEX-5" (etc.) happened in 2002 in time for FreeBSD 5. The reason was that the dependencies for ports could vary quite a bit between 4.x and 5.x. (In particular perl was part of the base system in 4.x, but not in 5.x and later - meaning that all ports that had perl as a dependency (and there are many of them) would depend on the perl port when built on a 5.x system but not on a 4.x system.) The relevant commit message (for ports/Mk/bsd.port.mk) would be: ---------------------------- revision 1.436 date: 2002/12/04 17:17:48; author: kris; state: Exp; lines: +8 -3 Add the INDEXFILE variable, that defaults to INDEX-5 on 5.0 (500036) and later, and INDEX on earlier systems. Use this in the 'make index' and associated targets. This is necessary to deal with the substantially different dependencies of ports between 4.x and 5.0 (e.g. ports that depend on perl). ---------------------------- (Support for INDEX-6, INDEX-7, etc. was added later.) -- Erik Trulsson ertr1013@student.uu.se