Extra fields in INDEX

Chris Rees utisoft at gmail.com
Fri Aug 19 14:33:14 UTC 2011


Hi all,

I'm having a look at modifying INDEX to have a field at the end (to
cause minimum breakage), but I've discovered that in a few ports there
(6630 out of 22731) appears to be extra 'stuff' in fields past field
10 (which is for the first WWW: line in pkg-descr).

Can anyone with knowledge of make index explain why this is happening?
Using the command line at [1] gets a list

[crees at hydra]~% alias findextrasinindex "< `make -C /usr/ports -V
INDEXDIR`/`make -C /usr/ports -V INDEXFILE` grep -n
'^\([^|]*|\)\{11\}[^|]\+'"

[crees at hydra]~% findextrasinindex | wc -l
    6630

[crees at hydra]~% findextrasinindex | cut -d '|' -f 2 | head
/usr/ports/accessibility/atk
/usr/ports/accessibility/gnome-mag
/usr/ports/accessibility/ruby-atk
/usr/ports/archivers/dpkg
/usr/ports/archivers/fastjar
/usr/ports/archivers/lrzip
/usr/ports/archivers/ocaml-bz2
/usr/ports/archivers/ocaml-zip
/usr/ports/archivers/p5-Archive-Any
/usr/ports/archivers/p5-Archive-Extract

[crees at hydra]~% make -C /usr/ports/accessibility/atk describe
atk-2.0.1|/usr/ports/accessibility/atk|/usr/local|A GNOME
accessibility toolkit
(ATK)|/usr/ports/accessibility/atk/pkg-descr|gnome at FreeBSD.org|accessibility
devel||/usr/ports/devel/libtool||/usr/ports/devel/gettext
/usr/ports/devel/glib20 /usr/ports/devel/gmake
/usr/ports/devel/gobject-introspection /usr/ports/devel/libtool
/usr/ports/devel/pkg-config|/usr/ports/devel/gettext
/usr/ports/devel/gio-fam-backend /usr/ports/devel/glib20
/usr/ports/devel/pkg-config|http://developer.gnome.org/projects/gap/

[crees at hydra]~% make -C /usr/ports/archivers/fastjar describe
fastjar-0.93.20060808|/usr/ports/archivers/fastjar|/usr/local|A
version of JDK's `jar' command written entirely in
C|/usr/ports/archivers/fastjar/pkg-descr|maho at FreeBSD.org|archivers
java|/usr/ports/lang/perl5.12|/usr/ports/lang/perl5.12||/usr/ports/devel/gmake
/usr/ports/lang/perl5.12||http://savannah.nongnu.org/projects/fastjar

But in INDEX:

[crees at hydra]~% findextrasinindex | grep '^[^:]\+:[fa][at][sk]\(tjar\)\?-'
7:atk-2.0.1|/usr/ports/accessibility/atk|/usr/local|A GNOME
accessibility toolkit
(ATK)|/usr/ports/accessibility/atk/pkg-descr|gnome at FreeBSD.org|accessibility
devel|cairo-1.10.2_2,1 expat-2.0.1_1 fontconfig-2.8.0_1,1
freetype2-2.4.6 gamin-0.1.10_4 gettext-0.18.1.1 gio-fam-backend-2.28.8
glib-2.28.8 gmake-3.82 gobject-introspection-0.10.8 kbproto-1.0.5
libX11-1.3.6,1 libXau-1.0.6 libXdmcp-1.0.3 libXrender-0.9.5
libffi-3.0.9 libiconv-1.13.1_1 libpthread-stubs-0.3_3 libtool-2.4
libxcb-1.7 pcre-8.13 perl-5.12.4_1 pixman-0.22.0 pkg-config-0.25_1
png-1.4.8 python27-2.7.2_1 renderproto-0.11 xcb-util-0.3.6_1
xproto-7.0.16|gamin-0.1.10_4 gettext-0.18.1.1 gio-fam-backend-2.28.8
glib-2.28.8 libiconv-1.13.1_1 pcre-8.13 perl-5.12.4_1
pkg-config-0.25_1
python27-2.7.2_1|http://developer.gnome.org/projects/gap/||libtool-2.4|
60:fastjar-0.93.20060808|/usr/ports/archivers/fastjar|/usr/local|A
version of JDK's `jar' command written entirely in
C|/usr/ports/archivers/fastjar/pkg-descr|maho at FreeBSD.org|archivers
java|gettext-0.18.1.1 gmake-3.82 libiconv-1.13.1_1
perl-5.12.4_1||http://savannah.nongnu.org/projects/fastjar|perl-5.12.4_1|perl-5.12.4_1|

They have extra fields on the end ... Where have they come from??

Chris

-- 
Chris Rees          | FreeBSD Developer
crees at FreeBSD.org   | http://people.freebsd.org/~crees


More information about the freebsd-ports mailing list