- Add revert-z.diff to counter a regression in handling the
soapcpp2 "-z" option introduced in 2.8.89. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gsoap?expand=0&rev=176
This commit is contained in:
parent
532962529a
commit
116e149486
@ -3,6 +3,8 @@ Wed Aug 14 18:19:03 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
|||||||
|
|
||||||
- Update to new upstream release 2.8.90
|
- Update to new upstream release 2.8.90
|
||||||
* Internal changes related to gsoap's own build only.
|
* Internal changes related to gsoap's own build only.
|
||||||
|
- Add revert-z.diff to counter a regression in handling the
|
||||||
|
soapcpp2 "-z" option introduced in 2.8.89.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Aug 11 13:33:42 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
Sun Aug 11 13:33:42 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
@ -29,6 +29,7 @@ Source: gsoap-%version.tar.xz
|
|||||||
Source2: sanitize_source.sh
|
Source2: sanitize_source.sh
|
||||||
Patch1: gsoap-automake1_13.diff
|
Patch1: gsoap-automake1_13.diff
|
||||||
Patch2: gsoap-01-sharedlibs.diff
|
Patch2: gsoap-01-sharedlibs.diff
|
||||||
|
Patch3: revert-z.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -83,7 +84,7 @@ This subpackage contains the documentation for the gSOAP toolkit.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
cmp gsoap/stdsoap2.cpp gsoap/stdsoap2.c
|
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
|
ln -fs stdsoap2.cpp gsoap/stdsoap2.c
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
33
revert-z.diff
Normal file
33
revert-z.diff
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From: Jan Engelhardt <jengelh@inai.de>
|
||||||
|
Upstream: https://sourceforge.net/p/gsoap2/bugs/1253/
|
||||||
|
|
||||||
|
Revert broken code change in 2.8.89 that ignores all -z options.
|
||||||
|
|
||||||
|
diff --git a/gsoap/src/soapcpp2.c b/gsoap/src/soapcpp2.c
|
||||||
|
index 34ca6fce..3a92e297 100644
|
||||||
|
--- a/gsoap/src/soapcpp2.c
|
||||||
|
+++ b/gsoap/src/soapcpp2.c
|
||||||
|
@@ -356,22 +356,15 @@ infile header file to parse (if none reads stdin)\n\
|
||||||
|
vflag = 1;
|
||||||
|
break;
|
||||||
|
case 'z':
|
||||||
|
- {
|
||||||
|
- int z = zflag;
|
||||||
|
a++;
|
||||||
|
- if (zflag)
|
||||||
|
- fprintf(stderr, "soapcpp2: Option -z specified twice\n");
|
||||||
|
g = 0;
|
||||||
|
if (*a)
|
||||||
|
zflag = *a - '0';
|
||||||
|
else if (i < argc && argv[++i])
|
||||||
|
zflag = *argv[i] - '0';
|
||||||
|
else
|
||||||
|
- execerror("Option -z requires an argument");
|
||||||
|
- if (zflag == 0 || z < zflag)
|
||||||
|
- zflag = z;
|
||||||
|
+ execerror("Option -z requires a digit");
|
||||||
|
break;
|
||||||
|
- }
|
||||||
|
default:
|
||||||
|
fprintf(stderr, "soapcpp2: Unknown option %s\n", a);
|
||||||
|
exit(1);
|
Loading…
Reference in New Issue
Block a user