Browse Source

libsndfile: fix tmpdir

android-5
Leonid Plyushch 7 years ago
committed by Fredrik Fornwall
parent
commit
43fb26be50
  1. 2
      packages/libsndfile/build.sh
  2. 12
      packages/libsndfile/tmpdir.patch

2
packages/libsndfile/build.sh

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=http://www.mega-nerd.com/libsndfile
TERMUX_PKG_DESCRIPTION="Library for reading/writing audio files"
# Use a git master snapshot until 1.0.29 is released:
TERMUX_PKG_VERSION=1.0.29~pre1
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/erikd/libsndfile/archive/826d5296da54c016e3cb0f7f00de3b9e295b9c4a.zip
TERMUX_PKG_SHA256=84651201a8468c448f1fd172a48ccf47f3761d23fd0f59bcaaf908050e9eeb7c
TERMUX_PKG_DEPENDS="libflac, libvorbis"

12
packages/libsndfile/tmpdir.patch

@ -0,0 +1,12 @@
diff -uNr libsndfile/src/common.c libsndfile.mod/src/common.c
--- libsndfile/src/common.c 2017-10-31 10:30:54.000000000 +0200
+++ libsndfile.mod/src/common.c 2018-06-19 17:08:45.344367164 +0300
@@ -1730,7 +1730,7 @@
tmpdir = getenv ("TEMP") ;
else
{ tmpdir = getenv ("TMPDIR") ;
- tmpdir = tmpdir == NULL ? "/tmp" : tmpdir ;
+ tmpdir = tmpdir == NULL ? "@TERMUX_PREFIX@/tmp" : tmpdir ;
} ;
if (tmpdir && access (tmpdir, R_OK | W_OK | X_OK) == 0)
Loading…
Cancel
Save