diff options
author | Aaron Bauman <bman@gentoo.org> | 2018-04-19 00:09:12 -0400 |
---|---|---|
committer | Aaron Bauman <bman@gentoo.org> | 2018-04-19 11:24:40 -0400 |
commit | eed65a329604413510d20218ccb91126fe0ce36e (patch) | |
tree | 1d846ddf014787779754b4b63779fb978e70215e /app-arch/libarchive | |
parent | sys-kernel/vanilla-sources: Linux 4.15.18 version bump (diff) | |
download | gentoo-eed65a329604413510d20218ccb91126fe0ce36e.tar.gz gentoo-eed65a329604413510d20218ccb91126fe0ce36e.tar.bz2 gentoo-eed65a329604413510d20218ccb91126fe0ce36e.zip |
app-arch/libarchive: compatibility patch update for LibreSSL
This updates the LibreSSL patch to fix building with
dev-libs/libressl-2.7.x. This is a build fix so do not rev bump.
Package-Manager: Portage-2.3.29, Repoman-2.3.9
Closes: https://github.com/gentoo/gentoo/pull/8063
Diffstat (limited to 'app-arch/libarchive')
-rw-r--r-- | app-arch/libarchive/files/libarchive-3.3.1-libressl.patch | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/app-arch/libarchive/files/libarchive-3.3.1-libressl.patch b/app-arch/libarchive/files/libarchive-3.3.1-libressl.patch index 8078bc09210d..7ee48d4e5f50 100644 --- a/app-arch/libarchive/files/libarchive-3.3.1-libressl.patch +++ b/app-arch/libarchive/files/libarchive-3.3.1-libressl.patch @@ -1,22 +1,25 @@ ---- a/libarchive/archive_openssl_evp_private.h -+++ b/libarchive/archive_openssl_evp_private.h -@@ -28,7 +28,7 @@ +--- a/libarchive/archive_openssl_evp_private.h 2017-01-29 05:06:27.000000000 +0000 ++++ b/libarchive/archive_openssl_evp_private.h 2018-04-19 04:00:14.061922747 +0000 +@@ -28,7 +28,8 @@ #include <openssl/evp.h> #include <openssl/opensslv.h> - + -#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ ++(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) #include <stdlib.h> /* malloc, free */ #include <string.h> /* memset */ static inline EVP_MD_CTX *EVP_MD_CTX_new(void) ---- a/libarchive/archive_openssl_hmac_private.h -+++ b/libarchive/archive_openssl_hmac_private.h -@@ -28,7 +28,7 @@ + +--- a/libarchive/archive_openssl_hmac_private.h 2017-01-29 05:06:27.000000000 +0000 ++++ b/libarchive/archive_openssl_hmac_private.h 2018-04-19 04:02:18.309167446 +0000 +@@ -28,7 +28,8 @@ #include <openssl/hmac.h> #include <openssl/opensslv.h> -#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ ++(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) #include <stdlib.h> /* malloc, free */ #include <string.h> /* memset */ static inline HMAC_CTX *HMAC_CTX_new(void) |