termux-packages/packages/parallel/parallel.patch

27 lines
842 B
Diff
Raw Normal View History

diff -u -r ../parallel-20160922/src/parallel ./src/parallel
--- ../parallel-20160922/src/parallel 2016-09-22 19:04:53.000000000 -0400
+++ ./src/parallel 2016-09-26 10:01:43.814429837 -0400
@@ -1258,11 +1258,11 @@
$Global::trim = 'n';
$Global::max_jobs_running = 0;
$Global::job_already_run = '';
- $ENV{'TMPDIR'} ||= "/tmp";
+ $ENV{'TMPDIR'} ||= "@TERMUX_PREFIX@/tmp";
if(not $ENV{HOME}) {
# $ENV{HOME} is sometimes not set if called from PHP
- ::warning("\$HOME not set. Using /tmp.");
- $ENV{HOME} = "/tmp";
+ ::warning("\$HOME not set. Using @TERMUX_HOME@.");
+ $ENV{HOME} = "@TERMUX_HOME@";
}
}
@@ -4255,6 +4255,7 @@
my $bsd = q(ps -o pid,ppid,command -ax);
%pid_parentpid_cmd =
(
+ 'android' => $sysv,
'aix' => $sysv,
'android' => $sysv,
'cygwin' => $sysv,