Subject: Re: textproc/intltool
To: andy.ball@earthlink.net, OBATA Akio <obata@lins.jp>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-users
Date: 03/31/2006 08:17:16
On Fri, 31 Mar 2006, OBATA Akio wrote:

> > # /usr/pkg/bin/perl -e "require XML::Parser"
> > Can't load '/usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-multi/auto/XML/Parser/Expat/Expat.so' for module XML::Parser::Expat: Shared object "libexpat.so.0" not found at /usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/DynaLoader.pm line 230.
> >   at /usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-multi/XML/Parser.pm line 14

"libexpat.so.0" not found

> Please do "pkg_info -N p5-XML-Parser", probably build with expat-1.95.8,
> And do "pkg_info expat", maybe expat-2.0.0 .
> 
> Rebuild & update your p5-XML-Parser with expat-2.0.0, and your problem
> will be fixed.

This should be automated by pkgsrc build infrastructure unless the 
original poster forced this.

Andy, were you using IGNORE_RECOMMENDED=yes ?

I do see for textproc/p5-XML-Parser/Makefile

revision 1.27
date: 2006/01/24 07:32:37;  author: wiz;  state: Exp;  lines: +2 -2
Bump BUILDLINK_RECOMMENDED of textproc/expat to 2.0.0 because
of the shlib major bump.
PKGREVISION++ for the dependencies.

I think the fix for this problem in pkgsrc is:

Index: textproc/intltool/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/textproc/intltool/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- textproc/intltool/Makefile	4 Mar 2006 21:30:46 -0000	1.34
+++ textproc/intltool/Makefile	31 Mar 2006 16:14:48 -0000
@@ -12,7 +12,7 @@
 
 PKG_INSTALLATION_TYPES=	overwrite pkgviews
 
-DEPENDS+=		p5-XML-Parser>=2.31nb1:../../textproc/p5-XML-Parser
+DEPENDS+=		p5-XML-Parser>=2.34nb4:../../textproc/p5-XML-Parser
 
 CONFLICTS=		xml-i18n-tools-[0-9]*
 

But since there was an bump for gettext changes the above nb4 should 
probably be "nb5" too.

We need to improve our routine for bumping PKGREVISIONS to also find 
and fix the appropriate DEPENDS lines.



 Jeremy C. Reed

echo ':6DB6=88>?;@69876tA=AC8BB5tA6487><' | tr '4-F' 'wu rofIn.lkigemca'