On Wed, Feb 20, 2008 at 8:22 AM, Jerry D. Hedden <[EMAIL PROTECTED]> wrote:
>     use Config;
>     BEGIN {
>         die("ERROR:  This Perl not built to support threads\n")
>             if (! $Config{'useithreads'});
>     }
>
>  Thus, there is no failure; there is a lack of meeting a
>  prerequisite.  As such, trying to install this module should
>  result in an UNKNOWN and not a FAIL.

This is incorrect. It should either report "NA" -- meaning that it is
not supported on this Perl -- or just not report anything at all since
a prerequisite wasn't met.  Probably the former, since "thread" shows
up in the platform architecture of the report and thus on CPAN Testers
it would be useful to see "NA" for every architecture with "thread" in
it.

Sadly, due to the legacy way that "NA" is determined, you need to have this:

     use Config;
     BEGIN {
         die("OS unsupported:  ERROR:  This Perl not built to support
threads\n")
             if (! $Config{'useithreads'});
     }

The key is the phrase "OS unsupported" which CPANPLUS and
CPAN::Reporter will us to flag your distribution as "NA".  See
http://cpantest.grango.org/wiki/CPANAuthorNotes for more.

Regards,
David Golden

Reply via email to