diff --git a/lib/fpm/package/cpan.rb b/lib/fpm/package/cpan.rb index cbb786fd5c..458f9dddc7 100644 --- a/lib/fpm/package/cpan.rb +++ b/lib/fpm/package/cpan.rb @@ -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")