Bug 87933 - p5-Mail-SpamAssassin-3.1.0_3 missing dependencies: p5-Mail-SPF-Query and LWP/UserAgent.pm
Summary: p5-Mail-SpamAssassin-3.1.0_3 missing dependencies: p5-Mail-SPF-Query and LWP/...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sam Lawrance
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-24 17:30 UTC by Igor Roshchin
Modified: 2005-12-16 05:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Roshchin 2005-10-24 17:30:16 UTC
              p5-Mail-SpamAssassin-3.1.0_3 is upgraded from some 2.5 using portsnap with the subsequent portupgrade (build from ports). (I don't remember if the original installation was done from a package or not, probably it was).

Some options and utilities are missing dependencies. 
I was able to identify two: p5-Mail-SPF-Query and LWP::UserAgent
One might check if any other dependency is missing as well.
Installing p5-Mail-SPF-Query-1.997 cleared the first problem.

From /var/log/maillog:
spamd[51714]: Can't locate Mail/SPF/Query.pm in @INC (@INC contains: ../lib /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN /usr/local/lib/perl5/5.8.6/mach /usr/local/lib/perl5/5.8.6) at /usr/local/lib/perl5/site_perl/5.8.6/Mail/SpamAssassin/Plugin/SPF.pm line 272, <GEN344> line 102.

# sa-update --updatedir /usr/local/etc/mail/spamassassin/
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN /usr/local/lib/perl5/5.8.6/mach /usr/local/lib/perl5/5.8.6) at /usr/local/bin/sa-update line 73.
BEGIN failed--compilation aborted at /usr/local/bin/sa-update line 73.

Fix: 

Add p5-Mail-SPF-Query and LWP::UserAgent (I am not sure what port includes that, suspect p5-libwww) as dependencies.
Check if any other dependencies are missing.
How-To-Repeat:               On a clean-build machine install p5-Mail-SpamAssassin-3.1.0_3 and spamass-milter-0.3.0. Use the config (local.cf) below.
For repeating the second problem - start sa-update


# SpamAssassin config file for version 3.x
# NOTE: NOT COMPATIBLE WITH VERSIONS 2.5 or 2.6
# See http://www.yrex.com/spam/spamconfig25.php for earlier versions
# Generated by http://www.yrex.com/spam/spamconfig.php (version 1.50)

# How many hits before a message is considered spam.
required_score           5.0

# Change the subject of suspected spam
rewrite_header subject         [SPAM]

# Encapsulate spam in an attachment (0=no, 1=yes, 2=safe)
report_safe             0

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
bayes_auto_learn              1

# Enable or disable network checks
skip_rbl_checks         0
use_razor2              1
use_dcc                 0
use_pyzor               1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_languages            all

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              all
Comment 1 Renato Botelho freebsd_committer freebsd_triage 2005-10-24 17:33:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

Over to maintainer.
Comment 2 Sam Lawrance freebsd_committer freebsd_triage 2005-12-13 11:18:08 UTC
State Changed
From-To: open->analyzed

This behaviour is normal and harmless.  There is a similar 
report and explanation for why it occurs in ports/90090. 

Since two people have reported this as a problem, I will 
look into doing something about it (such as a comment in 
pkg-message or automatic tuning of the default config file). 


Comment 3 Sam Lawrance freebsd_committer freebsd_triage 2005-12-13 11:18:08 UTC
Responsible Changed
From-To: perl->lawrance

Take it.
Comment 4 Sam Lawrance freebsd_committer freebsd_triage 2005-12-16 05:06:05 UTC
State Changed
From-To: analyzed->closed

A dependency was added on p5-libwww.  I did not add a dependency 
on p5-Mail-SPF-Query because it is a port option.  The error message 
in that case was because you failed to configure spamassassin after 
after installing it, as directed by the pkg-message. 

I added a further note to pkg-message, so hopefully people can 
avoid this situation in future. 

Thanks for the report :-)