mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 08:33:51 +02:00
gsoap: fix musl
This commit is contained in:
parent
5285a3ebb7
commit
35b97a8184
2 changed files with 30 additions and 0 deletions
22
srcpkgs/gsoap/patches/fix-musl-again.patch
Normal file
22
srcpkgs/gsoap/patches/fix-musl-again.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- gsoap/stdsoap2.c.orig 2017-05-22 20:36:36.124570820 -0400
|
||||||
|
+++ gsoap/stdsoap2.c 2017-05-22 20:36:52.229856096 -0400
|
||||||
|
@@ -4395,7 +4395,7 @@
|
||||||
|
return soap->error = SOAP_EOM;
|
||||||
|
return SOAP_OK;
|
||||||
|
}
|
||||||
|
-#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__)
|
||||||
|
+#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) || defined(LINUX)
|
||||||
|
if (gethostbyname_r(addr, &hostent, soap->buf, sizeof(soap->buf), &host, &soap->errnum) < 0)
|
||||||
|
host = NULL;
|
||||||
|
#elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R))
|
||||||
|
--- gsoap/stdsoap2.cpp 2017-05-22 20:43:17.974688879 -0400
|
||||||
|
+++ gsoap/stdsoap2.cpp.orig 2017-04-07 14:39:02.000000000 -0400
|
||||||
|
@@ -4395,7 +4395,7 @@
|
||||||
|
return soap->error = SOAP_EOM;
|
||||||
|
return SOAP_OK;
|
||||||
|
}
|
||||||
|
-#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__)
|
||||||
|
+#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) || defined(LINUX)
|
||||||
|
if (gethostbyname_r(addr, &hostent, soap->buf, sizeof(soap->buf), &host, &soap->errnum) < 0)
|
||||||
|
host = NULL;
|
||||||
|
#elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R))
|
|
@ -1,3 +1,11 @@
|
||||||
|
With thanks to alpine.
|
||||||
|
https://git.alpinelinux.org/cgit/aports/tree/community/gsoap/musl-fixes.patch
|
||||||
|
|
||||||
|
The first patch I think should not be necessary, but is because the same source
|
||||||
|
file defines _GNU_SOURCE if gnu-linux and !defined(_GNU_SOURCE) (go read the
|
||||||
|
code, it's the first two places _GNU_SOURCE is used in gsoap/stdsoap2.cpp).
|
||||||
|
I don't know why, but it seems wrong to me.
|
||||||
|
|
||||||
--- ./gsoap/stdsoap2.cpp.orig
|
--- ./gsoap/stdsoap2.cpp.orig
|
||||||
+++ ./gsoap/stdsoap2.cpp
|
+++ ./gsoap/stdsoap2.cpp
|
||||||
@@ -18691,7 +18691,7 @@
|
@@ -18691,7 +18691,7 @@
|
Loading…
Add table
Reference in a new issue