From 28daed5a50defadb3461e525925c33b1116af532 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 15 Jan 2017 20:13:07 +0100 Subject: [PATCH] gsoap: update to 2.8.41. --- srcpkgs/gsoap/patches/fix-libressl.patch | 43 ++++++++++++++++++++++++ srcpkgs/gsoap/template | 4 +-- 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/gsoap/patches/fix-libressl.patch diff --git a/srcpkgs/gsoap/patches/fix-libressl.patch b/srcpkgs/gsoap/patches/fix-libressl.patch new file mode 100644 index 00000000000..a8bdfb6e370 --- /dev/null +++ b/srcpkgs/gsoap/patches/fix-libressl.patch @@ -0,0 +1,43 @@ +--- gsoap/plugin/smdevp.c.orig 2017-01-15 20:09:56.876555589 +0100 ++++ gsoap/plugin/smdevp.c 2017-01-15 20:10:50.012509531 +0100 +@@ -306,6 +306,40 @@ the digest or signature produced. + extern "C" { + #endif + ++#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined (LIBRESSL_VERSION_NUMBER) ++static EVP_MD_CTX *EVP_MD_CTX_new(void) ++{ ++ EVP_MD_CTX *ctx = (EVP_MD_CTX *)malloc(sizeof(*ctx)); ++ if (ctx != NULL) ++ EVP_MD_CTX_init(ctx); ++ return ctx; ++} ++ ++static void EVP_MD_CTX_free(EVP_MD_CTX *ctx) ++{ ++ if (ctx != NULL) { ++ EVP_MD_CTX_cleanup(ctx); ++ free(ctx); ++ } ++} ++ ++static HMAC_CTX *HMAC_CTX_new(void) ++{ ++ HMAC_CTX *ctx = (HMAC_CTX *)malloc(sizeof(*ctx)); ++ if (ctx != NULL) ++ HMAC_CTX_init(ctx); ++ return ctx; ++} ++ ++static void HMAC_CTX_free(HMAC_CTX *ctx) ++{ ++ if (ctx != NULL) { ++ HMAC_CTX_cleanup(ctx); ++ free(ctx); ++ } ++} ++#endif ++ + /******************************************************************************\ + * + * Static protos diff --git a/srcpkgs/gsoap/template b/srcpkgs/gsoap/template index a157f958426..4c6ccc834d2 100644 --- a/srcpkgs/gsoap/template +++ b/srcpkgs/gsoap/template @@ -1,6 +1,6 @@ # Template file for 'gsoap' pkgname=gsoap -version=2.8.40 +version=2.8.41 revision=1 build_style=gnu-configure hostmakedepends="unzip flex autoconf" @@ -13,7 +13,7 @@ maintainer="Enno Boland " license="GPL-3" homepage="http://www.cs.fsu.edu/~engelen/soap.html" distfiles="${SOURCEFORGE_SITE}/gsoap2/gsoap_${version}.zip" -checksum=54ef56d9c55a6a7a00ae57f8cb0b3266af1b26e623070be2ef20833626157f77 +checksum=72336c1d9a7989d05dba94d1f88753242705027ebcfc5dcea72fd094cefe4c80 wrksrc="${pkgname}-${version%.*}" disable_parallel_build=yes