perl: Setup File::Spec->tmpdir correctly

This commit is contained in:
Fredrik Fornwall 2016-04-19 17:22:22 -04:00
parent e07331bb1e
commit f5a7d27851
2 changed files with 13 additions and 1 deletions

View File

@ -4,7 +4,7 @@ TERMUX_PKG_DESCRIPTION="Capable, feature-rich programming language"
# cpan modules will require make:
TERMUX_PKG_DEPENDS="make"
TERMUX_PKG_VERSION=5.22.1
TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_BUILD_REVISION=2
TERMUX_PKG_SRCURL=http://www.cpan.org/src/5.0/perl-${TERMUX_PKG_VERSION}.tar.gz
# Does not work with parallell builds:
TERMUX_MAKE_PROCESSES=1

View File

@ -0,0 +1,12 @@
diff -u -r ../perl-5.22.1/dist/PathTools/lib/File/Spec/Unix.pm ./dist/PathTools/lib/File/Spec/Unix.pm
--- ../perl-5.22.1/dist/PathTools/lib/File/Spec/Unix.pm 2015-10-17 08:38:37.000000000 -0400
+++ ./dist/PathTools/lib/File/Spec/Unix.pm 2016-04-19 16:46:41.651532097 -0400
@@ -210,7 +210,7 @@
sub tmpdir {
my $cached = $_[0]->_cached_tmpdir('TMPDIR');
return $cached if defined $cached;
- $_[0]->_cache_tmpdir($_[0]->_tmpdir( $ENV{TMPDIR}, "/tmp" ), 'TMPDIR');
+ $_[0]->_cache_tmpdir($_[0]->_tmpdir( $ENV{TMPDIR}, "@TERMUX_PREFIX@/tmp" ), 'TMPDIR');
}
=item updir