pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

upgrading spamassasin to pkgsrc-2008Q4 problem with perl5.8 vs perl5.10



I upgraded a bunch of packages using pkgsrc-2008Q4, which brought perl
up to 5.10.  But this broke spamassassin.

I tried rebuilding and installing every perl package on my system, as
well as a clean rebuild of spamassassin.  But spamassassin kept looking
for modules from perl5.8:


May  9 22:25:20 thelonious spamd[1499]: spamd: connection from localhost 
[127.0.0.1] at port 57757 
May  9 22:25:20 thelonious spamd[1499]: spamd: processing message 
<000d01c9d11f$27754d00$6400a8c0@jokersqp7> for spamassassin:1003 
May  9 22:25:20 thelonious spamd[1499]: Can't locate Net/DNS/RR/A.pm in @INC 
(@INC contains: ../lib /usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-
multi /usr/pkg/lib/perl5/vendor_perl/5.8.0 
/usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd-thread-multi 
/usr/pkg/lib/perl5/site_perl/5.8.0 /usr/pkg/lib/perl5
/5.8.0/i386-netbsd-thread-multi /usr/pkg/lib/perl5/5.8.0) at (eval 1323) line 
3, <GEN199> line 183. 
May  9 22:25:20 thelonious spamd[1499]: Can't locate Net/DNS/RR/A.pm in @INC 
(@INC contains: ../lib /usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-
multi /usr/pkg/lib/perl5/vendor_perl/5.8.0 
/usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd-thread-multi 
/usr/pkg/lib/perl5/site_perl/5.8.0 /usr/pkg/lib/perl5
/5.8.0/i386-netbsd-thread-multi /usr/pkg/lib/perl5/5.8.0) at (eval 1323) line 
3, <GEN199> line 183. 
May  9 22:25:20 thelonious spamd[1499]: Use of uninitialized value in hash 
element at 
/usr/pkg/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/Message/Metadat
a/Received.pm line 322, <GEN199> line 183. 
May  9 22:25:20 thelonious spamd[1499]: Use of uninitialized value in hash 
element at 
/usr/pkg/lib/perl5/vendor_perl/5.8.0/Mail/SpamAssassin/Message/Metadat
a/Received.pm line 323, <GEN199> line 183. 
May  9 22:25:20 thelonious spamd[1499]: Can't locate Net/DNS/RR/A.pm in @INC 
(@INC contains: ../lib /usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-
multi /usr/pkg/lib/perl5/vendor_perl/5.8.0 
/usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd-thread-multi 
/usr/pkg/lib/perl5/site_perl/5.8.0 /usr/pkg/lib/perl5
/5.8.0/i386-netbsd-thread-multi /usr/pkg/lib/perl5/5.8.0) at (eval 1324) line 
3, <GEN199> line 183. 
May  9 22:25:20 thelonious spamd[1499]: Can't locate Net/DNS/RR/A.pm in @INC 
(@INC contains: ../lib /usr/pkg/lib/perl5/vendor_perl/5.8.0/i386-netbsd-thread-
multi /usr/pkg/lib/perl5/vendor_perl/5.8.0 
/usr/pkg/lib/perl5/site_perl/5.8.0/i386-netbsd-thread-multi 
/usr/pkg/lib/perl5/site_perl/5.8.0 /usr/pkg/lib/perl5
/5.8.0/i386-netbsd-thread-multi /usr/pkg/lib/perl5/5.8.0) at (eval 1324) line 
3, <GEN199> line 183. 


I was able to run again after a recompile of spamassassin with the
following hack to Makefile:

cvs diff Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/spamassassin/Makefile,v
retrieving revision 1.90
diff -u -r1.90 Makefile
--- Makefile    14 Nov 2008 22:51:52 -0000      1.90
+++ Makefile    11 May 2009 17:19:40 -0000
@@ -21,7 +21,7 @@
 DEPENDS+=      p5-Net-DNS>=0.34:../../net/p5-Net-DNS
 DEPENDS+=      p5-HTML-Parser>=3.43:../../www/p5-HTML-Parser
 DEPENDS+=      p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
-DEPENDS+=      
{p5-MIME-Base64>=2.11,perl>=5.8.0}:../../converters/p5-MIME-Base64
+DEPENDS+=      
{p5-MIME-Base64>=2.11,perl>=5.10.0}:../../converters/p5-MIME-Base64
 DEPENDS+=      p5-libwww-[0-9]*:../../www/p5-libwww
 DEPENDS+=      p5-Archive-Tar>=1.23:../../archivers/p5-Archive-Tar
 DEPENDS+=      p5-Compress-Zlib-[0-9]*:../../devel/p5-Compress-Zlib


I'm not sure what is the root cause of this problem, but I figured that
a note might be useful to others even without that.

-russ



Home | Main Index | Thread Index | Old Index