diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-05-15 18:33:32 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-05-15 18:33:32 +0200 |
commit | f91221c06a1ae9b921c42e081369ede18ccdf297 (patch) | |
tree | bbab1c4e6fbbbfcd299363c11eb1c8dc612ea3a9 | |
parent | 3cf3fdb13e6c17c6793fc96f50a8562cc945646e (diff) | |
download | genpkg-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.
-rwxr-xr-x | preps/perl.d/perl-pkgbuild | 8 |
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); |