From 5f860d264d29ba331b0e44d1c72d7f48ba488ec0 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Tue, 18 Apr 2017 12:35:18 +0200 Subject: [PATCH] litecoin: update to 0.13.2.1. --- srcpkgs/litecoin/patches/fix-libressl.patch | 20 ++++++++++++++++++++ srcpkgs/litecoin/template | 10 ++++------ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 srcpkgs/litecoin/patches/fix-libressl.patch diff --git a/srcpkgs/litecoin/patches/fix-libressl.patch b/srcpkgs/litecoin/patches/fix-libressl.patch new file mode 100644 index 00000000000..4687ef9622a --- /dev/null +++ b/srcpkgs/litecoin/patches/fix-libressl.patch @@ -0,0 +1,20 @@ +--- src/qt/paymentrequestplus.cpp.orig 2017-04-18 12:28:33.789257513 +0200 ++++ src/qt/paymentrequestplus.cpp 2017-04-18 12:29:01.597171846 +0200 +@@ -159,7 +159,7 @@ bool PaymentRequestPlus::getMerchant(X50 + std::string data_to_verify; // Everything but the signature + rcopy.SerializeToString(&data_to_verify); + +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L ++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) + EVP_MD_CTX *ctx = EVP_MD_CTX_new(); + if (!ctx) throw SSLVerifyError("Error allocating OpenSSL context."); + #else +@@ -174,7 +174,7 @@ bool PaymentRequestPlus::getMerchant(X50 + !EVP_VerifyFinal(ctx, (const unsigned char*)paymentRequest.signature().data(), (unsigned int)paymentRequest.signature().size(), pubkey)) { + throw SSLVerifyError("Bad signature, invalid payment request."); + } +-#if OPENSSL_VERSION_NUMBER >= 0x10100000L ++#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER) + EVP_MD_CTX_free(ctx); + #endif + diff --git a/srcpkgs/litecoin/template b/srcpkgs/litecoin/template index 681234213e2..d9e5a89a598 100644 --- a/srcpkgs/litecoin/template +++ b/srcpkgs/litecoin/template @@ -1,22 +1,20 @@ # Template file for 'litecoin' pkgname=litecoin -version=0.10.4.0 -revision=6 -wrksrc="${pkgname}-${version}" +version=0.13.2.1 +revision=1 build_style=gnu-configure configure_args="--with-incompatible-bdb --with-gui=qt5 --disable-static --disable-tests --with-libressl" hostmakedepends="automake libtool pkg-config yasm" makedepends="zlib-devel db-devel libressl-devel boost-devel - qt5-tools-devel miniupnpc-devel protobuf-devel" + qt5-tools-devel miniupnpc-devel protobuf-devel libevent-devel" short_desc="Peer-to-peer Internet currency based on scrypt cryptography" maintainer="Juan RP " license="MIT" homepage="http://www.litecoin.org/" distfiles="https://github.com/litecoin-project/litecoin/archive/v${version}.tar.gz" -checksum=a9adb6d2ae555afdaa2a5febb81341ac506930cf04ab95b9dc3ab99a4de0405e +checksum=cb07472b32f713bb37ea37cfcc336816a38c8684844c259c89203ed9fe54f85b nocross=yes -broken="https://build.voidlinux.eu/builders/x86_64_builder/builds/2022/steps/shell_3/logs/stdio" pre_configure() { NOCONFIGURE=1 ./autogen.sh