libcairo: fix tmpdir path for 'libcairo-script-interpreter.so'

This commit is contained in:
Leonid Pliushch 2018-06-19 17:51:14 +03:00 committed by Fredrik Fornwall
parent ac72fbae5c
commit 240705a7f6
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://cairographics.org TERMUX_PKG_HOMEPAGE=https://cairographics.org
TERMUX_PKG_DESCRIPTION="Cairo 2D vector graphics library" TERMUX_PKG_DESCRIPTION="Cairo 2D vector graphics library"
TERMUX_PKG_VERSION=1.14.12 TERMUX_PKG_VERSION=1.14.12
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16 TERMUX_PKG_SHA256=8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16
TERMUX_PKG_SRCURL=https://cairographics.org/releases/cairo-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SRCURL=https://cairographics.org/releases/cairo-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_DEPENDS="libandroid-support, libpixman, fontconfig, freetype, libpng" TERMUX_PKG_DEPENDS="libandroid-support, libpixman, fontconfig, freetype, libpng"

View File

@ -0,0 +1,12 @@
diff -uNr cairo-1.14.12/util/cairo-script/cairo-script-operators.c cairo-1.14.12.mod/util/cairo-script/cairo-script-operators.c
--- cairo-1.14.12/util/cairo-script/cairo-script-operators.c 2017-12-05 00:26:25.000000000 +0200
+++ cairo-1.14.12.mod/util/cairo-script/cairo-script-operators.c 2018-06-19 17:48:57.767824702 +0300
@@ -1719,7 +1719,7 @@
static void *
_mmap_bytes (const struct mmap_vec *vec, int count)
{
- char template[] = "/tmp/csi-font.XXXXXX";
+ char template[] = "@TERMUX_PREFIX@/tmp/csi-font.XXXXXX";
void *ptr;
int fd;
int num_bytes;