commit:     71ac541cf20d25f77345883ac31669b6505fd1b0
Author:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  4 18:56:45 2017 +0000
Commit:     Alon Bar-Lev <alonbl <AT> gentoo <DOT> org>
CommitDate: Wed Oct  4 18:57:28 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71ac541c

dev-libs/botan: add missing limits.h

Gentoo-Bug: 633468
Thanks: toralf

Package-Manager: Portage-2.3.8, Repoman-2.3.1

 dev-libs/botan/botan-2.3.0.ebuild            |  4 ++++
 dev-libs/botan/files/botan-2.3.0-build.patch | 22 ++++++++++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/dev-libs/botan/botan-2.3.0.ebuild 
b/dev-libs/botan/botan-2.3.0.ebuild
index c2cd637870d..0891fa18daf 100644
--- a/dev-libs/botan/botan-2.3.0.ebuild
+++ b/dev-libs/botan/botan-2.3.0.ebuild
@@ -33,6 +33,10 @@ DEPEND="${RDEPEND}
        dev-lang/python:*
        doc? ( dev-python/sphinx )"
 
+PATCHES=(
+       "${FILESDIR}/${P}-build.patch"
+)
+
 src_prepare() {
        default
        use doc || sed \

diff --git a/dev-libs/botan/files/botan-2.3.0-build.patch 
b/dev-libs/botan/files/botan-2.3.0-build.patch
new file mode 100644
index 00000000000..b4d4ca6e694
--- /dev/null
+++ b/dev-libs/botan/files/botan-2.3.0-build.patch
@@ -0,0 +1,22 @@
+From 9e28eac720176ecb9b784510d352aa0ac38d0b56 Mon Sep 17 00:00:00 2001
+From: Jack Lloyd <[email protected]>
+Date: Wed, 4 Oct 2017 13:59:21 -0400
+Subject: [PATCH] Add limits.h header for INT_MAX
+
+Gentoo bug https://bugs.gentoo.org/633468
+---
+ src/lib/prov/openssl/openssl_mode.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/lib/prov/openssl/openssl_mode.cpp 
b/src/lib/prov/openssl/openssl_mode.cpp
+index 9580bc9c5..fabaccb18 100644
+--- a/src/lib/prov/openssl/openssl_mode.cpp
++++ b/src/lib/prov/openssl/openssl_mode.cpp
+@@ -10,6 +10,7 @@
+ #include <botan/internal/rounding.h>
+ #include <botan/internal/openssl.h>
+ #include <openssl/evp.h>
++#include <limits.h>
+ 
+ namespace Botan {
+ 

Reply via email to