net-misc/ntp: add patch to 4.2.8_p12 for libressl-2.8 compat
authorPatrick McLean <patrick.mclean@sony.com>
Sat, 8 Dec 2018 01:49:25 +0000 (17:49 -0800)
committerPatrick McLean <chutzpah@gentoo.org>
Sat, 8 Dec 2018 01:49:25 +0000 (17:49 -0800)
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch [new file with mode: 0644]
net-misc/ntp/ntp-4.2.8_p12.ebuild

diff --git a/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch b/net-misc/ntp/files/ntp-4.2.8_p12-libressl-2.8.patch
new file mode 100644 (file)
index 0000000..7ec2ee6
--- /dev/null
@@ -0,0 +1,16 @@
+--- ntp-4.2.8p12.orig/include/libssl_compat.h  2018-12-08 01:14:58.434733497 +0000
++++ ntp-4.2.8p12/include/libssl_compat.h       2018-12-08 01:42:04.479474757 +0000
+@@ -107,10 +107,13 @@
+ #define OpenSSL_version_num   SSLeay
+ #define OpenSSL_version               SSLeay_version
++
++# if LIBRESSL_VERSION_NUMBER < 0x20800000L
+ #define X509_get0_notBefore   X509_get_notBefore
+ #define X509_getm_notBefore   X509_get_notBefore
+ #define X509_get0_notAfter    X509_get_notAfter
+ #define X509_getm_notAfter    X509_get_notAfter
++#endif /* LIBRESSL_VERSION_NUMBER < 0x20800000L */
+ /* ----------------------------------------------------------------- */
+ #endif /* OPENSSL_VERSION_NUMBER < v1.1.0 */
index 179de05fc600012bcc23228c2b85de749ffbdcb5..39fa971f10b0a6af90a77502853074f301de6d38 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -42,6 +42,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-4.2.8-ipc-caps.patch #533966
        "${FILESDIR}"/${PN}-4.2.8-sntp-test-pthreads.patch #563922
        "${FILESDIR}"/${PN}-4.2.8_p10-fix-build-wo-ssl-or-libressl.patch
+       "${FILESDIR}"/${PN}-4.2.8_p12-libressl-2.8.patch
 )
 
 pkg_setup() {