- Add gsoap-02-accept.diff

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gsoap?expand=0&rev=82
This commit is contained in:
Jan Engelhardt 2017-01-24 11:07:12 +00:00 committed by Git OBS Bridge
parent 6ed0b092ae
commit 04ddc989a9
3 changed files with 33 additions and 2 deletions

24
gsoap-02-accept.diff Normal file
View File

@ -0,0 +1,24 @@
From: Jan Engelhardt <jengelh@inai.de>
Date: 2017-01-24 10:28:48.315550326 +0100
Undo change introduced in 2.8.41 which closes connections
at the time of accept(2).
References: https://sourceforge.net/p/gsoap2/bugs/1095/
---
gsoap/stdsoap2.cpp | 2 --
1 file changed, 2 deletions(-)
Index: gsoap-2.8.41/gsoap/stdsoap2.cpp
===================================================================
--- gsoap-2.8.41.orig/gsoap/stdsoap2.cpp
+++ gsoap-2.8.41/gsoap/stdsoap2.cpp
@@ -5798,8 +5798,6 @@ soap_accept(struct soap *soap)
#endif
soap->error = SOAP_OK;
memset((void*)&soap->peer, 0, sizeof(soap->peer));
- if (soap_valid_socket(soap->socket) && !(soap->omode & SOAP_IO_UDP))
- soap->fclosesocket(soap, soap->socket);
soap->socket = SOAP_INVALID_SOCKET;
soap->errmode = 0;
soap->keep_alive = 0;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jan 24 09:29:04 UTC 2017 - jengelh@inai.de
- Add gsoap-02-accept.diff
-------------------------------------------------------------------
Thu Jan 19 09:06:14 UTC 2017 - jengelh@inai.de

View File

@ -25,11 +25,11 @@ License: SUSE-GPL-2.0+-with-openssl-exception
Group: Development/Libraries/C and C++
Url: http://www.genivia.com/dev.html
#DL-URL: http://downloads.sf.net/gsoap2/gsoap_2.8.36.zip
Source: gsoap-%version.tar.xz
Source2: sanitize_source.sh
Patch1: gsoap-automake1_13.diff
Patch2: gsoap-01-sharedlibs.diff
Patch3: gsoap-02-accept.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
@ -84,7 +84,7 @@ available or under development.
%prep
%setup -q
cmp gsoap/stdsoap2.cpp gsoap/stdsoap2.c
%patch -P 1 -P 2 -p1
%patch -P 1 -P 2 -P 3 -p1
ln -fs stdsoap2.cpp gsoap/stdsoap2.c
%build
@ -96,6 +96,8 @@ perl -i -lpe 's{AC_INIT\(gsoap, 2.8\)}{AC_INIT([gsoap], [%version])}' \
# Also needed because Makefile.am and configure.ac are touched.
autoreconf -fi
export CFLAGS="-O0 -ggdb3"
export CXXFLAGS="-O0 -ggdb3"
%configure --enable-ipv6 --disable-static
pushd gsoap/src/
# build prerequisites for parallel build first