diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2017-06-29 16:39:01 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2017-06-29 16:39:01 -0700 |
commit | e2cfff62965a2d82ceb0e34eaf1d5cb65548af3c (patch) | |
tree | ba4df4276f2a2e997353a667e0d3270d7c29b1d7 /app-arch/libarchive | |
parent | x11-misc/sw-notify-send: Modernize to EAPI=6 (diff) | |
download | gentoo-e2cfff62965a2d82ceb0e34eaf1d5cb65548af3c.tar.gz gentoo-e2cfff62965a2d82ceb0e34eaf1d5cb65548af3c.tar.bz2 gentoo-e2cfff62965a2d82ceb0e34eaf1d5cb65548af3c.zip |
app-arch/libarchive: Add patch to build with libressl
Gentoo-Bug: 614460
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'app-arch/libarchive')
-rw-r--r-- | app-arch/libarchive/files/libarchive-3.3.1-libressl.patch | 22 | ||||
-rw-r--r-- | app-arch/libarchive/libarchive-3.3.1.ebuild | 4 |
2 files changed, 26 insertions, 0 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 new file mode 100644 index 000000000000..8078bc09210d --- /dev/null +++ b/app-arch/libarchive/files/libarchive-3.3.1-libressl.patch @@ -0,0 +1,22 @@ +--- a/libarchive/archive_openssl_evp_private.h ++++ b/libarchive/archive_openssl_evp_private.h +@@ -28,7 +28,7 @@ + #include <openssl/evp.h> + #include <openssl/opensslv.h> + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + #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 @@ + #include <openssl/hmac.h> + #include <openssl/opensslv.h> + +-#if OPENSSL_VERSION_NUMBER < 0x10100000L ++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + #include <stdlib.h> /* malloc, free */ + #include <string.h> /* memset */ + static inline HMAC_CTX *HMAC_CTX_new(void) diff --git a/app-arch/libarchive/libarchive-3.3.1.ebuild b/app-arch/libarchive/libarchive-3.3.1.ebuild index 48ed2be6dd92..a7a6d960e76f 100644 --- a/app-arch/libarchive/libarchive-3.3.1.ebuild +++ b/app-arch/libarchive/libarchive-3.3.1.ebuild @@ -35,6 +35,10 @@ DEPEND="${RDEPEND} e2fsprogs? ( sys-fs/e2fsprogs ) )" +PATCHES=( + "${FILESDIR}"/${PN}-3.3.1-libressl.patch +) + src_prepare() { default elibtoolize # is required for Solaris sol2_ld linker fix |