ASSP port testing, not getting all perl mods to work

Scott Haneda talklists at newgeo.com
Fri Jan 23 03:31:14 PST 2009


Turns out this is not ASSP, or env vars at all.  I distilled it down  
to a simple test...

#!/opt/local/bin/perl --
use strict;

our $AvailSPF2 = eval("use Mail::SPF; 1");

if ($AvailSPF2) {
	print "true\n";
	my $ver = eval('Mail::SPF->VERSION');
	print $ver
} else {
	print "false\n";
}

I come up false on that one, so apparently, it is not installed, or  
installed wrong.

Here is the portfile

# $Id$
PortSystem 1.0
PortGroup perl5 1.0

perl5.setup             Mail-SPF v2.006
maintainers             hostwizard.com:scott

description       	Mail::SPF - An object-oriented implementation of  
Sender Policy Framework

long_description        Mail::SPF is an object-oriented implementation  
of \
			Sender Policy Framework (SPF). See http://www.openspf.org \
			for more information about SPF. \
			\
			This class collection aims to fully conform to the SPF \
			specification (RFC 4408) so as to serve both as a \
			production quality SPF implementation and as a reference \
			for other developers of SPF implementations.

homepage		http://search.cpan.org/dist/Mail-SPF/lib/Mail/SPF.pm

checksums           	md5     4da41591b612560627ddbc6026b047a3 \
                     	sha1    301b33f66d3a14a26c497fd80b91d6c7d5ce9faa \
                     	rmd160  5d7244a0dc21979159f6bbba11da1590b3f2c6ba

platforms               darwin

Here is ports telling me it is in fact installed:
`port list installed | grep p5-mail-spf`
p5-mail-spf                    @v2.006         perl/p5-mail-spf

Quick test to see if it works:
/opt/local/bin/perl -MMail::SPF -e 'print $INC{"Mail/SPF.pm"}'

Can't locate version.pm in @INC (@INC contains: /opt/local/lib/ 
perl5/5.8.9/darwin-2level /opt/local/lib/perl5/5.8.9 /opt/local/lib/ 
perl5/site_perl/5.8.9/darwin-2level /opt/local/lib/perl5/site_perl/ 
5.8.9 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl/ 
5.8.9/darwin-2level /opt/local/lib/perl5/vendor_perl/5.8.9 /opt/local/ 
lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.8.9/ 
Mail/SPF.pm line 24.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/ 
5.8.9/Mail/SPF.pm line 24.
Compilation failed in require.
BEGIN failed--compilation aborted.

How do I get it to install correctly?
--
Scott



More information about the macports-users mailing list