Failed test 'POD test for blib/lib/Mail/SPF/Util.pm' at /usr/local/share/perl/5.24.1/Test/Pod.pm line 187.


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » System Level » Perl

Failed test 'POD test for blib/lib/Mail/SPF/Util.pm' at /usr/local/share/perl/5.24.1/Test/Pod.pm line 187.Last Modified: Sep 6, 2017, 3:48 pm
If you run into this perl Mail::SPF build error with cpan:

root@server# cpan -i Mail::SPF

Reading '/root/.cpan/Metadata'
 Database was generated on Thu, 31 Aug 2017 09:17:03 GMT
Running install for module 'Mail::SPF'
Checksum for /root/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.9.0.tar.gz ok
Configuring J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.9.0.tar.gz with Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Mail-SPF' version 'v2.9.0'
 JMEHNLE/mail-spf/Mail-SPF-v2.9.0.tar.gz
 /usr/bin/perl Build.PL --installdirs site -- OK
Running Build for J/JM/JMEHNLE/mail-spf/Mail-SPF-v2.9.0.tar.gz
Building Mail-SPF
 JMEHNLE/mail-spf/Mail-SPF-v2.9.0.tar.gz
 ./Build -- OK
Running Build test
t/00.00-class-misc.t .......... ok
t/00.01-class-util.t .......... ok
t/00.02-class-request.t ....... ok
t/00.03-class-result.t ........ ok
t/00.04-class-server.t ........ ok
t/00.05-class-macrostring.t ... ok
t/00.99-class-misc.t .......... ok
t/10.00-rfc4408.t ............. skipped: Mail::SPF::Test required for testing Mail::SPF's RFC compliance
t/10.01-rfc4406.t ............. skipped: Mail::SPF::Test required for testing Mail::SPF's RFC compliance
t/90-author-pod-validation.t .. 1/27
#   Failed test 'POD test for blib/lib/Mail/SPF/Util.pm'
#   at /usr/local/share/perl/5.24.1/Test/Pod.pm line 187.
# blib/lib/Mail/SPF/Util.pm (157): L<> starts or ends with whitespace
# blib/lib/Mail/SPF/Util.pm (157): L<> starts or ends with whitespace
# Looks like you failed 1 test of 27.
t/90-author-pod-validation.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/27 subtests

Test Summary Report
-------------------
t/90-author-pod-validation.t (Wstat: 256 Tests: 27 Failed: 1)
 Failed test:  3
 Non-zero exit status: 1
Files=10, Tests=159,  1 wallclock secs ( 0.05 usr  0.01 sys +  1.07 cusr  0.13 csys =  1.26 CPU)
Result: FAIL
Failed 1/10 test programs. 1/159 subtests failed.
 JMEHNLE/mail-spf/Mail-SPF-v2.9.0.tar.gz
 ./Build test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
 reports JMEHNLE/mail-spf/Mail-SPF-v2.9.0.tar.gz

a reported fix is to install it manually with a patch:

perl -MCPAN -e "get('Mail::SPF')"
cd ~/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf/
tar -xzvf Mail-SPF-v2.9.0.tar.gz
cd Mail-SPF-v2.9.0/

#manually patched blib/lib/Mail/SPF/Util.pm with the changes from Util.pm-patch.gz found at https://rt.cpan.org/Public/Bug/Display.html?id=93241
#extracted here: http://files1.directadmin.com/services/all/perl_modules/Mail-SPF/Util.pm-patch
#basically just swapping out the 3 ! lines from top, to the bottom 3 ! lines.

perl Build.PL
./Build
./Build test
./Build install

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST