From owner-freebsd-ports Tue Mar 5 17:55:18 2002 Delivered-To: freebsd-ports@freebsd.org Received: from lists.unixathome.org (lists.unixathome.org [210.48.103.158]) by hub.freebsd.org (Postfix) with ESMTP id 731E337B404 for ; Tue, 5 Mar 2002 17:55:05 -0800 (PST) Received: from wocker (lists.unixathome.org [210.48.103.158]) by lists.unixathome.org (8.11.6/8.11.6) with ESMTP id g261t1k95169; Wed, 6 Mar 2002 14:55:02 +1300 (NZDT) (envelope-from dan@lists.unixathome.org) Message-Id: <200203060155.g261t1k95169@lists.unixathome.org> From: "Dan Langille" Organization: DVL Software Limited To: ports@freebsd.org Date: Tue, 5 Mar 2002 20:55:00 -0500 MIME-Version: 1.0 Subject: INDEX contains duplicates and omits ports Reply-To: dan@langille.org Cc: dan@langille.org X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org After my inital post of 3 March, I started looking more closely at the problem. What is a good and reliable method for getting a list of all of the ports? [1] Is INDEX a good source of this information? [2] If so, I guess "cd /usr/ports && make index" is sufficient albeit very time consuming. I have been playing with a small script [3] to obtain a list, but more minds make for a better solution. Note that make index produced 6651 ports (actually, only 6646 after removing duplicates), while my script below produced 6662 ports. The difference is 16 ports missing from INDEX. They are listed below in a supplied diff [4]. Checking /usr/ports, these ports do exit, but they do not appear in INDEX. I'm pretty sure this is a makeindex bug. [1] - I ask because I want to be able to reconcile the FreshPorts database with the ports tree. [2] - see my post earlier today concerning 4 duplicate entries in the INDEX produced for 4.5-RELEASE [3] - what do you think of this for finding a list of existing port? It assumes a recent cvsup from ports and that it is being executed from /usr/ports: #!/sbn/sh # # -maxdepth 1 == look only for this directory and one down # -type d == directories only # egrep == ignore a few special directories # grep "/" == ignore category directories such as editors, security # find * -maxdepth 1 -type d | egrep -v "^Mk|^Templates|^Tools|/pkg$" \ | grep "/" [4] INDEX.list.duplicates.removed is the from my make index | uniq list-of-ports.txt.sorted is from the script in [3] --- list-of-ports.txt.sorted Sun Mar 3 22:19:10 2002 +++ INDEX.list.duplicates.removed Sun Mar 3 22:19:09 2002 @@ -753,7 +753,6 @@ databases/postgresql-pltcl databases/postgresql-tcltk databases/postgresql7 -databases/postgresql7.1.2 databases/pxtools databases/py-MySQL databases/py-MySQLdb @@ -1294,7 +1293,6 @@ devel/p5-POE-Component-DBIAgent devel/p5-POE-Component-IKC devel/p5-POE-Component-IKC-ReallySimple -devel/p5-POE-Component-IRC devel/p5-POE-Component-JobQueue devel/p5-POE-Component-Pcap devel/p5-POE-Component-RSS @@ -1539,9 +1537,6 @@ devel/yacl devel/zthread devel/zziplib -distfiles/ezm3 -distfiles/postgresql -distfiles/ruby editors/AbiWord editors/aee editors/apel @@ -1724,7 +1719,6 @@ emulators/ksnes9x emulators/linux-vmware-toolbox emulators/linux_base -emulators/linux_base-62 emulators/linux_base-7 emulators/mastergear emulators/mtools @@ -1919,7 +1913,6 @@ games/flightgear games/flying games/freecell-solver -games/freeciv games/freeciv-gtk games/freesweep games/frotz @@ -2309,7 +2302,6 @@ graphics/dia graphics/diacanvas graphics/divx4linux -graphics/djvulibre graphics/dore graphics/drm-kmod graphics/dtv @@ -2744,7 +2736,6 @@ japanese/chimera japanese/csrd japanese/dbskkd-cdb -japanese/ddskk japanese/deepforest japanese/devil-fpw japanese/diclookup-emacs20 @@ -4210,7 +4201,6 @@ net/cryptcat net/ctrace net/cvsup -net/cvsup-devel net/cvsup-mirror net/cvsup-without-gui net/cvsupit @@ -4356,7 +4346,6 @@ net/kxicq2 net/lam net/lambdamoo -net/ldapmodule net/ldapsdk net/libfreenet net/libicq @@ -5057,7 +5046,6 @@ security/libparanoia security/liedentd security/logcheck -security/logcheck.new security/lsh security/lxnb security/mcrypt @@ -5148,7 +5136,6 @@ security/pktsuckers security/portscanner security/portsentry -security/portsentry.old security/ppgen security/proxytunnel security/pscan @@ -5740,7 +5727,6 @@ textproc/smartdoc textproc/source-highlight textproc/sp -textproc/tclExpat textproc/tclxml textproc/tdtd.el textproc/tex2im @@ -5848,7 +5834,6 @@ www/dillo www/djvuplugin www/eddie -www/elinks www/emacs-w3m www/emacs-w3m-emacs20 www/emacs-w3m-xemacs21-mule @@ -6645,7 +6630,6 @@ x11/xmsg x11/xmx x11/xprompt -x11/xscreensaver x11/xscreensaver-gnome x11/xskyroot x11/xsnow -- Dan Langille The FreeBSD Diary - http://freebsddiary.org/ - practical examples To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message