From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:44:28 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8594016A404 for ; Sun, 13 May 2007 21:44:28 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 706B413C45D for ; Sun, 13 May 2007 21:44:28 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 7ECF41A3C19; Sun, 13 May 2007 14:45:16 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 52B6B52C9B; Sun, 13 May 2007 17:44:27 -0400 (EDT) Date: Sun, 13 May 2007 17:44:27 -0400 From: Kris Kennaway To: Matthew Seaman Message-ID: <20070513214426.GA64291@xor.obsecurity.org> References: <20070512004209.GA12218@lpthe.jussieu.fr> <17989.8202.624522.136573@bhuda.mired.org> <20070512090935.GA13929@lpthe.jussieu.fr> <20070512193302.GA24673@xor.obsecurity.org> <20070512214422.GA88480@lpthe.jussieu.fr> <20070512222435.GA28981@xor.obsecurity.org> <4646C249.6070103@infracaninophile.co.uk> <20070513084404.GA35648@xor.obsecurity.org> <4646F084.3080601@infracaninophile.co.uk> <464785A2.8090001@infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <464785A2.8090001@infracaninophile.co.uk> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org, Kris Kennaway Subject: Re: DPS Initial Ideas X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2007 21:44:28 -0000 On Sun, May 13, 2007 at 10:39:46PM +0100, Matthew Seaman wrote: > Matthew Seaman wrote: > > > I can certainly add a check for duplicate PKGNAME and emit warnings. In > > order to be sure of getting the canonical INDEX-N you'ld need a system > > with no ports installed. Well, other than p5-FreeBSD-Portindex and > > dependencies -- none of which suffer from this problem. > > Hmmm, well, I have the first cut at this now. As an added bonus, it > enforces having the port mentioned in the $SUBDIR variable of the > category Makefile before it will add it to the INDEX[*]. > > Turns out there are at least 6 ports present in the tree but not hooked > up in that way: > > happy-idiot-talk:/tmp:% portindex -o INDEX.m |& grep 'not referenced' > FreeBSD::Portindex::Tree:printindex(): /usr/ports/emulators/linux-vmware-toolbox6 is not referenced from the /usr/ports/emulators category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/emulators/vmware-guestd6 is not referenced from the /usr/ports/emulators category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/net-mgmt/nipper is not referenced from the /usr/ports/net-mgmt category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/net/asterisk12-app-ldap is not referenced from the /usr/ports/net category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/x11-fonts/libXfont is not referenced from the /usr/ports/x11-fonts category -- not added to INDEX > FreeBSD::Portindex::Tree:printindex(): /usr/ports/x11-fonts/xfs is not referenced from the /usr/ports/x11-fonts category -- not added to INDEX I think they're all repo-copies in progress, and should indeed not appear in the index yet. > as well as a number of duplicate PKGNAMEs -- mostly to do with A4 vs > letter paper size. What I would like is for the incrementally built index to be identical to the 'make index' version, or at least up to cosmetic differences that I can post-process away automatically. Then I can set up a comparison that validates the incremental index over a period of time to look for remaining corner cases where it gets out of sync. Kris