Subject: | PERL_USE_UNSAFE_INC=1 hack does not work for sudo installs |
The PERL_USE_UNSAFE_INC=1 hack needed for perl 5.26 does not work in some situations:
* the "sudo" install option is used (i.e.
'make_install_make_command' => q[sudo make],
'mbuild_install_build_command' => q[sudo ./Build],
is set)
* sudo is configured with env_reset, which seems to be the default on
most (or all?) systems (tried FreeBSD, various Debians, Cent OS 7).
To check, one can try:
env PERL_USE_UNSAFE_INC=1 sudo env | grep -sq PERL_USE_UNSAFE_INC || echo 'Problems!'
* the distribution to be installed requires "." in @INC during the
installation phase (e.g. KAZEBURO/WWW-Form-UrlEncoded-0.24.tar.gz,
a Plack dependency)