Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/gsoap/files/, net-libs/gsoap/
Date: Sun, 21 Oct 2018 12:56:08
Message-Id: 1540126545.c8c89629974ddf0fd9acee9909891f5e9315414b.polynomial-c@gentoo
1 commit: c8c89629974ddf0fd9acee9909891f5e9315414b
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 21 12:54:22 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 21 12:55:45 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8c89629
7
8 net-libs/gsoap: Security cleanup.
9
10 Bug: https://bugs.gentoo.org/652734
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 net-libs/gsoap/Manifest | 1 -
15 .../gsoap/files/gsoap-2.7.40-shared_libs.patch | 146 ---------------------
16 .../gsoap-2.8.51-libressl-2.6-compatibility.patch | 38 ------
17 net-libs/gsoap/gsoap-2.8.51.ebuild | 85 ------------
18 4 files changed, 270 deletions(-)
19
20 diff --git a/net-libs/gsoap/Manifest b/net-libs/gsoap/Manifest
21 index 4f4b700c0dc..b979c4d84af 100644
22 --- a/net-libs/gsoap/Manifest
23 +++ b/net-libs/gsoap/Manifest
24 @@ -1,3 +1,2 @@
25 -DIST gsoap_2.8.51.zip 34505931 BLAKE2B 6f2d6ee2bd405054dc75105f42f6edeaa2300f1e7e6bea15f9e8f0dfcc2df56b36cddfc8f0a038b029f36a6dd1fd63f39eadb8d7f363335344eb142ec27be726 SHA512 491e31ce6be02c577b6184335672a0805e2287418a7e26d9b0f009aab8af462ddef7d7a1893dc867db5362c5f2a1e0022d0a45865d81e43286ce16c649da6910
26 DIST gsoap_2.8.63.zip 32985252 BLAKE2B 6bedf06a98701dd63c13e805f865c3b84cae8c498a9ec1c4dd062e191f217c56cf9667046c5fbf0b33d94c5500e2eb4746eefa7cc909398a8ad891f2cb33e357 SHA512 1941aba9c4a7d5e57e8b8f4f2183ee3c24a9a5c3e93caedfd27a13cbc625dc06e3114f850f0dcddb87dd436a997e1157fb2c6fb20c28f1b0675e634c3d489d96
27 DIST gsoap_2.8.70.zip 32695627 BLAKE2B 6d803441804badf06b29cee8ca898dc864b9a0388f6f3fa58b84c1b237d77e22ab70e0cc5439915c715bdba7831b14f86d8003e1338b6184ddbfe845bb76ff75 SHA512 f7e9f85580c19bb390f1310bb47b690a5788b54c1e12c6fc0d9166039a84ae24ec5d3268cb67cd72b20e2eaa78689e175b975f07da44fd20e172a77ef37f4ae7
28
29 diff --git a/net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch b/net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch
30 deleted file mode 100644
31 index 829e0e45a58..00000000000
32 --- a/net-libs/gsoap/files/gsoap-2.7.40-shared_libs.patch
33 +++ /dev/null
34 @@ -1,146 +0,0 @@
35 -diff -Naur a/configure.ac b/configure.ac
36 ---- a/configure.ac 2016-12-11 04:12:26.000000000 +0000
37 -+++ b/configure.ac 2017-01-10 13:41:24.743162628 +0000
38 -@@ -17,7 +17,7 @@
39 - AC_PROG_YACC
40 - AC_PROG_CPP
41 - AC_PROG_RANLIB
42 --#AM_PROG_LIBTOOL
43 -+AM_PROG_LIBTOOL
44 - AC_PROG_LN_S
45 - AC_PROG_AWK
46 - AC_PROG_INSTALL
47 -@@ -242,16 +242,18 @@
48 - WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} -lgnutls -lgcrypt -lgpg-error -lz"
49 - SAMPLE_INCLUDES=
50 - SAMPLE_SSL_LIBS="-lgnutls -lgcrypt -lgpg-error -lz"
51 -- WSDL2H_SOAP_CPP_LIB="libgsoapssl++.a"
52 -+ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
53 -+ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
54 - else
55 - AC_MSG_RESULT(no)
56 - WSDL2H_EXTRA_FLAGS="-DWITH_OPENSSL -DWITH_GZIP"
57 - # an ugly hack to get httpda and smdevp plugins to conditionally
58 - # compile with wsdl2h when OPENSSL is available
59 -- WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} ../plugin/httpda.c ../plugin/smdevp.c ../plugin/threads.c -lssl -lcrypto -lz"
60 -+ WSDL2H_EXTRA_LIBS="${WSDL2H_EXTRA_LIBS} ../plugin/httpda.c ../plugin/smdevp.c ../plugin/threads.c -lcrypto"
61 - SAMPLE_INCLUDES=
62 - SAMPLE_SSL_LIBS="-lssl -lcrypto -lz"
63 -- WSDL2H_SOAP_CPP_LIB="libgsoapssl++.a"
64 -+ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
65 -+ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
66 - fi
67 - if test -n "$ZLIB"; then
68 - WSDL2H_EXTRA_FLAGS="-I${ZLIB}/include ${WSDL2H_EXTRA_FLAGS}"
69 -@@ -270,13 +272,15 @@
70 - WSDL2H_EXTRA_FLAGS=
71 - SAMPLE_SSL_LIBS=
72 - SAMPLE_INCLUDES=
73 -- WSDL2H_SOAP_CPP_LIB="libgsoap++.a"
74 -+ WSDL2H_SOAP_CPP_STATIC_LIB="libgsoapssl++.a"
75 -+ WSDL2H_SOAP_CPP_SHARED_LIB="libgsoapssl++.la"
76 - fi
77 - AC_SUBST(WSDL2H_EXTRA_FLAGS)
78 - AC_SUBST(WSDL2H_EXTRA_LIBS)
79 - AC_SUBST(SAMPLE_INCLUDES)
80 - AC_SUBST(SAMPLE_SSL_LIBS)
81 --AC_SUBST(WSDL2H_SOAP_CPP_LIB)
82 -+AC_SUBST(WSDL2H_SOAP_CPP_SHARED_LIB)
83 -+AC_SUBST(WSDL2H_SOAP_CPP_STATIC_LIB)
84 -
85 - # enable the compile of the samples
86 - AC_ARG_ENABLE(samples,
87 -diff -Naur a/gsoap/Makefile.am b/gsoap/Makefile.am
88 ---- a/gsoap/Makefile.am 2016-12-11 04:12:27.000000000 +0000
89 -+++ b/gsoap/Makefile.am 2017-01-10 13:41:36.487140423 +0000
90 -@@ -49,6 +49,29 @@
91 - libgsoapssl___a_SOURCES = stdsoap2_ssl_cpp.cpp dom_cpp.cpp
92 - libgsoapssl___a_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
93 -
94 -+lib_LTLIBRARIES = libgsoap.la libgsoap++.la libgsoapck.la libgsoapck++.la libgsoapssl.la libgsoapssl++.la
95 -+SOVERSION = 0
96 -+libgsoap_la_SOURCES = stdsoap2.c dom.c
97 -+libgsoap_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform)
98 -+libgsoap_la_LDFLAGS = -version-info $(SOVERSION)
99 -+libgsoap___la_SOURCES = stdsoap2_cpp.cpp dom_cpp.cpp
100 -+libgsoap___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform)
101 -+libgsoap___la_LDFLAGS = -version-info $(SOVERSION)
102 -+libgsoapck_la_SOURCES = stdsoap2_ck.c dom.c
103 -+libgsoapck_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) -DWITH_COOKIES
104 -+libgsoapck_la_LDFLAGS = -version-info $(SOVERSION)
105 -+libgsoapck___la_SOURCES = stdsoap2_ck_cpp.cpp dom_cpp.cpp
106 -+libgsoapck___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) -DWITH_COOKIES
107 -+libgsoapck___la_LDFLAGS = -version-info $(SOVERSION)
108 -+libgsoapssl_la_SOURCES = stdsoap2_ssl.c dom.c
109 -+libgsoapssl_la_CFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
110 -+libgsoapssl_la_LDFLAGS = -version-info $(SOVERSION)
111 -+libgsoapssl_la_LIBADD = -lssl -lcrypto -lz
112 -+libgsoapssl___la_SOURCES = stdsoap2_ssl_cpp.cpp dom_cpp.cpp
113 -+libgsoapssl___la_CXXFLAGS = $(SOAPCPP2_DEBUG) $(SOAPCPP2_NONAMESPACES) $(SOAPCPP2_IPV6) -D$(platform) $(WSDL2H_EXTRA_FLAGS) -DWITH_DOM -DWITH_COOKIES
114 -+libgsoapssl___la_LDFLAGS = -version-info $(SOVERSION)
115 -+libgsoapssl___la_LIBADD = -lssl -lcrypto -lz
116 -+
117 - BUILT_SOURCES = stdsoap2_cpp.cpp dom_cpp.cpp stdsoap2_ck.c stdsoap2_ck_cpp.cpp stdsoap2_ssl.c stdsoap2_ssl_cpp.cpp
118 -
119 - include_HEADERS = stdsoap2.h
120 -diff -Naur a/gsoap/samples/autotest/Makefile.am b/gsoap/samples/autotest/Makefile.am
121 ---- a/gsoap/samples/autotest/Makefile.am 2016-12-11 04:12:27.000000000 +0000
122 -+++ b/gsoap/samples/autotest/Makefile.am 2017-01-10 13:44:39.954389922 +0000
123 -@@ -14,7 +14,7 @@
124 - WSDLINPUT=$(srcdir)/examples.wsdl
125 - SOAPHEADER=$(srcdir)/examples.h
126 - SOAP_CPP_SRC=soapC.cpp soapServer.cpp
127 --SOAP_CPP_LIB=$(top_builddir)/gsoap/libgsoap++.a
128 -+SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/libgsoap++.a
129 -
130 - $(SOAP_CPP_SRC) : $(WSDLINPUT)
131 - $(WSDL) $(WSDL_FLAGS) $(WSDLINPUT)
132 -@@ -40,6 +40,6 @@
133 - autotest_CPPFLAGS=$(C_DEBUG_FLAGS) -D$(platform)
134 - autotest_CXXFLAGS=$(WSDL2H_EXTRA_FLAGS)
135 - autotest_SOURCES=$(SOAP_CPP_SRC) soapTester.cpp duration.cpp long_time.cpp struct_tm.cpp struct_tm_date.cpp
136 --autotest_LDADD=$(SOAP_CPP_LIB) $(SAMPLE_EXTRA_LIBS)
137 -+autotest_LDADD=$(SOAP_CPP_SHARED_LIB) $(SAMPLE_EXTRA_LIBS)
138 -
139 - CLEANFILES= *~ *.h *.cpp *.xml *.log *.nsmap
140 -diff -Naur a/gsoap/samples/databinding/Makefile.am b/gsoap/samples/databinding/Makefile.am
141 ---- a/gsoap/samples/databinding/Makefile.am 2016-12-11 04:12:27.000000000 +0000
142 -+++ b/gsoap/samples/databinding/Makefile.am 2017-01-10 13:43:51.788258087 +0000
143 -@@ -14,7 +14,7 @@
144 - WSDLINPUT=$(srcdir)/address.xsd
145 - SOAPHEADER=$(srcdir)/address.h
146 - SOAP_CPP_SRC=addressC.cpp
147 --SOAP_CPP_LIB=$(top_builddir)/gsoap/libgsoap++.a
148 -+SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/libgsoap++.la
149 -
150 - $(SOAP_CPP_SRC) : $(WSDLINPUT)
151 - $(WSDL) $(WSDL_FLAGS) $(WSDLINPUT)
152 -@@ -28,6 +28,6 @@
153 - address_CPPFLAGS=$(C_DEBUG_FLAGS) -D$(platform)
154 - address_CXXFLAGS=$(WSDL2H_EXTRA_FLAGS)
155 - address_SOURCES=$(SOAP_CPP_SRC) address.cpp
156 --address_LDADD=$(SOAP_CPP_LIB)
157 -+address_LDADD=$(SOAP_CPP_SHARED_LIB)
158 -
159 - CLEANFILES= *~ address.h *C.cpp *H.h *Stub.h *.nsmap
160 -diff -Naur a/gsoap/wsdl/Makefile.am b/gsoap/wsdl/Makefile.am
161 ---- a/gsoap/wsdl/Makefile.am 2016-12-11 04:12:28.000000000 +0000
162 -+++ b/gsoap/wsdl/Makefile.am 2017-01-10 13:42:08.991078959 +0000
163 -@@ -10,7 +10,7 @@
164 - AM_LDFLAGS=-L$(srcdir) -I$(top_srcdir)/gsoap -I$(top_srcdir)/gsoap/plugin
165 - AM_CPPFLAGS=-I$(top_srcdir)/gsoap -I$(top_srcdir)/gsoap/plugin
166 - SOAP=$(top_builddir)/gsoap/src/soapcpp2$(EXEEXT)
167 --SOAP_CPP_LIB=$(top_builddir)/gsoap/$(WSDL2H_SOAP_CPP_LIB)
168 -+SOAP_CPP_SHARED_LIB=$(top_builddir)/gsoap/$(WSDL2H_SOAP_CPP_SHARED_LIB)
169 - SOAP_CPP_SRC=wsdlC.cpp
170 - SOAPHEADER=$(srcdir)/wsdl.h
171 - SOAP_FLAGS=-SC -pwsdl -I$(srcdir) -I$(top_srcdir)/gsoap/import
172 -@@ -29,6 +29,6 @@
173 - wsdl2h_CXXFLAGS=$(C_DEBUG_FLAGS) $(WSDL2H_EXTRA_FLAGS) $(WSDL2H_IMPORTPATH)
174 - wsdl2h_CPPFLAGS=$(AM_CPPFLAGS) $(SOAPCPP2_NONAMESPACES) -D$(platform)
175 - wsdl2h_SOURCES=wsdl2h.cpp wsdl.cpp wadl.cpp schema.cpp types.cpp service.cpp soap.cpp mime.cpp wsp.cpp bpel.cpp $(SOAP_CPP_SRC)
176 --wsdl2h_LDADD=$(SOAP_CPP_LIB) $(WSDL2H_EXTRA_LIBS)
177 -+wsdl2h_LDADD=$(SOAP_CPP_SHARED_LIB) $(WSDL2H_EXTRA_LIBS)
178 -
179 - CLEANFILES= *~ *C.cpp *H.h *Stub.h *.nsmap
180 -
181
182 diff --git a/net-libs/gsoap/files/gsoap-2.8.51-libressl-2.6-compatibility.patch b/net-libs/gsoap/files/gsoap-2.8.51-libressl-2.6-compatibility.patch
183 deleted file mode 100644
184 index 8f13a39d32c..00000000000
185 --- a/net-libs/gsoap/files/gsoap-2.8.51-libressl-2.6-compatibility.patch
186 +++ /dev/null
187 @@ -1,38 +0,0 @@
188 ---- a/gsoap/plugin/smdevp.c 2018-04-20 15:45:25.112658174 +0000
189 -+++ b/gsoap/plugin/smdevp.c 2018-04-20 15:47:58.826360980 +0000
190 -@@ -479,7 +479,7 @@
191 - /* allocate and init the OpenSSL HMAC or EVP_MD context */
192 - if ((alg & SOAP_SMD_ALGO) == SOAP_SMD_HMAC)
193 - {
194 --#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
195 -+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
196 - data->ctx = (void*)SOAP_MALLOC(soap, sizeof(HMAC_CTX));
197 - if (data->ctx)
198 - HMAC_CTX_init((HMAC_CTX*)data->ctx);
199 -@@ -489,7 +489,7 @@
200 - }
201 - else
202 - {
203 --#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
204 -+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
205 - data->ctx = (void*)SOAP_MALLOC(soap, sizeof(EVP_MD_CTX));
206 - if (data->ctx)
207 - EVP_MD_CTX_init((EVP_MD_CTX*)data->ctx);
208 -@@ -642,7 +642,7 @@
209 - *len = (int)n;
210 - }
211 - /* cleanup */
212 --#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
213 -+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
214 - if ((data->alg & SOAP_SMD_ALGO) == SOAP_SMD_HMAC)
215 - HMAC_CTX_cleanup((HMAC_CTX*)data->ctx);
216 - else
217 -@@ -687,7 +687,7 @@
218 - }
219 - if (data->ctx)
220 - {
221 --#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
222 -+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
223 - if ((data->alg & SOAP_SMD_ALGO) == SOAP_SMD_HMAC)
224 - HMAC_CTX_cleanup((HMAC_CTX*)data->ctx);
225 - else
226
227 diff --git a/net-libs/gsoap/gsoap-2.8.51.ebuild b/net-libs/gsoap/gsoap-2.8.51.ebuild
228 deleted file mode 100644
229 index 5dd67d3686f..00000000000
230 --- a/net-libs/gsoap/gsoap-2.8.51.ebuild
231 +++ /dev/null
232 @@ -1,85 +0,0 @@
233 -# Copyright 1999-2018 Gentoo Foundation
234 -# Distributed under the terms of the GNU General Public License v2
235 -
236 -EAPI=6
237 -
238 -inherit autotools eutils
239 -
240 -MY_P="${PN}-2.8"
241 -
242 -DESCRIPTION="A cross-platform open source C and C++ SDK for SOAP/XML Web services"
243 -HOMEPAGE="http://gsoap2.sourceforge.net"
244 -SRC_URI="mirror://sourceforge/gsoap2/gsoap_${PV}.zip"
245 -
246 -LICENSE="GPL-2 gSOAP"
247 -SLOT="0"
248 -KEYWORDS="amd64 x86"
249 -IUSE="doc debug examples ipv6 libressl gnutls +ssl"
250 -
251 -RDEPEND="
252 - sys-libs/zlib
253 - gnutls? ( net-libs/gnutls )
254 - ssl? (
255 - !libressl? ( dev-libs/openssl:0= )
256 - libressl? ( dev-libs/libressl:0= )
257 - )
258 -"
259 -DEPEND="${RDEPEND}
260 - app-arch/unzip
261 - sys-devel/flex
262 - sys-devel/bison
263 -"
264 -
265 -S="${WORKDIR}/${MY_P}"
266 -
267 -src_prepare() {
268 - default
269 -
270 - # Fix Pre-ISO headers
271 - eapply "${FILESDIR}/${PN}-2.7.10-fedora-install_soapcpp2_wsdl2h_aux.patch"
272 -
273 - # enable shared libs https://bugs.gentoo.org/583398
274 - eapply "${FILESDIR}/${PN}-2.7.40-shared_libs.patch"
275 -
276 - # fix building with libressl-2.6.x. This will not be needed when 2.7.x goes stable
277 - eapply "${FILESDIR}/${PN}-2.8.51-libressl-2.6-compatibility.patch"
278 -
279 - eautoreconf
280 -}
281 -
282 -src_configure() {
283 - local myconf=()
284 - use ssl || myconf+=( --disable-ssl )
285 - use gnutls && myconf+=( --enable-gnutls )
286 - use ipv6 && myconf+=( --enable-ipv6 )
287 - econf \
288 - ${myconf[@]} \
289 - $(use_enable debug) \
290 - $(use_enable examples samples)
291 -}
292 -
293 -src_compile() {
294 - emake -j1
295 -}
296 -
297 -src_install() {
298 - emake DESTDIR="${D}" install
299 -
300 - # yes, we also install the license-file since
301 - # it contains info about how to apply the licenses
302 - dodoc *.txt
303 -
304 - dohtml changelog.md
305 -
306 - prune_libtool_files --all
307 -
308 - if use examples; then
309 - rm -rf gsoap/samples/Makefile* gsoap/samples/*/Makefile* gsoap/samples/*/*.o || die
310 - insinto /usr/share/doc/${PF}/examples
311 - doins -r gsoap/samples/*
312 - fi
313 -
314 - if use doc; then
315 - dohtml -r gsoap/doc/*
316 - fi
317 -}