Skip to content

Commit

Permalink
Workaround for removal of "." from @inc.
Browse files Browse the repository at this point in the history
Starting in perl 5.26, the current directory "."
is now longer in @inc by default. This causes installation
to fail for lots of modules (especially those using Module::Install).
The PERL_USE_UNSAFE_INC environment variable let's us get the old
behavior until newer CPAN modules are available.
  • Loading branch information
thaljef committed Aug 6, 2017
1 parent f64e53f commit e366141
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/install.sh
Expand Up @@ -119,6 +119,9 @@ chmod 755 "$PINTO_CPANM_EXE"

echo "Installing pinto into $PINTO_HOME"

# Workaround for removal of "." from @INC in perl 5.26.0
export PERL_USE_UNSAFE_INC=1

"$PINTO_CPANM_EXE" --notest --quiet --mirror $PINTO_REPO_URL --mirror-only \
--local-lib-contained "$PINTO_HOME" --man-pages Pinto

Expand Down

0 comments on commit e366141

Please sign in to comment.