Hi Koen

On 06.11.2004, at 15:14, Koen van der Drift wrote:
I am wrking on a new package, xml-sax-expat-pm, and get the following error at the end of the installation.

I was not able to fix it. But figured out where the problem lies:

...
All tests successful.
Files=1, Tests=1, 1 wallclock secs ( 0.42 cusr + 0.12 csys = 0.54 CPU)
/bin/rm -rf /sw/src/root-xml-sax-expat-pm-0.37-1
/bin/mkdir -p /sw/src/root-xml-sax-expat-pm-0.37-1/sw
/bin/mkdir -p /sw/src/root-xml-sax-expat-pm-0.37-1/DEBIAN
make install INSTALLPRIVLIB=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/lib/perl5 INSTALLARCHLIB=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/lib/perl5/ darwin INSTALLSITELIB=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/lib/perl5 INSTALLSITEARCH=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/lib/perl5/ darwin INSTALLMAN1DIR=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/share/man/man1 INSTALLMAN3DIR=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/share/man/man3 INSTALLSITEMAN1DIR=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/share/man/ man1 INSTALLSITEMAN3DIR=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/share/man/ man3 INSTALLSCRIPT=/sw/src/root-xml-sax-expat-pm-0.37-1/sw/sbin
Installing /sw/src/root-xml-sax-expat-pm-0.37-1/sw/lib/perl5/XML/SAX/Expat.pm
Installing /sw/src/root-xml-sax-expat-pm-0.37-1/sw/share/man/man3/XML::SAX:: Expat.3pm
Writing /sw/src/root-xml-sax-expat-pm-0.37-1/sw/lib/perl5/darwin/auto/XML/SAX/ Expat/.packlist
Appending installation info to /sw/src/root-xml-sax-expat-pm-0.37-1/sw/lib/perl5/darwin/perllocal.pod
Can't locate XML/SAX/Expat.pm in @INC (@INC contains: /sw/lib/perl5/5.8.1/darwin-thread-multi-2level /sw/lib/perl5/5.8.1 /sw/lib/perl5 /sw/lib/perl5/darwin /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at /sw/lib/perl5/XML/SAX.pm line 147.
make: *** [install_sax_expat] Error 2
### execution of make failed, exit code 2
Failed: installing xml-sax-expat-pm-0.37-1 failed



The problem is coming from this line in the Makefile (line 639):

...
install_sax_expat :
@$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()"
...


It seems like it is telling XML::SAX to add XML::SAX::Expat as a new parser. And then it doesn't find the Expat.pm file, since it is not installed at the final destination %p, but only in %i.

I am not sure what is going on here. Could you check what "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()" does exactly? Maybe this needs to be run at actual install time (not build time). Then you would need to add a PostInstScript field with this command. And a custom install script doing only 'make pure_install' and 'make doc_install' whith the necessary parameters. But i am not sure here since i have no idea what xml-sax is actually doing.

Maybe somebody else has more ideas. Or you might need to ask the author of xml-sax.

Also, other packagers might have similar problems. Check other distributions like darwinports, gentoo, debian etc. for the solution of the xml-sax-expat package (if they have it).

A few random links about the problem:

1.
<http://perl.arix.com/cpan2rpm/#FAQ>
ah... yes. And they seem to suggest something very similar.

2.
<http://packages.debian.org/testing/perl/libxml-sax-expat-perl>
How debian does it. Also very similar. Look at the patch they are applying:
<http://ftp.debian.org/debian/pool/main/libx/libxml-sax-expat-perl/ libxml-sax-expat-perl_0.37-2.diff.gz>


3.
Opendarwin seems to have a port too. But the site seems to be down at the moment.


Here's the info file I am using:

If you are depending on versioned perl modules your module also has to be versioned. Below is the info file attached that i was using to test. What i changed in comparison to yours:


- Used Info2 and versioned perl variant
I recommend using Info2 for versioned perl packages. It makes adding
different perl versions later much easier.
- Change Homepage to an unversioned url.
Like this you won't need to change it if you update the package version.



Hope all this helps, Chris.


Info2: << Package: xml-sax-expat-pm%type_pkg[perl] Version: 0.37 Revision: 1 Depends: xml-parser-pm%type_pkg[perl], xml-sax-pm%type_pkg[perl] Source: mirror:cpan:authors/id/R/RB/RBERJON/XML-SAX-Expat-%v.tar.gz Type: perl(5.8.1) UpdatePOD: True Source-MD5: c48024d363a1ff9abaf8f9af592d38cd DocFiles: Changes MANIFEST Description: SAX2 Driver for Expat License: Artistic Maintainer: Koen van der Drift <[EMAIL PROTECTED]> Homepage: http://search.cpan.org/dist/XML-SAX-Expat/ <<



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to