From f91221c06a1ae9b921c42e081369ede18ccdf297 Mon Sep 17 00:00:00 2001 From: Justin Davis Date: Tue, 15 May 2012 12:33:32 -0400 Subject: Be paranoid with env vars in check() for perl pkgs. Re-adds export PERL_MM_DEFAULT=1 and unset PERL5LIB. --- preps/perl.d/perl-pkgbuild | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'preps') diff --git a/preps/perl.d/perl-pkgbuild b/preps/perl.d/perl-pkgbuild index 539a200..87f28b6 100755 --- a/preps/perl.d/perl-pkgbuild +++ b/preps/perl.d/perl-pkgbuild @@ -94,6 +94,14 @@ ENDTXT %s ENDTXT + # Be a little paranoid, but we don't need PERL_AUTOINSTALL here. + # TODO: make this hack prettier + if($type eq 'MM'){ + $funcs{'check'}{'prefix'} .= functxt(<<'ENDTXT', 'PERL_MM_DEFAULT=1', 'PERL5LIB'); +export %s +unset %s +ENDTXT + } $funcs{'check'}{'body'} = functxt("%s test", $make); $funcs{'package'}{'body'} = functxt(<<'ENDTXT', $make, $iargs); -- cgit v1.2.3-24-g4f1b