ASSP port testing, not getting all perl mods to work
Scott Haneda
talklists at newgeo.com
Fri Jan 23 21:18:58 PST 2009
On Jan 23, 2009, at 1:29 PM, Bryan Blackburn wrote:
> The Mail::SPF Build.PL file has:
>
> install_path => {
> 'sbin' => '/usr/sbin'
> },
>
> so it sounds like it needs to be patched to install into the proper
> location. The following should do it:
>
> post-extract {
> reinplace "s|/usr/sbin|${prefix}/sbin|" ${worksrcpath}/Build.PL
> }
>
> I don't have the dependencies to build this however, so testing will
> be
> needed.
>
> Scott, one thing while building new ports that should be helpful, is
> to
> first run, not install, but destroot on the port (port -d destroot)
> so you
> can then review what's in the destroot prior to actually
> installing. This
> is a very good way to catch odd install locations such as this.
> When you're
> sitting in the port's directory (with Portfile), when you run
> destroot it
> should create a work symlink; under that will be the source stuff and
> (assuming destroot succeeded) a destroot directory. You can 'ls -lR
> work/destroot' to see all files that will be installed.
>
> Bryan
Thanks Bryan, I added in the post-extract after reading the docs on
it, pretty straight forward. Ran uninstall, clean and then install
port list installed | grep p5-mail-spf
p5-mail-spf @v2.006 perl/p5-mail-spf
This all looks in order, spfd in the right spot as well...
Port p5-mail-spf contains:
/opt/local/bin/spfquery
/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/Mail/
SPF/.packlist
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Base.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Exception.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/MacroString.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech/A.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech/All.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech/Exists.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech/Include.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech/IP4.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech/IP6.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech/MX.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech/PTR.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mech.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mod/Exp.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mod/Redirect.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Mod.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Record.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Request.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Result.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/SenderIPAddrMech.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Server.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Term.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/Util.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/v1/Record.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF/v2/Record.pm
/opt/local/lib/perl5/vendor_perl/5.8.9/Mail/SPF.pm
/opt/local/sbin/spfd
/opt/local/share/man/man1/spfquery.1.gz
/opt/local/share/man/man3/Mail::SPF.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Base.3pm.gz
/opt/local/share/man/man3/Mail::SPF::MacroString.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech::A.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech::All.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech::Exists.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech::Include.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech::IP4.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech::IP6.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech::MX.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mech::PTR.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mod.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mod::Exp.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Mod::Redirect.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Record.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Request.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Result.3pm.gz
/opt/local/share/man/man3/Mail::SPF::SenderIPAddrMech.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Server.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Term.3pm.gz
/opt/local/share/man/man3/Mail::SPF::Util.3pm.gz
/opt/local/share/man/man3/Mail::SPF::v1::Record.3pm.gz
/opt/local/share/man/man3/Mail::SPF::v2::Record.3pm.gz
My test sample still yields the annoying false return
#!/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";
}
And I thought this would be it :(
--
Scott
More information about the macports-users
mailing list