diff --git a/srcpkgs/sqlcipher/patches/fix-libressl-2.7.patch b/srcpkgs/sqlcipher/patches/fix-libressl-2.7.patch new file mode 100644 index 00000000000..9dfd7ffe938 --- /dev/null +++ b/srcpkgs/sqlcipher/patches/fix-libressl-2.7.patch @@ -0,0 +1,12 @@ +--- src/crypto_openssl.c.orig 2018-04-23 19:52:51.654950856 +0200 ++++ src/crypto_openssl.c 2018-04-23 19:54:16.786079484 +0200 +@@ -47,7 +47,8 @@ static unsigned int openssl_external_ini + static unsigned int openssl_init_count = 0; + static sqlite3_mutex* openssl_rand_mutex = NULL; + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ ++ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL) + static HMAC_CTX *HMAC_CTX_new(void) + { + HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx)); diff --git a/srcpkgs/sqlcipher/template b/srcpkgs/sqlcipher/template index c2c76682b59..636c47a9038 100644 --- a/srcpkgs/sqlcipher/template +++ b/srcpkgs/sqlcipher/template @@ -1,7 +1,7 @@ # Template file for 'sqlcipher' pkgname=sqlcipher version=3.4.2 -revision=2 +revision=3 build_style=gnu-configure configure_args="--enable-tempstore=yes" hostmakedepends="tcl"