hunspell: fix hardcoded paths
This commit is contained in:
parent
f5919d6335
commit
64ce312006
|
@ -1,7 +1,7 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://hunspell.github.io
|
||||
TERMUX_PKG_DESCRIPTION="Spell checker"
|
||||
TERMUX_PKG_VERSION=1.6.1
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_REVISION=3
|
||||
TERMUX_PKG_SRCURL=https://github.com/hunspell/hunspell/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=30f593733c50b794016bb03d31fd2a2071e4610c6fa4708e33edad2335102c49
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-ui --with-readline"
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
diff -uNr hunspell-1.6.1/src/tools/hunspell.cxx hunspell-1.6.1.mod/src/tools/hunspell.cxx
|
||||
--- hunspell-1.6.1/src/tools/hunspell.cxx 2017-09-14 13:34:22.032862927 +0300
|
||||
+++ hunspell-1.6.1.mod/src/tools/hunspell.cxx 2017-09-14 13:35:48.482862865 +0300
|
||||
@@ -660,7 +660,7 @@
|
||||
|
||||
const char* extension = (filename) ? basename(filename, '.') : NULL;
|
||||
TextParser* parser = get_parser(format, extension, pMS[0]);
|
||||
- char tmpdirtemplate[] = "/tmp/hunspellXXXXXX";
|
||||
+ char tmpdirtemplate[] = "@TERMUX_PREFIX@/tmp/hunspellXXXXXX";
|
||||
|
||||
bool bZippedOdf = is_zipped_odf(parser, extension);
|
||||
// access content.xml of ODF
|
||||
@@ -1567,7 +1567,7 @@
|
||||
|
||||
const char* extension = basename(filename, '.');
|
||||
TextParser* parser = get_parser(format, extension, pMS[0]);
|
||||
- char tmpdirtemplate[] = "/tmp/hunspellXXXXXX";
|
||||
+ char tmpdirtemplate[] = "@TERMUX_PREFIX@/tmp/hunspellXXXXXX";
|
||||
|
||||
bool bZippedOdf = is_zipped_odf(parser, extension);
|
||||
// access content.xml of ODF
|
||||
diff -uNr hunspell-1.6.1/src/tools/hzip.cxx hunspell-1.6.1.mod/src/tools/hzip.cxx
|
||||
--- hunspell-1.6.1/src/tools/hzip.cxx 2017-03-25 23:20:45.000000000 +0200
|
||||
+++ hunspell-1.6.1.mod/src/tools/hzip.cxx 2017-09-14 13:36:09.462862850 +0300
|
||||
@@ -343,7 +343,7 @@
|
||||
if (!f)
|
||||
return fail("hzip: %s: Permission denied\n", filename);
|
||||
|
||||
- char tmpfiletemplate[] = "/tmp/hunspellXXXXXX";
|
||||
+ char tmpfiletemplate[] = "@TERMUX_PREFIX@/tmp/hunspellXXXXXX";
|
||||
mode_t mask = umask(S_IXUSR | S_IRWXG | S_IRWXO);
|
||||
int tempfileno = mkstemp(tmpfiletemplate);
|
||||
umask(mask);
|
Loading…
Reference in New Issue