Browse Source

libarchive: fix path to /tmp

android-5
Leonid Plyushch 6 years ago
parent
commit
5219c76f6a
  1. 12
      packages/libarchive/archive_util.c.patch
  2. 2
      packages/libarchive/build.sh

12
packages/libarchive/archive_util.c.patch

@ -0,0 +1,12 @@
diff -uNr libarchive-3.3.3/libarchive/archive_util.c libarchive-3.3.3.mod/libarchive/archive_util.c
--- libarchive-3.3.3/libarchive/archive_util.c 2018-09-02 09:05:18.000000000 +0300
+++ libarchive-3.3.3.mod/libarchive/archive_util.c 2019-03-02 02:14:39.252942170 +0200
@@ -374,7 +374,7 @@
#ifdef _PATH_TMP
tmp = _PATH_TMP;
#else
- tmp = "/tmp";
+ tmp = "@TERMUX_PREFIX@/tmp";
#endif
archive_strcpy(temppath, tmp);
if (temppath->s[temppath->length-1] != '/')

2
packages/libarchive/build.sh

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.libarchive.org/
TERMUX_PKG_DESCRIPTION="Multi-format archive and compression library" TERMUX_PKG_DESCRIPTION="Multi-format archive and compression library"
TERMUX_PKG_LICENSE="BSD 2-Clause" TERMUX_PKG_LICENSE="BSD 2-Clause"
TERMUX_PKG_VERSION=3.3.3 TERMUX_PKG_VERSION=3.3.3
TERMUX_PKG_REVISION=1 TERMUX_PKG_REVISION=2
TERMUX_PKG_SHA256=ba7eb1781c9fbbae178c4c6bad1c6eb08edab9a1496c64833d1715d022b30e2e TERMUX_PKG_SHA256=ba7eb1781c9fbbae178c4c6bad1c6eb08edab9a1496c64833d1715d022b30e2e
TERMUX_PKG_SRCURL=https://www.libarchive.org/downloads/libarchive-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://www.libarchive.org/downloads/libarchive-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_DEPENDS="libbz2, liblzma, libxml2, openssl" TERMUX_PKG_DEPENDS="libbz2, liblzma, libxml2, openssl"

Loading…
Cancel
Save