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