From 387da89aa4a578130f78051d610cdb6d6fd10e8c45fc88d98c07a1bef0653a9d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 15 Jan 2015 20:48:47 +0000 Subject: [PATCH] Add gsoap-mindeflateratio.diff OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gsoap?expand=0&rev=37 --- gsoap-mindeflateratio.diff | 15 +++++++++++++++ gsoap.changes | 1 + gsoap.spec | 8 ++------ 3 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 gsoap-mindeflateratio.diff diff --git a/gsoap-mindeflateratio.diff b/gsoap-mindeflateratio.diff new file mode 100644 index 0000000..c7ad5f2 --- /dev/null +++ b/gsoap-mindeflateratio.diff @@ -0,0 +1,15 @@ + +gsoap has a weird "protection": if content is compressed too well, +it is considered evil and dropped. + +--- gsoap-2.8.orig/gsoap/stdsoap2.h ++++ gsoap-2.8/gsoap/stdsoap2.h +@@ -1142,7 +1142,7 @@ + Trust when compressed / deflated > SOAP_MINDEFLATERATIO + */ + #ifndef SOAP_MINDEFLATERATIO +-# define SOAP_MINDEFLATERATIO (0.1) /* ratio of deflated/inflated > 10% */ ++# define SOAP_MINDEFLATERATIO (0.0) /* ratio of deflated/inflated > 10% */ + #endif + + #ifdef VXWORKS diff --git a/gsoap.changes b/gsoap.changes index 564f028..d817996 100644 --- a/gsoap.changes +++ b/gsoap.changes @@ -15,6 +15,7 @@ Thu Jan 15 18:34:35 UTC 2015 - jengelh@inai.de UTF8 content that is outside the allowed range of XML 1.0. - Remove gsoap-05-ipv6.diff, gsoap-06-ipv6retry.diff (merged upstream) +- Add gsoap-mindeflateratio.diff ------------------------------------------------------------------- Sun Aug 3 23:16:48 UTC 2014 - jengelh@inai.de diff --git a/gsoap.spec b/gsoap.spec index 48af168..b8cd2c2 100644 --- a/gsoap.spec +++ b/gsoap.spec @@ -31,6 +31,7 @@ Source2: sanitize_source.sh Patch13: gsoap-automake1_13.diff Patch1: gsoap-01-sharedlibs.diff Patch2: gsoap-02-typepuns.diff +Patch3: gsoap-mindeflateratio.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -89,14 +90,9 @@ This package contains the include headers and development library symlinks for libgsoap. %prep -%if 0%{?__xz:1} %setup -q -%else -tar -xf "%{S:0}" --use=xz; -%setup -DTq -%endif cmp gsoap/stdsoap2.cpp gsoap/stdsoap2.c -%patch -P 13 -P 1 -P 2 -p1 +%patch -P 13 -P 1 -P 2 -P 3 -p1 cp gsoap/stdsoap2.cpp gsoap/stdsoap2.c %build