-----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-----
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to