diff --git a/kiwixbuild/dependencies/xapian.py b/kiwixbuild/dependencies/xapian.py index b5e98f0..e70a7ad 100644 --- a/kiwixbuild/dependencies/xapian.py +++ b/kiwixbuild/dependencies/xapian.py @@ -14,7 +14,10 @@ class Xapian(Dependency): class Source(ReleaseDownload): archive = Remotefile('xapian-core-1.4.10.tar.xz', '68669327e08544ac88fe3473745dbcae4e8e98d5060b436c4d566f1f78709bb8') - patches = ['xapian_sys_types.patch'] + patches = [ + 'xapian_sys_types.patch', + 'xapian_fix_include_errno.patch' + ] class Builder(MakeBuilder): configure_option = "--disable-sse --disable-backend-chert --disable-backend-inmemory --disable-documentation" diff --git a/kiwixbuild/patches/xapian_fix_include_errno.patch b/kiwixbuild/patches/xapian_fix_include_errno.patch new file mode 100644 index 0000000..234c324 --- /dev/null +++ b/kiwixbuild/patches/xapian_fix_include_errno.patch @@ -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 + #include + #include ++#include + + #include "gnu_getopt.h" + #include "stringutils.h"