Browse Source

perl: Setup File::Spec->tmpdir correctly

android-5
Fredrik Fornwall 9 years ago
parent
commit
f5a7d27851
  1. 2
      packages/perl/build.sh
  2. 12
      packages/perl/file-spec-unix.pm.patch

2
packages/perl/build.sh

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

12
packages/perl/file-spec-unix.pm.patch

@ -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
Loading…
Cancel
Save