From owner-freebsd-questions@FreeBSD.ORG Sun Jun 11 08:16:37 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29BA716A420 for ; Sun, 11 Jun 2006 08:16:37 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52EDD43D6E for ; Sun, 11 Jun 2006 08:16:28 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.6/8.13.6) with ESMTP id k5B8GFJg003300; Sun, 11 Jun 2006 09:16:16 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <448BD14A.7080308@infracaninophile.co.uk> Date: Sun, 11 Jun 2006 09:16:10 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.4 (X11/20060610) MIME-Version: 1.0 To: aaronvan@comcast.net References: <061120060054.23831.448B69C8000A68FE00005D172205886360020E9002019D0E0E@comcast.net> In-Reply-To: <061120060054.23831.448B69C8000A68FE00005D172205886360020E9002019D0E0E@comcast.net> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig14BDB20380B9FE5FAC750A7B" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 11 Jun 2006 09:16:16 +0100 (BST) X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: (no subject) 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: Sun, 11 Jun 2006 08:16:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig14BDB20380B9FE5FAC750A7B Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable aaronvan@comcast.net wrote: > I'm a newbie running 6.1 stable and I have what may be several simple > questions: What exactly is happening when I run "make index && make > readmes" after I upgrade my ports tree? Why aren't the indexes and > readmes made when we run cvsup ports-supfile? Finally, why does it > take so long to make what appear (to me) to be fairly small files? The size of the output file is not what determines how long any program will run, in general. The problem you are running into is the scale of the ports tree. There are now nearly 15,000 ports available. If you're going to generate the ports index inside 20 minutes that means on average each port has to be processed in a tad less than 0.08s. That is still doable on a fast machi= ne and using quite a lot of programming-fu, but it certainly isn't easy. Therefore, instead of building the index yourself, you would be better advised to simply download a pre-built version. Just: # cd /usr/ports # make fetchindex before running portupgrade or whatever. The reason the ports index is not held in CVS is simple: the index contents change every time a port gets updated to a new version. Since there are of the order of 200 updates to individual ports applied each day, and since the index is rebuilt (I believe) hourly for each supported= major OS branch, that would mean checking in changes to 3 ports index fil= es each hour. The CVS repository would be ground into the dust in not too long a time. If you want to maintain your own copy of the index, you certainly can. Doing so is generally not something you absolutely have to do, but useful= if you have your own local ports not part of the usual tree or you're irritated that your INDEX shows eg. ports depending on apache13 when you have a different apache port installed. There is the handy-dandy sysutils/p5-FreeBSD-Portindex port available to help you do that by generating incremental updates to your index as you track the ports tree using cvsup or whatever other means you prefer. Of course, I must admit to a certain bias here as I wrote it. The 'make readmes' stuff you probably don't want at all. All it does is produce the 'readme.html' file in each port. That's utterly pointless fo= r the vast majority of ports users -- and having the readme.html files in the tree can get in the way of keeping things synchronised with cvsup -- especially since you can just go to http://www.freshports.org/ or http:/= /www.freebsd.org/ports/categories-grouped.html and see some better organised and extended representations of the same data. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig14BDB20380B9FE5FAC750A7B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEi9FP8Mjk52CukIwRA7DKAJ0RlTaFb+q0uJl6suwtHKNPXBSPdwCfU0R9 y8cvPV92qaYwRBaJoSrzTqs= =Rg23 -----END PGP SIGNATURE----- --------------enig14BDB20380B9FE5FAC750A7B--