Re: Historical question about INDEX-file in /usr/ports
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 [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Historical question about INDEX-file in /usr/ports
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 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? FreeBSD 4.x and earlier had just plain /usr/ports/INDEX FreeBSD 5.x and above have /usr/ports/INDEX-N where N is the OS major version. The INDEX.db file is created and used by programs from the portupgrade(1) suite: other ports management applications pretty much make a point of not referring to the INDEX at all. There wasn't a change in the format of the INDEX coincident with the name change -- the distinction is because many of the ports are version number dependent so the content of the INDEX will be different on different system versions. There was a change in the format of the INDEX file some time before 4.11-RELEASE (I think) which added a number of extra columns, but the file format has been constant since then. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkhg/nIACgkQ3jDkPpsZ+VZZtgCdHTreKMTKgnK3QbAm1ql08Ct2 IWoAoKsiR9LklfJwIMDgaRyoFypaTvWi =T6a9 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Historical question about INDEX-file in /usr/ports
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? With regards Stevan Tiefert ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"