Add a patch to allow compilation of xapian on android.

This commit is contained in:
Matthieu Gautier 2019-02-18 17:02:05 +01:00
parent 5a404438f7
commit f2c3a8a4f6
2 changed files with 15 additions and 1 deletions

View File

@ -14,7 +14,10 @@ class Xapian(Dependency):
class Source(ReleaseDownload): class Source(ReleaseDownload):
archive = Remotefile('xapian-core-1.4.10.tar.xz', archive = Remotefile('xapian-core-1.4.10.tar.xz',
'68669327e08544ac88fe3473745dbcae4e8e98d5060b436c4d566f1f78709bb8') '68669327e08544ac88fe3473745dbcae4e8e98d5060b436c4d566f1f78709bb8')
patches = ['xapian_sys_types.patch'] patches = [
'xapian_sys_types.patch',
'xapian_fix_include_errno.patch'
]
class Builder(MakeBuilder): class Builder(MakeBuilder):
configure_option = "--disable-sse --disable-backend-chert --disable-backend-inmemory --disable-documentation" configure_option = "--disable-sse --disable-backend-chert --disable-backend-inmemory --disable-documentation"

View File

@ -0,0 +1,11 @@
diff -ur xapian-core-1.4.10/examples/xapian-pos.cc xapian-core-1.4.10.patched/examples/xapian-pos.cc
--- xapian-core-1.4.10/examples/xapian-pos.cc 2019-02-11 22:27:21.000000000 +0100
+++ xapian-core-1.4.10.patched/examples/xapian-pos.cc 2019-02-18 16:43:08.593354559 +0100
@@ -29,6 +29,7 @@
#include <algorithm>
#include <cstdlib>
#include <limits>
+#include <errno.h>
#include "gnu_getopt.h"
#include "stringutils.h"