From 16e218cddc69b36143e2b6bfdc482cf33bb68a02 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Fri, 29 Sep 2017 13:32:34 -0300 Subject: [PATCH] sqlcipher: update to 3.4.1. Closes: #7875 [via git-merge-pr] --- srcpkgs/sqlcipher/patches/fix-libressl.patch | 11 +++++++++++ srcpkgs/sqlcipher/template | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/sqlcipher/patches/fix-libressl.patch diff --git a/srcpkgs/sqlcipher/patches/fix-libressl.patch b/srcpkgs/sqlcipher/patches/fix-libressl.patch new file mode 100644 index 00000000000..6b779279fd7 --- /dev/null +++ b/srcpkgs/sqlcipher/patches/fix-libressl.patch @@ -0,0 +1,11 @@ +--- src/crypto_openssl.c ++++ src/crypto_openssl.c +@@ -46,7 +46,7 @@ static unsigned int openssl_external_init = 0; + static unsigned int openssl_init_count = 0; + static sqlite3_mutex* openssl_rand_mutex = NULL; + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + 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 4b27a2818a3..88c44557a43 100644 --- a/srcpkgs/sqlcipher/template +++ b/srcpkgs/sqlcipher/template @@ -1,7 +1,7 @@ # Template file for 'sqlcipher' pkgname=sqlcipher -version=3.4.0 -revision=4 +version=3.4.1 +revision=1 build_style=gnu-configure configure_args="--enable-tempstore=yes" hostmakedepends="tcl" @@ -11,7 +11,7 @@ maintainer="Steve Prybylski " license="3-clause-BSD" homepage="https://www.zetetic.net/sqlcipher/" distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz" -checksum=99b702ecf796de02bf7b7b35de4ceef145f0d62b4467a86707c2d59beea243d0 +checksum=4172cc6e5a79d36e178d36bd5cc467a938e08368952659bcd95eccbaf0fa4ad4 CFLAGS="-DSQLITE_HAS_CODEC" post_install() {