Browse Source

gzip: fix path to /tmp

android-5
Leonid Plyushch 6 years ago
parent
commit
09f4c0b2e2
  1. 1
      packages/gzip/build.sh
  2. 12
      packages/gzip/zdiff.in.patch
  3. 12
      packages/gzip/zgrep.in.patch

1
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_DESCRIPTION="Standard GNU file compression utilities"
TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=1.10 TERMUX_PKG_VERSION=1.10
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=8425ccac99872d544d4310305f915f5ea81e04d0f437ef1a230dc9d1c819d7c0 TERMUX_PKG_SHA256=8425ccac99872d544d4310305f915f5ea81e04d0f437ef1a230dc9d1c819d7c0
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gzip/gzip-${TERMUX_PKG_VERSION}.tar.xz 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" TERMUX_PKG_EXTRA_CONFIGURE_ARGS="ac_cv_path_GREP=grep"

12
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"` ||

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