Subject: | return is 0 although module install failed |
this breaks our CI setup.
example output:
$CI_PROJECT_DIR/cis-debian9-perl5.28.1/bin/perl5.28.1 $CI_PROJECT_DIR/cis-debian9-perl5.28.1/bin/cpanp i file://$CI_PROJECT_DIR/$INSTALL_TARBALL
...
Running [/builds/nac/nac-web-cis/cis-debian9-perl5.28.1/bin/perl5.28.1 -MCPANPLUS::Internals::Utils::Autoflush /root/.cpanplus/5.28.1/build/QVg8WxxUfe/Net-SSLeay-1.88/Makefile.PL]...
Do you want to run external tests?
These tests *will* *fail* if you do not have network connectivity. [n] n
*** Found OpenSSL-1.1.0l installed in /usr
*** Be sure to use the same compiler and options to compile your OpenSSL, perl,
and Net::SSLeay. Mixing and matching compilers is not supported.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Net::SSLeay
Writing MYMETA.yml and MYMETA.json
[ERROR] MAKE failed: No such file or directory cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm
cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm
AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
directory blib/lib/auto/Net/SSLeay:
do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https
do_httpx3.al, do_httpx2.al, do_httpx4.al truncate to do_httpx
get_https.al, get_https3.al, get_https4.al, get_http.al, get_http3.al, get_http4.al, get_httpx.al, get_httpx3.al, get_httpx4.al truncate to get_http
head_https.al, head_https3.al, head_https4.al, head_http.al, head_http3.al, head_http4.al, head_httpx.al, head_httpx3.al, head_httpx4.al truncate to head_htt
post_https.al, post_https3.al, post_https4.al, post_http.al, post_http3.al, post_http4.al, post_httpx.al, post_httpx3.al, post_httpx4.al truncate to post_htt
put_https.al, put_https3.al, put_https4.al, put_http.al, put_http3.al, put_http4.al, put_httpx.al, put_httpx3.al, put_httpx4.al truncate to put_http
ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
tcp_read_all.al, tcp_read_until.al, tcp_read_CRLF.al truncate to tcp_read
tcp_write_all.al, tcp_write_CRLF.al truncate to tcp_writ
cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod
Running Mkbootstrap for SSLeay ()
chmod 644 "SSLeay.bs"
"/builds/nac/nac-web-cis/cis-debian9-perl5.28.1/bin/perl5.28.1" -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Net/SSLeay/SSLeay.bs 644
"/builds/nac/nac-web-cis/cis-debian9-perl5.28.1/bin/perl5.28.1" "/builds/nac/nac-web-cis/cis-debian9-perl5.28.1/lib/perl5/5.28.1/ExtUtils/xsubpp" -typemap '/builds/nac/nac-web-cis/cis-debian9-perl5.28.1/lib/perl5/5.28.1/ExtUtils/typemap' -typemap '/root/.cpanplus/5.28.1/build/QVg8WxxUfe/Net-SSLeay-1.88/typemap' SSLeay.xs > SSLeay.xsc
mv SSLeay.xsc SSLeay.c
cc -c -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"1.88\" -DXS_VERSION=\"1.88\" -fPIC "-I/builds/nac/nac-web-cis/cis-debian9-perl5.28.1/lib/perl5/5.28.1/x86_64-linux/CORE" SSLeay.c
SSLeay.xs:163:25: fatal error: openssl/err.h: No such file or directory
#include <openssl/err.h>
^
compilation terminated.
Makefile:350: recipe for target 'SSLeay.o' failed
make: *** [SSLeay.o] Error 1
[ERROR] Unable to create a new distribution object for 'Net::SSLeay' -- cannot continue
[ERROR] Failed to install 'Net::SSLeay' as prerequisite for 'NAC::Web::Request'
[ERROR] Unable to satisfy prerequisites for 'NAC::Web::Request' -- aborting install
[ERROR] Unable to create a new distribution object for 'NAC::Web::Request' -- cannot continue
[ERROR] Failed to install 'NAC::Web::Request' as prerequisite for 'NAC::Web::CIS'
[ERROR] Unable to satisfy prerequisites for 'NAC::Web::CIS' -- aborting install
[ERROR] Unable to create a new distribution object for 'NAC::Web::CIS' -- cannot continue
*** Install log written to:
/root/.cpanplus/install-logs/NAC-Web-CIS-1.006006-1579786729.log
Error installing 'NAC::Web::CIS'
Problem installing one or more modules