autoconf: fix patch

This commit is contained in:
Leonid Pliushch 2020-12-11 17:52:25 +02:00
parent 27ed137858
commit 8037d2a44c
No known key found for this signature in database
GPG Key ID: 45F2964132545795
2 changed files with 24 additions and 12 deletions

View File

@ -1,12 +0,0 @@
diff -u -r ../autoconf-2.69/lib/Autom4te/General.pm ./lib/Autom4te/General.pm
--- ../autoconf-2.69/lib/Autom4te/General.pm 2012-04-24 16:44:15.000000000 -0400
+++ ./lib/Autom4te/General.pm 2015-05-17 16:11:45.492445577 -0400
@@ -300,7 +300,7 @@
sub mktmpdir ($)
{
my ($signature) = @_;
- my $TMPDIR = $ENV{'TMPDIR'} || '/tmp';
+ my $TMPDIR = $ENV{'TMPDIR'} || '@TERMUX_PREFIX@/tmp';
my $quoted_tmpdir = shell_quote ($TMPDIR);
# If mktemp supports dirs, use it.

View File

@ -0,0 +1,24 @@
diff -uNr autoconf-2.70/lib/autoconf/specific.m4 autoconf-2.70.mod/lib/autoconf/specific.m4
--- autoconf-2.70/lib/autoconf/specific.m4 2020-12-07 23:24:16.000000000 +0200
+++ autoconf-2.70.mod/lib/autoconf/specific.m4 2020-12-11 17:51:41.321805117 +0200
@@ -199,7 +199,7 @@
# /tmp where it might want to write temporary files
# /var/tmp likewise
# /usr/tmp likewise
-for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
+for ac_dir in . "$TMPDIR" @TERMUX_PREFIX@/tmp "$prefix/lib" "$exec_prefix/lib"; do
# Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
# in the usual case where exec_prefix is '${prefix}'.
case $ac_dir in #(
diff -uNr autoconf-2.70/lib/m4sugar/m4sh.m4 autoconf-2.70.mod/lib/m4sugar/m4sh.m4
--- autoconf-2.70/lib/m4sugar/m4sh.m4 2020-12-02 17:26:23.000000000 +0200
+++ autoconf-2.70.mod/lib/m4sugar/m4sh.m4 2020-12-11 17:51:22.721606959 +0200
@@ -1705,7 +1705,7 @@
# it is a documented part of the public API and must not be changed.
m4_define([AS_TMPDIR],
[# Create a (secure) tmp directory for tmp files.
-m4_if([$2], [], [: "${TMPDIR:=/tmp}"])
+m4_if([$2], [], [: "${TMPDIR:=@TERMUX_PREFIX@/tmp}"])
{
tmp=`(umask 077 && mktemp -d "m4_default([$2],
[$TMPDIR])/$1XXXXXX") 2>/dev/null` &&