commit 0cb8d426e1d7bf34998a23ab0af614c5dbaef58c
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Wed Jan 23 03:45:26 2019 +0000
Fix build of webservice
590355dbdcffa4081c377fd31565e172785b390c.patch | 27 ++++++++++++++++++++++++++
VirtualBox.spec | 11 ++++++++---
2 files changed, 35 insertions(+), 3 deletions(-)
---
diff --git a/590355dbdcffa4081c377fd31565e172785b390c.patch
b/590355dbdcffa4081c377fd31565e172785b390c.patch
new file mode 100644
index 0000000..996ef74
--- /dev/null
+++ b/590355dbdcffa4081c377fd31565e172785b390c.patch
@@ -0,0 +1,27 @@
+From 590355dbdcffa4081c377fd31565e172785b390c Mon Sep 17 00:00:00 2001
+From: vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f>
+Date: Thu, 10 Jan 2019 19:49:43 +0000
+Subject: [PATCH] Main/webservice: fixes, bugref:9329 - the line has to be
+ somewhere.
+
+git-svn-id:
http://www.virtualbox.org/svn/vbox@76761
cfe28804-0f27-0410-a406-dd0f0b0b656f
+---
+ trunk/src/VBox/Main/webservice/vboxweb.cpp | 17 ++++++++++++++++-
+ 1 file changed, 16 insertions(+), 1 deletion(-)
+
+diff --git a/trunk/src/VBox/Main/webservice/vboxweb.cpp
b/trunk/src/VBox/Main/webservice/vboxweb.cpp
+index 3665922a7a..2360f67ca2 100644
+--- a/trunk/src/VBox/Main/webservice/vboxweb.cpp
++++ b/trunk/src/VBox/Main/webservice/vboxweb.cpp
+@@ -616,6 +616,11 @@ void SoapThread::process()
+ // keepalive, otherwise stale connections tie up worker threads.
+ m_soap->send_timeout = 60;
+ m_soap->recv_timeout = 60;
++ // Limit the maximum SOAP request size to a generous amount, just to
++ // be on the safe side (SOAP is quite wordy when representing arrays,
++ // and some API uses need to deal with large arrays). Good that binary
++ // data is no longer represented by byte arrays...
++ m_soap->recv_maxlength = _16M;
+ // process the request; this goes into the COM code in methodmaps.cpp
+ do {
+ #ifdef WITH_OPENSSL
diff --git a/VirtualBox.spec b/VirtualBox.spec
index 62a5131..b2801b0 100644
--- a/VirtualBox.spec
+++ b/VirtualBox.spec
@@ -62,6 +62,7 @@ Patch1: VirtualBox-6.0.0-noupdate.patch
Patch2: VirtualBox-5.1.0-strings.patch
Patch18: VirtualBox-OSE-4.0.2-aiobug.patch
Patch27: VirtualBox-gcc.patch
+Patch29: 590355dbdcffa4081c377fd31565e172785b390c.patch
# from Debian
Patch28: 02-gsoap-build-fix.patch
Patch30: 37-python-3.7-support.patch
@@ -288,9 +289,12 @@ rm -r src/libs/zlib-1.2.8/
%if 0%{?fedora} > 20
%patch28 -p1 -b .gsoap2
%endif
-%patch30 -p1
-%patch32 -p1
-%patch40 -p1
+%if 0%{?fedora} < 28 || 0%{?rhel}
+%patch29 -p2 -R -b .gsoap3
+%endif
+%patch30 -p1 -b .python37
+%patch32 -p1 -b .vnc
+%patch40 -p1 -b .python2_path
# mageia support not ready for 6.0
#patch50 -p1 -b .mageia-support
%patch51 -p1 -b .revert-VBox.sh
@@ -804,6 +808,7 @@ getent passwd vboxadd >/dev/null || \
%changelog
* Wed Jan 23 2019 Sérgio Basto <sergio(a)serjux.com> - 6.0.2-3
- python3 on epel7
+- Fix build of webservice
* Sat Jan 19 2019 Sérgio Basto <sergio(a)serjux.com> - 6.0.2-2
- Patch 61 might be useful on el7