Le Vendredi 13 Décembre 2002 09:47, Frederic Crozat a écrit :
> On Thu, 12 Dec 2002 23:42:46 +0100, Guillaume Rousse wrote:
> > [rousse@bohm rousse]$ spamassassin <
> > /usr/share/doc/spamassassin-2.43/sample-spam.txt
> > razor2 check skipped:  Can't locate object method "do_conf" via package
> > "Razor2::Client::Agent" (perhaps you forgot to load
> > "Razor2::Client::Agent"?) at
> > /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/Dns.pm line 386.
> >
> > This message already get reported
> > http://www.mail-archive.com/cooker@linux-mandrake.com/msg71251.html, but
> > about a different problem (spamd crashing), wich is now solved.
> >
> > [rousse@bohm rousse]$ rpm -q perl-Razor-Agent spamassassin
> > perl-Razor-Agent-2.20-2mdk
> > spamassassin-2.43-3mdk
>
> Strange, I don't have any problem here, with the same version..
I should have precised in happens on a 8.2,  with package rebuild for perl 5.6

> Can you try running
> razor-check -d < /usr/share/doc/spamassassin-2.43/sample-spam.txt
[rousse@bohm rousse]$ razor-check -d < 
/usr/share/doc/spamassassin-2.43/sample-spam.txt
Can't locate Razor2/Preproc/deHTMLxs.pm in @INC (@INC contains: lib 
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 
/usr/lib/perl5/site_perl .) at 
/usr/lib/perl5/site_perl/5.6.1/Razor2/Preproc/Manager.pm line 4.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.6.1/Razor2/Preproc/Manager.pm line 4.
Compilation failed in require at 
/usr/lib/perl5/site_perl/5.6.1/Razor2/Client/Agent.pm line 21.
BEGIN failed--compilation aborted at 
/usr/lib/perl5/site_perl/5.6.1/Razor2/Client/Agent.pm line 21.
Compilation failed in require at /usr/bin/razor-check line 21.
BEGIN failed--compilation aborted at /usr/bin/razor-check line 21.

OK, the problem lies there, thanks for the tip. I'll double check my modified 
spec file.

BTW, the razor package has some provisions for rebuilding on older 
distribution (condiftional build for mdk80). However, they are unsufficient 
as the export PERL5LIB line in %install stage, as well as the files list 
still use the %{perl_vendordir} macro, which should be {perl_sitedir} for 
older distributions. Moreover, the man pages locations also change from 
%{_mandir}/man3pm to %{_libdir}/perl5/man.

And more generally, why does this package support conditional build, while 95% 
of other mdk packages do not ?
-- 
Software bugs are impossible to detect by anybody except the end user. 
        -- Murphy's Computer Laws n°10


Reply via email to