1 |
commit: 9c7939e92210deb470bddaf8f293a7b3fd2dc36e |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 14 20:03:37 2017 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 14 20:04:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c7939e9 |
7 |
|
8 |
net-misc/freerdp: fix build with libressl |
9 |
|
10 |
Closes: https://bugs.gentoo.org/640988 |
11 |
Package-Manager: Portage-2.3.18, Repoman-2.3.6_p30 |
12 |
|
13 |
net-misc/freerdp/files/2.0.0-rc1-libressl.patch | 35 +++++++++++++++++++++++++ |
14 |
net-misc/freerdp/freerdp-2.0.0_rc1.ebuild | 4 +++ |
15 |
2 files changed, 39 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/freerdp/files/2.0.0-rc1-libressl.patch b/net-misc/freerdp/files/2.0.0-rc1-libressl.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..76e2514ef2b |
20 |
--- /dev/null |
21 |
+++ b/net-misc/freerdp/files/2.0.0-rc1-libressl.patch |
22 |
@@ -0,0 +1,35 @@ |
23 |
+From bfe3af4c72b45e33321962644d864843e1c9ce3d Mon Sep 17 00:00:00 2001 |
24 |
+From: Greg V <greg@×××××××××××.technology> |
25 |
+Date: Fri, 1 Dec 2017 18:34:48 +0300 |
26 |
+Subject: [PATCH] Fix LibreSSL build |
27 |
+ |
28 |
+LibreSSL does not support FIPS mode. |
29 |
+--- |
30 |
+ winpr/libwinpr/utils/ssl.c | 4 ++-- |
31 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
32 |
+ |
33 |
+diff --git a/winpr/libwinpr/utils/ssl.c b/winpr/libwinpr/utils/ssl.c |
34 |
+index f749939ac..194f82609 100644 |
35 |
+--- a/winpr/libwinpr/utils/ssl.c |
36 |
++++ b/winpr/libwinpr/utils/ssl.c |
37 |
+@@ -279,7 +279,7 @@ static BOOL CALLBACK _winpr_openssl_initialize(PINIT_ONCE once, PVOID param, PVO |
38 |
+ |
39 |
+ if (flags & WINPR_SSL_INIT_ENABLE_FIPS) |
40 |
+ { |
41 |
+-#if (OPENSSL_VERSION_NUMBER < 0x10001000L) |
42 |
++#if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER) |
43 |
+ WLog_ERR(TAG, "Openssl fips mode ENable not available on openssl versions less than 1.0.1!"); |
44 |
+ #else |
45 |
+ WLog_DBG(TAG, "Ensuring openssl fips mode is ENabled"); |
46 |
+@@ -348,7 +348,7 @@ BOOL winpr_CleanupSSL(DWORD flags) |
47 |
+ |
48 |
+ BOOL winpr_FIPSMode(void) |
49 |
+ { |
50 |
+-#if (OPENSSL_VERSION_NUMBER < 0x10001000L) |
51 |
++#if (OPENSSL_VERSION_NUMBER < 0x10001000L) || defined(LIBRESSL_VERSION_NUMBER) |
52 |
+ return FALSE; |
53 |
+ #else |
54 |
+ return (FIPS_mode() == 1); |
55 |
+-- |
56 |
+2.15.1 |
57 |
+ |
58 |
|
59 |
diff --git a/net-misc/freerdp/freerdp-2.0.0_rc1.ebuild b/net-misc/freerdp/freerdp-2.0.0_rc1.ebuild |
60 |
index 631b7548fe1..c8a6ae3b610 100644 |
61 |
--- a/net-misc/freerdp/freerdp-2.0.0_rc1.ebuild |
62 |
+++ b/net-misc/freerdp/freerdp-2.0.0_rc1.ebuild |
63 |
@@ -88,6 +88,10 @@ DEPEND="${RDEPEND} |
64 |
) ) ) |
65 |
" |
66 |
|
67 |
+PATCHES=( |
68 |
+ "${FILESDIR}/2.0.0-rc1-libressl.patch" |
69 |
+) |
70 |
+ |
71 |
src_configure() { |
72 |
local mycmakeargs=( |
73 |
-DBUILD_TESTING=$(usex test) |