Hi
I had a problem installing xml-sax-pm586 via fink that I think I have
partially tracked down.
My system:
I've run fink selfupdate; fink update-all
osx 10.4.10
$ fink -V
Package manager version: 0.27.6
Distribution version: 0.8.1.rsync powerpc
The problem stems from having XML::SAX v0.16 installed through CPAN.
Which resulted in an error while installing xml-sax-pm586.
----- Here's the error-----------------------------
$fink -v install xml-sax-pm586
Information about 7351 packages read in 1 seconds.
The package 'xml-sax-pm586' will be installed.
Reading dependency for xml-sax-pm586-0.15-2...
The following package will be installed or updated:
xml-sax-pm586
Reading buildlock packages...
All buildlocks accounted for.
/sw/bin/dpkg-lockwait -i /sw/fink/dists/unstable/main/binary-darwin-
powerpc/libs/perlmods/xml-sax-pm586_0.15-2_darwin-powerpc.deb
Selecting previously deselected package xml-sax-pm586.
(Reading database ... 53660 files and directories currently installed.)
Unpacking xml-sax-pm586 (from .../xml-sax-pm586_0.15-2_darwin-
powerpc.deb) ...
Creating config files in /sw/etc/perl5/5.8.6/XML/SAX...
Setting up xml-sax-pm586 (0.15-2) ...
update-perl586-sax-parsers: adding Perl SAX parser module info file
of XML::SAX::PurePerl...
Can't locate object method "save_parsers_debian" via package
"XML::SAX" at /sw/sbin/update-perl586-sax-parsers line 97.
/sw/bin/dpkg: error processing xml-sax-pm586 (--install):
subprocess post-installation script returned error exit status 22
Errors were encountered while processing:
xml-sax-pm586
### execution of /sw/bin/dpkg-lockwait failed, exit code 1
Failed: can't install package xml-sax-pm586-0.15-2
----- Here's the temporary solution---
`mv /Library/Perl/5.8.6/darwin-thread-multi-2level/XML/LibXML/
SAX.pm /Library/Perl/5.8.6/darwin-thread-multi-2level/XML/LibXML/SAX-
moved-temporarily.pm`
now `fink -v install xml-sax-pm586` works as expected
-----the reason....... /sw/sbin/update-perl586-sax-parsers
/sw/bin/update-perl586-sax-parsers
I don't know enough about fink to know where this file comes from but
it has a problem, I believe :)
Line 12 should read:
12 unshift (@INC, "/sw/lib/perl5", "/sw/lib/perl5/5.8.6", "/sw/lib/
perl5/5.8.6/darwin-thread-multi-2level");
NOT
12 push (@INC, "/sw/lib/perl5", "/sw/lib/perl5/5.8.6", "/sw/lib/
perl5/5.8.6/darwin-thread-multi-2
The "push" puts the dirs on the END of @INC which still uses my CPAN
version of XML::SAX
unshift puts them at the BEGINNING of @INC
/sw/sbin/update-perl586-sax-parsers
1 #!/usr/bin/env perl5.8.6
2 ##
----------------------------------------------------------------------
3 ## Debian update-perl-sax-parsers version 0.1
4 ##
----------------------------------------------------------------------
5 ## Copyright (C) 2001 Ardo van Rangelrooij <[EMAIL PROTECTED]>.
6 ##
7 ## This is free software; see the GNU General Public Licence
version 2
8 ## or later for copying conditions. There is NO warranty.
9 ##
----------------------------------------------------------------------
10
11 BEGIN {
12 push (@INC, "/sw/lib/perl5", "/sw/lib/perl5/5.8.6", "/sw/lib/
perl5/5.8.6/darwin-thread-multi-2level");
13 }
14
15 ##
----------------------------------------------------------------------
16 use File::Spec ();
17 use XML::SAX ();
<<snip>>
Have a great Day
Cooper
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel