aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluixhi Scura <lluixhi@gmail.com>2015-07-01 09:39:31 -0700
committerLluixhi Scura <lluixhi@gmail.com>2015-07-01 09:39:31 -0700
commit6c456f99254bc278d51316f2ad23014338d3981e (patch)
tree9a462607f6135f80527e286df4d3068e166c1790 /dev-libs
parentnet-irc/znc: initial import to fix libressl compatibility (diff)
downloadlibressl-6c456f99254bc278d51316f2ad23014338d3981e.tar.gz
libressl-6c456f99254bc278d51316f2ad23014338d3981e.tar.bz2
libressl-6c456f99254bc278d51316f2ad23014338d3981e.zip
Fix for LibreSSL 2.2.0 and MUSL.
libressl-portable/portable/#96
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libressl/files/libressl-2.2.0-musl.patch11
-rw-r--r--dev-libs/libressl/libressl-2.2.0.ebuild2
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-libs/libressl/files/libressl-2.2.0-musl.patch b/dev-libs/libressl/files/libressl-2.2.0-musl.patch
new file mode 100644
index 0000000..4f52e58
--- /dev/null
+++ b/dev-libs/libressl/files/libressl-2.2.0-musl.patch
@@ -0,0 +1,11 @@
+diff -Naur libressl-2.2.0.orig/crypto/compat/getentropy_linux.c libressl-2.2.0/crypto/compat/getentropy_linux.c
+--- libressl-2.2.0.orig/crypto/compat/getentropy_linux.c 2015-06-30 23:42:09.873389199 -0700
++++ libressl-2.2.0/crypto/compat/getentropy_linux.c 2015-06-30 23:43:20.530057972 -0700
+@@ -28,7 +28,6 @@
+ #include <sys/resource.h>
+ #include <sys/syscall.h>
+ #ifdef SYS__sysctl
+-#include <sys/sysctl.h>
+ #include <linux/sysctl.h>
+ #endif
+ #include <sys/statvfs.h>
diff --git a/dev-libs/libressl/libressl-2.2.0.ebuild b/dev-libs/libressl/libressl-2.2.0.ebuild
index 946b318..b2bfa36 100644
--- a/dev-libs/libressl/libressl-2.2.0.ebuild
+++ b/dev-libs/libressl/libressl-2.2.0.ebuild
@@ -29,6 +29,8 @@ PDEPEND="app-misc/ca-certificates"
src_prepare() {
touch crypto/Makefile.in
+ epatch "${FILESDIR}"/${P}-musl.patch
+
sed -i \
-e '/^[ \t]*CFLAGS=/s#-g ##' \
-e '/^[ \t]*CFLAGS=/s#-g"#"#' \