Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2011 15:32:43 +0100
From:      Chris Rees <utisoft@gmail.com>
To:        ports@freebsd.org
Subject:   Extra fields in INDEX
Message-ID:  <CADLo83_Oc7L%2BBnkeAkSBXpxyqwTCtOF2zkULTQC_7xSAhMOeFQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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@hydra]~% alias findextrasinindex "< `make -C /usr/ports -V
INDEXDIR`/`make -C /usr/ports -V INDEXFILE` grep -n
'^\([^|]*|\)\{11\}[^|]\+'"

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

[crees@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@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@FreeBSD.org|accessibilit=
y
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@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@FreeBSD.org|archivers
java|/usr/ports/lang/perl5.12|/usr/ports/lang/perl5.12||/usr/ports/devel/gm=
ake
/usr/ports/lang/perl5.12||http://savannah.nongnu.org/projects/fastjar

But in INDEX:

[crees@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@FreeBSD.org|accessibilit=
y
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@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|pe=
rl-5.12.4_1|

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

Chris

--=20
Chris Rees =A0 =A0 =A0 =A0 =A0| FreeBSD Developer
crees@FreeBSD.org =A0 | http://people.freebsd.org/~crees



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83_Oc7L%2BBnkeAkSBXpxyqwTCtOF2zkULTQC_7xSAhMOeFQ>