On 2015-01-31 19:26:04, Mekk wrote:
Show quoted text> To add some research to this: cpanm-reporter at the moment uses cpanm
> installation status. CPAN::Reporter seems to have various heuristics
> inside. In this very case, CPAN/Reporter.pm has its
> _compute_make_grade routine, which makes "unknown" out of anything
> with non-zero exit value.
>
> For cpanm-reporter it is more difficult to know that make was used and
> that it failed with some status, as information must be parsed out,
> and actual text is volatile. Here is how the relevant part looks on my
> machine (Polish locale):
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
> cc -c -I/usr/lib/perl5/EV -I/usr/lib/perl5 -D_REENTRANT -D_GNU_SOURCE
> -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g
> -DVERSION=\"2.2\" -DXS_VERSION=\"2.2\" -fPIC "-
> I/usr/lib/perl/5.18/CORE" ADNS.c
> ADNS.xs:6:18: fatal error: adns.h: Nie ma takiego pliku ani katalogu
> #include <adns.h>
> ^
> compilation terminated.
> make: *** [ADNS.o] Błąd 1
> -> FAIL Installing EV::ADNS failed. See
> /home/marcink/.cpanm/work/1422749568.24337/build.log for details.
> Retry with --force to force install it.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> Still, I suppose
> make: *** [...] [...] 1
> present in the very last line before test FAIL is clear enough...
Well, for GNU make. Different makes have different output here:
- FreeBSD make:
*** [fail] Error code 1
Stop in /tmp.
- GNU make, English version:
Makefile:2: recipe for target 'fail' failed
gmake: *** [fail] Error 1
- GNU make, German version, latin1 locale:
Makefile:2: die Regel für Ziel "fail" scheiterte
gmake: *** [fail] Fehler 1
- GNU make, German version, utf8 locale (note the different quotes):
Makefile:2: die Regel für Ziel „fail“ scheiterte
gmake: *** [fail] Fehler 1
- dmake on FreeBSD:
dmake: Error code 1, while making 'fail'
At least nmake output should be also checked for, and are there any other popular makes?