New version of xapian 1.4.22

Fix #599
This commit is contained in:
Matthieu Gautier 2023-04-25 14:38:13 +02:00
parent 5bb67d7ebb
commit 5ef7e2a017
3 changed files with 25 additions and 4 deletions

View File

@ -12,8 +12,9 @@ class Xapian(Dependency):
name = "xapian-core"
class Source(ReleaseDownload):
archive = Remotefile('xapian-core-1.4.18.tar.xz',
'196ddbb4ad10450100f0991a599e4ed944cbad92e4a6fe813be6dce160244b77')
archive = Remotefile('xapian-core-1.4.22.tar.xz',
'05884af00b06702ce486057d62a3bfbe6606cf965ada0f5ea570b328a2fa1ea8')
patches = ['xapian_win32.patch']
class Builder(MakeBuilder):
configure_option = "--disable-sse --disable-backend-chert --disable-backend-remote --disable-documentation"

View File

@ -0,0 +1,20 @@
diff '--color=auto' -ur xapian-core-1.4.22/common/safesyssocket.h xapian-core-1.4.22.patched/common/safesyssocket.h
--- xapian-core-1.4.22/common/safesyssocket.h 2023-02-02 02:00:40.000000000 +0100
+++ xapian-core-1.4.22.patched/common/safesyssocket.h 2023-04-25 15:46:52.228256033 +0200
@@ -27,6 +27,7 @@
# include <sys/socket.h>
#else
# include "safewinsock2.h"
+# include <ws2tcpip.h>
#endif
#ifdef __WIN32__
@@ -64,7 +65,7 @@
# endif
# define socket(D,T,P) socket_(D,T,P)
-inline int accept_(int sockfd, struct sockaddr* addr, SOCKLEN_T* addrlen) {
+inline int accept_(int sockfd, struct sockaddr* addr, socklen_t* addrlen) {
// Winsock2's accept() returns the unsigned type SOCKET, which is a 32-bit
// type for WIN32 and a 64-bit type for WIN64.
//

View File

@ -39,7 +39,7 @@ release_versions = {
# This is the "version" of the whole base_deps_versions dict.
# Change this when you change base_deps_versions.
base_deps_meta_version = '84'
base_deps_meta_version = '85'
base_deps_versions = {
'zlib' : '1.2.12',
@ -47,7 +47,7 @@ base_deps_versions = {
'zstd' : '1.5.2',
'docoptcpp' : '0.6.2',
'uuid' : '1.43.4',
'xapian-core' : '1.4.18',
'xapian-core' : '1.4.22',
'mustache' : '4.1',
'pugixml' : '1.2',
'libmicrohttpd' : '0.9.76',