Subject: | System perl used in tests |
On some smokers I see the following failure:
...
Can't locate HTTP/Daemon.pm in @INC (you may need to install the HTTP::Daemon module) (@INC contains: ... /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . ./t) at /home/cpansand/.cpan/build/2019100209/HTTP-Daemon-Threaded-0.91-3/blib/lib/HTTP/Daemon/Threaded/Socket.pm line 32.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019100209/HTTP-Daemon-Threaded-0.91-3/blib/lib/HTTP/Daemon/Threaded/Socket.pm line 32.
Compilation failed in require at /home/cpansand/.cpan/build/2019100209/HTTP-Daemon-Threaded-0.91-3/blib/lib/HTTP/Daemon/Threaded/Listener.pm line 35.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019100209/HTTP-Daemon-Threaded-0.91-3/blib/lib/HTTP/Daemon/Threaded/Listener.pm line 35.
Compilation failed in require at t/httpdtest.pl line 8.
BEGIN failed--compilation aborted at t/httpdtest.pl line 8.
... (etc) ...
It seems that the system perl is used here, not the perl used for building the module, hence the strange-looking dependency failures. Usual the fix is to use at some point $^X, probably when calling httpdtest.pl.