1 |
commit: ce3be83bafb6e93161bf5808ffe097d53655f6b0 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 31 00:12:55 2017 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 31 00:12:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce3be83b |
7 |
|
8 |
net-misc/ntp: Add patch to build 4.2.8_p10 with libressl |
9 |
|
10 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
11 |
|
12 |
net-misc/ntp/files/ntp-4.2.8_p10-libressl.patch | 35 +++++++++++++++++++++++++ |
13 |
net-misc/ntp/ntp-4.2.8_p10.ebuild | 1 + |
14 |
2 files changed, 36 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/ntp/files/ntp-4.2.8_p10-libressl.patch b/net-misc/ntp/files/ntp-4.2.8_p10-libressl.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..98ca61af459 |
19 |
--- /dev/null |
20 |
+++ b/net-misc/ntp/files/ntp-4.2.8_p10-libressl.patch |
21 |
@@ -0,0 +1,35 @@ |
22 |
+diff -ur a/include/libssl_compat.h ntp-4.2.8p10/include/libssl_compat.h |
23 |
+--- ntp-4.2.8p10.orig/include/libssl_compat.h 2017-03-21 06:04:20.000000000 -0700 |
24 |
++++ ntp-4.2.8p10/include/libssl_compat.h 2017-03-30 16:34:03.892173084 -0700 |
25 |
+@@ -37,7 +37,7 @@ |
26 |
+ #endif |
27 |
+ |
28 |
+ /* ----------------------------------------------------------------- */ |
29 |
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
30 |
++#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined LIBRESSL_VERSION_NUMBER) |
31 |
+ /* ----------------------------------------------------------------- */ |
32 |
+ |
33 |
+ # include <openssl/objects.h> |
34 |
+diff -ur ntp-4.2.8p10.orig/libntp/a_md5encrypt.c ntp-4.2.8p10/libntp/a_md5encrypt.c |
35 |
+--- ntp-4.2.8p10.orig/libntp/a_md5encrypt.c 2017-02-01 01:47:13.000000000 -0800 |
36 |
++++ ntp-4.2.8p10/libntp/a_md5encrypt.c 2017-03-30 16:55:49.830229507 -0700 |
37 |
+@@ -11,6 +11,7 @@ |
38 |
+ #include "ntp.h" |
39 |
+ #include "ntp_md5.h" /* provides OpenSSL digest API */ |
40 |
+ #include "isc/string.h" |
41 |
++#include "libssl_compat.h" |
42 |
+ /* |
43 |
+ * MD5authencrypt - generate message digest |
44 |
+ * |
45 |
+diff -ur ntp-4.2.8p10.orig/libntp/libssl_compat.c ntp-4.2.8p10/libntp/libssl_compat.c |
46 |
+--- ntp-4.2.8p10.orig/libntp/libssl_compat.c 2017-02-01 01:47:13.000000000 -0800 |
47 |
++++ ntp-4.2.8p10/libntp/libssl_compat.c 2017-03-30 16:52:17.287543795 -0700 |
48 |
+@@ -26,7 +26,7 @@ |
49 |
+ /* ----------------------------------------------------------------- */ |
50 |
+ |
51 |
+ /* ----------------------------------------------------------------- */ |
52 |
+-#if defined(OPENSSL) && OPENSSL_VERSION_NUMBER < 0x10100000L |
53 |
++#if defined(OPENSSL) && (OPENSSL_VERSION_NUMBER < 0x10100000L || defined LIBRESSL_VERSION_NUMBER) |
54 |
+ /* ----------------------------------------------------------------- */ |
55 |
+ |
56 |
+ #include "libssl_compat.h" |
57 |
|
58 |
diff --git a/net-misc/ntp/ntp-4.2.8_p10.ebuild b/net-misc/ntp/ntp-4.2.8_p10.ebuild |
59 |
index 31948a88e5b..9b7c99d2262 100644 |
60 |
--- a/net-misc/ntp/ntp-4.2.8_p10.ebuild |
61 |
+++ b/net-misc/ntp/ntp-4.2.8_p10.ebuild |
62 |
@@ -40,6 +40,7 @@ PATCHES=( |
63 |
"${FILESDIR}"/${PN}-4.2.8-ipc-caps.patch #533966 |
64 |
"${FILESDIR}"/${PN}-4.2.8-sntp-test-pthreads.patch #563922 |
65 |
"${FILESDIR}"/${PN}-4.2.8_p10-ntpq-fpic.patch |
66 |
+ "${FILESDIR}"/${PN}-4.2.8_p10-libressl.patch |
67 |
) |
68 |
|
69 |
pkg_setup() { |