summaryrefslogtreecommitdiffstats
path: root/preps
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-05-15 18:33:32 +0200
committerJustin Davis <jrcd83@gmail.com>2012-05-15 18:33:32 +0200
commitf91221c06a1ae9b921c42e081369ede18ccdf297 (patch)
treebbab1c4e6fbbbfcd299363c11eb1c8dc612ea3a9 /preps
parent3cf3fdb13e6c17c6793fc96f50a8562cc945646e (diff)
downloadgenpkg-f91221c06a1ae9b921c42e081369ede18ccdf297.tar.gz
genpkg-f91221c06a1ae9b921c42e081369ede18ccdf297.tar.xz
Be paranoid with env vars in check() for perl pkgs.
Re-adds export PERL_MM_DEFAULT=1 and unset PERL5LIB.
Diffstat (limited to 'preps')
-rwxr-xr-xpreps/perl.d/perl-pkgbuild8
1 files changed, 8 insertions, 0 deletions
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);