Skip to content

Commit 234599a

Browse files
Matt Schreibertomeon
authored andcommitted
cpan.rb exports PERL_MM_USE_DEFAULT=1 and AUTOMATED_TESTING=1
in order to avoid common sources of hanging during CPAN install process
1 parent 9d3d96a commit 234599a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/fpm/package/cpan.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ def input(package)
205205
prefix = attributes[:prefix] || "/usr/local"
206206
# TODO(sissel): Set default INSTALL path?
207207

208+
# Some modules will prompt for input during the build process, hanging
209+
# fpm. These options will override most such occurrences.
210+
ENV["PERL_MM_USE_DEFAULT"] = "1"
211+
ENV["AUTOMATED_TESTING"] = "1"
212+
208213
# Try Makefile.PL, Build.PL
209214
#
210215
if File.exist?("Build.PL")

0 commit comments

Comments
 (0)