Skip to content

Commit

Permalink
cpan.rb exports PERL_MM_USE_DEFAULT=1 and AUTOMATED_TESTING=1
Browse files Browse the repository at this point in the history
in order to avoid common sources of hanging during CPAN install process
  • Loading branch information
Matt Schreiber authored and tomeon committed Jun 30, 2022
1 parent 9b32d9a commit fba5d40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/fpm/package/cpan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ def input(package)
prefix = attributes[:prefix] || "/usr/local"
# TODO(sissel): Set default INSTALL path?

# Some modules will prompt for input during the build process, hanging
# fpm. These options will override most such occurrences.
ENV["PERL_MM_USE_DEFAULT"] = "1"
ENV["AUTOMATED_TESTING"] = "1"

# Try Makefile.PL, Build.PL
#
if File.exist?("Build.PL")
Expand Down

0 comments on commit fba5d40

Please sign in to comment.