From nobody@FreeBSD.org  Mon Oct 24 16:24:08 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id F1BBC16A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2005 16:24:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B334B43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2005 16:24:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9OGO7Mc047716
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 24 Oct 2005 16:24:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9OGO73U047715;
	Mon, 24 Oct 2005 16:24:07 GMT
	(envelope-from nobody)
Message-Id: <200510241624.j9OGO73U047715@www.freebsd.org>
Date: Mon, 24 Oct 2005 16:24:07 GMT
From: Igor Roshchin <str@komkon.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: p5-Mail-SpamAssassin-3.1.0_3 missing dependencies: p5-Mail-SPF-Query and LWP/UserAgent.pm 
X-Send-Pr-Version: www-2.3

>Number:         87933
>Category:       ports
>Synopsis:       p5-Mail-SpamAssassin-3.1.0_3 missing dependencies: p5-Mail-SPF-Query and LWP/UserAgent.pm
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lawrance
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 24 16:30:16 GMT 2005
>Closed-Date:    Fri Dec 16 05:09:47 GMT 2005
>Last-Modified:  Fri Dec 16 05:09:47 GMT 2005
>Originator:     Igor Roshchin
>Release:        5.4-RELEASE
>Organization:
Komkon
>Environment:
FreeBSD MyHost 5.4-RELEASE FreeBSD 5.4-RELEASE #2: Tue Jul 12 16:03:42 EDT 2005     root@MyHost:/usr/obj/usr/src/sys/NEW  i386
>Description:
              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.

>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



>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.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->perl 
Responsible-Changed-By: garga 
Responsible-Changed-When: Mon Oct 24 16:33:24 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87933 
State-Changed-From-To: open->analyzed 
State-Changed-By: lawrance 
State-Changed-When: Tue Dec 13 11:18:08 UTC 2005 
State-Changed-Why:  
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). 


Responsible-Changed-From-To: perl->lawrance 
Responsible-Changed-By: lawrance 
Responsible-Changed-When: Tue Dec 13 11:18:08 UTC 2005 
Responsible-Changed-Why:  
Take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87933 
State-Changed-From-To: analyzed->closed 
State-Changed-By: lawrance 
State-Changed-When: Fri Dec 16 05:06:05 UTC 2005 
State-Changed-Why:  
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 :-) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87933 
>Unformatted:
