Subject: Re: textproc/p5-XML-Simple broken (was: CVS commit: pkgsrc/textproc/p5-XML-SAX)
To: None <pkgsrc-users@NetBSD.org>
From: Klaus Heinz <k.heinz.jun.sieben@kh-22.de>
List: pkgsrc-users
Date: 06/16/2007 17:28:37
Bernd Ernesti wrote:
> I don't know why, but I have the feeling that this or one of the
> other updates in this area broke textproc/p5-XML-Simple:
> =20
> =3D=3D=3D> Configuring for p5-XML-Simple-2.16
> =3D> Checking for portability problems in extracted files
> Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/p=
kg/lib/perl5/vendor_perl/5.
> 8.0/XML/SAX/ParserFactory.pm line 43.
> Checking installed modules ...
> *** Error code 2
Do you have installed p5-XML-LibXML at all? If not, then I suppose your
registry of XML parsers is messed up, which would support my case of
automatic parser registration, which the commit was all about.
Please take a look at
PREFIX/lib/perl5/vendor_perl/5.8.0/XML/SAX/ParserDetails.ini
If you have p5-XML-SAX (which owns this file), it must contain 4 lines
(the last two are empty).
-----8<------
[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces =3D 1
-----8<------
=46rom the error message, I conclude that you do _not_ have p5-XML-LibXML
installed but ParserDetails.ini probably contains
-----8<------
[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces =3D 1
[XML::LibXML::SAX::Parser]
http://xml.org/sax/features/namespaces =3D 1
[XML::LibXML::SAX]
http://xml.org/sax/features/namespaces =3D 1
-----8<------
As a solution, you could delete the sections [XML::LibXML::SAX::Parser]
and [XML::LibXML::SAX] manually.
As an alternative, deinstall p5-XML-SAX and every package which depends
on it and make sure the file ParserDetails.ini is gone. Then reinstall
from current pkgsrc as needed. Registration of parsers at install time
and removal at deinstall time should be done automatically.
ciao
Klaus