From 09f4c0b2e2531313cc51b0ffffa836f00b81b85d Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Sat, 2 Mar 2019 14:52:32 +0200 Subject: [PATCH] gzip: fix path to /tmp --- packages/gzip/build.sh | 1 + packages/gzip/zdiff.in.patch | 12 ++++++++++++ packages/gzip/zgrep.in.patch | 12 ++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 packages/gzip/zdiff.in.patch create mode 100644 packages/gzip/zgrep.in.patch diff --git a/packages/gzip/build.sh b/packages/gzip/build.sh index afb8f7168..7b393f20b 100644 --- a/packages/gzip/build.sh +++ b/packages/gzip/build.sh @@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gzip/ TERMUX_PKG_DESCRIPTION="Standard GNU file compression utilities" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_VERSION=1.10 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SHA256=8425ccac99872d544d4310305f915f5ea81e04d0f437ef1a230dc9d1c819d7c0 TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gzip/gzip-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_path_GREP=grep" diff --git a/packages/gzip/zdiff.in.patch b/packages/gzip/zdiff.in.patch new file mode 100644 index 000000000..6234c061c --- /dev/null +++ b/packages/gzip/zdiff.in.patch @@ -0,0 +1,12 @@ +diff -uNr gzip-1.10/zdiff.in gzip-1.10.mod/zdiff.in +--- gzip-1.10/zdiff.in 2018-03-31 06:55:32.000000000 +0300 ++++ gzip-1.10.mod/zdiff.in 2019-03-01 18:41:43.685032331 +0200 +@@ -119,7 +119,7 @@ + case $TMPDIR in + / | /*/) ;; + /*) TMPDIR=$TMPDIR/;; +- *) TMPDIR=/tmp/;; ++ *) TMPDIR=@TERMUX_PREFIX@/tmp/;; + esac + if type mktemp >/dev/null 2>&1; then + tmp=`mktemp "${TMPDIR}zdiffXXXXXXXXX"` || diff --git a/packages/gzip/zgrep.in.patch b/packages/gzip/zgrep.in.patch new file mode 100644 index 000000000..3269fe352 --- /dev/null +++ b/packages/gzip/zgrep.in.patch @@ -0,0 +1,12 @@ +diff -uNr gzip-1.10/zgrep.in gzip-1.10.mod/zgrep.in +--- gzip-1.10/zgrep.in 2018-03-31 06:55:32.000000000 +0300 ++++ gzip-1.10.mod/zgrep.in 2019-03-01 18:41:31.001645453 +0200 +@@ -136,7 +136,7 @@ + case $TMPDIR in + / | /*/) ;; + /*) TMPDIR=$TMPDIR/;; +- *) TMPDIR=/tmp/;; ++ *) TMPDIR=@TERMUX_PREFIX@/tmp/;; + esac + if type mktemp >/dev/null 2>&1; then + pattmp=$(mktemp "${TMPDIR}zgrepXXXXXXXXX") || exit 2