From fba5d401c57798caba41a7243502c0b046002ebf Mon Sep 17 00:00:00 2001 From: Matt Schreiber Date: Tue, 10 Feb 2015 23:21:13 +0000 Subject: [PATCH] cpan.rb exports PERL_MM_USE_DEFAULT=1 and AUTOMATED_TESTING=1 in order to avoid common sources of hanging during CPAN install process --- lib/fpm/package/cpan.rb | 5 +++++ 1 file changed, 5 insertions(+) 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")