Date: Tue, 5 Mar 2002 20:55:00 -0500 From: "Dan Langille" <dan@langille.org> To: ports@freebsd.org Cc: dan@langille.org Subject: INDEX contains duplicates and omits ports Message-ID: <200203060155.g261t1k95169@lists.unixathome.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203060155.g261t1k95169>