From owner-freebsd-hackers@FreeBSD.ORG Sun May 13 21:40:03 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 EE43B16A402 for ; Sun, 13 May 2007 21:40:03 +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 6391813C45B for ; Sun, 13 May 2007 21:40:03 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l4DLdkvD035792; Sun, 13 May 2007 22:39:48 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l4DLdkvD035792 Message-ID: <464785A2.8090001@infracaninophile.co.uk> Date: Sun, 13 May 2007 22:39:46 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.0 (X11/20070420) MIME-Version: 1.0 To: Kris Kennaway 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> In-Reply-To: <4646F084.3080601@infracaninophile.co.uk> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 13 May 2007 22:39:58 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.2/3236/Sun May 13 08:23:27 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, DK_POLICY_SIGNSOME,NO_RELAYS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-hackers@freebsd.org 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:40:04 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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 as well as a number of duplicate PKGNAMEs -- mostly to do with A4 vs letter paper size. Cheers, Matthew [*] Should this always be enforced? Hmmm... I think I'll add a '--strict' option, including that. Being able to add arbitrary ports into the INDEX can be vaguely useful sometimes. - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGR4Wi8Mjk52CukIwRCKGwAJ9sflhEHhm7980YfgGWmqGeubMjjgCcDPIi veocs5SgrNnmF6CJ7XBFfL0= =xCKf -----END PGP SIGNATURE-----