diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-07-21 18:45:11 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-07-21 19:32:07 +0200 |
commit | 19c3e94aa0d6f570381cd5f57e13c0e7925077c0 (patch) | |
tree | d1e68334a312b336906dc17dedfafd6aa0227e8a /dev-libs/libzip | |
parent | app-office/skrooge: 2.23.0 version bump (diff) | |
download | gentoo-19c3e94aa0d6f570381cd5f57e13c0e7925077c0.tar.gz gentoo-19c3e94aa0d6f570381cd5f57e13c0e7925077c0.tar.bz2 gentoo-19c3e94aa0d6f570381cd5f57e13c0e7925077c0.zip |
dev-libs/libzip: Add missing limits.h includes
Thanks-to: Reuben Farrelly <reuben-gentoo-bugzilla@reub.net>
Closes: https://bugs.gentoo.org/733326
Package-Manager: Portage-3.0.0, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/libzip')
-rw-r--r-- | dev-libs/libzip/files/libzip-1.7.3-missing-header.patch | 43 | ||||
-rw-r--r-- | dev-libs/libzip/libzip-1.7.3.ebuild | 2 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-libs/libzip/files/libzip-1.7.3-missing-header.patch b/dev-libs/libzip/files/libzip-1.7.3-missing-header.patch new file mode 100644 index 000000000000..bebe38028414 --- /dev/null +++ b/dev-libs/libzip/files/libzip-1.7.3-missing-header.patch @@ -0,0 +1,43 @@ +From fd89e242d16128dedef08f47d99ae56aa19b0591 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=C3=98rjan=20Malde?= <red@foxi.me> +Date: Wed, 15 Jul 2020 12:16:16 +0200 +Subject: [PATCH] Include limits.h for INT_MAX + +--- + lib/zip_crypto_openssl.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/zip_crypto_openssl.c b/lib/zip_crypto_openssl.c +index 1cb00479..60f92758 100644 +--- a/lib/zip_crypto_openssl.c ++++ b/lib/zip_crypto_openssl.c +@@ -38,6 +38,7 @@ + #include "zip_crypto.h" + + #include <openssl/rand.h> ++#include <limits.h> + + #if OPENSSL_VERSION_NUMBER < 0x1010000fL || defined(LIBRESSL_VERSION_NUMBER) + #define USE_OPENSSL_1_0_API + +From b4a4f778806fe2c3ca9ec57c0411a8dcf462e655 Mon Sep 17 00:00:00 2001 +From: Thomas Klausner <tk@giga.or.at> +Date: Wed, 15 Jul 2020 12:38:07 +0200 +Subject: [PATCH] Include limits.h for INT_MAX. + +--- + lib/zip_crypto_mbedtls.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/lib/zip_crypto_mbedtls.c b/lib/zip_crypto_mbedtls.c +index c348ad2a..7063c6b6 100644 +--- a/lib/zip_crypto_mbedtls.c ++++ b/lib/zip_crypto_mbedtls.c +@@ -41,6 +41,7 @@ + #include <mbedtls/entropy.h> + #include <mbedtls/pkcs5.h> + ++#include <limits.h> + + _zip_crypto_aes_t * + _zip_crypto_aes_new(const zip_uint8_t *key, zip_uint16_t key_size, zip_error_t *error) { diff --git a/dev-libs/libzip/libzip-1.7.3.ebuild b/dev-libs/libzip/libzip-1.7.3.ebuild index 8edc5a80ac6e..1f81a4ee3364 100644 --- a/dev-libs/libzip/libzip-1.7.3.ebuild +++ b/dev-libs/libzip/libzip-1.7.3.ebuild @@ -37,6 +37,8 @@ DEPEND=" " RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}"/${P}-missing-header.patch ) # bug 733326 + pkg_setup() { # Upstream doesn't support building dynamic & static # simultaneously: https://github.com/nih-at/libzip/issues/76 |