pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/heirloom-mailx Fix building against OpenSSL 1.1.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5df2eb227fa5
branches:  trunk
changeset: 410461:5df2eb227fa5
user:      sevan <sevan%pkgsrc.org@localhost>
date:      Wed Jan 22 20:50:34 2020 +0000

description:
Fix building against OpenSSL 1.1.1

diffstat:

 mail/heirloom-mailx/distinfo                |   4 ++--
 mail/heirloom-mailx/patches/patch-openssl.c |  29 ++++++++++++++++++++++++++---
 2 files changed, 28 insertions(+), 5 deletions(-)

diffs (64 lines):

diff -r 00fb71bd7f03 -r 5df2eb227fa5 mail/heirloom-mailx/distinfo
--- a/mail/heirloom-mailx/distinfo      Wed Jan 22 20:46:49 2020 +0000
+++ b/mail/heirloom-mailx/distinfo      Wed Jan 22 20:50:34 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 23:27:06 agc Exp $
+$NetBSD: distinfo,v 1.5 2020/01/22 20:50:34 sevan Exp $
 
 SHA1 (heirloom-mailx_12.5.orig.tar.gz) = 2fa7f300dea7747e5880d61fd691a103d70863ba
 RMD160 (heirloom-mailx_12.5.orig.tar.gz) = 9722c9ecd2cae6b2b47a598e5c32544c1320502f
@@ -12,5 +12,5 @@
 SHA1 (patch-getopt.c) = b238221ae17fdc7285febd1e9209ac9acac92069
 SHA1 (patch-mailx.1) = 070ae8af60dc22d0acc1c68caf66384ff390379e
 SHA1 (patch-names.c) = 5a7f4bd255f30a425114b5371430012079511d88
-SHA1 (patch-openssl.c) = 45160c726bc93382a2455c44947ca6c4cc9e8a12
+SHA1 (patch-openssl.c) = 5b221586d5159788b22bdcefb9918ab49719e91f
 SHA1 (patch-sendout.c) = 1270c454ec7956ef4c3c3f3f71e847928bbbd2e3
diff -r 00fb71bd7f03 -r 5df2eb227fa5 mail/heirloom-mailx/patches/patch-openssl.c
--- a/mail/heirloom-mailx/patches/patch-openssl.c       Wed Jan 22 20:46:49 2020 +0000
+++ b/mail/heirloom-mailx/patches/patch-openssl.c       Wed Jan 22 20:50:34 2020 +0000
@@ -1,18 +1,41 @@
-$NetBSD: patch-openssl.c,v 1.1 2014/12/28 14:16:14 bsiegert Exp $
+$NetBSD: patch-openssl.c,v 1.2 2020/01/22 20:50:34 sevan Exp $
 
-Imported Debian package fixes:
 - remove SSL2 support since it is no longer supported by OpenSSL.
+- fix build against modern OpenSSL
+  from https://github.com/maximeh/buildroot/commit/9f145e4957fa562ed8df89527433fccd438b3502
 
 --- openssl.c.orig     2011-04-26 21:23:22.000000000 +0000
 +++ openssl.c
-@@ -216,9 +216,7 @@ ssl_select_method(const char *uhp)
+@@ -137,11 +137,13 @@ ssl_rand_init(void)
+ 
+       if ((cp = value("ssl-rand-egd")) != NULL) {
+               cp = expand(cp);
++#ifndef OPENSSL_NO_EGD
+               if (RAND_egd(cp) == -1) {
+                       fprintf(stderr, catgets(catd, CATSET, 245,
+                               "entropy daemon at \"%s\" not available\n"),
+                                       cp);
+               } else
++#endif
+                       state = 1;
+       } else if ((cp = value("ssl-rand-file")) != NULL) {
+               cp = expand(cp);
+@@ -216,12 +218,15 @@ ssl_select_method(const char *uhp)
  
        cp = ssl_method_string(uhp);
        if (cp != NULL) {
 -              if (equal(cp, "ssl2"))
 -                      method = SSLv2_client_method();
 -              else if (equal(cp, "ssl3"))
++              #ifndef OPENSSL_NO_SSL3
 +              if (equal(cp, "ssl3"))
                        method = SSLv3_client_method();
                else if (equal(cp, "tls1"))
                        method = TLSv1_client_method();
++              #else
++              if (equal(cp, "tls1"))
++                      method = TLSv1_client_method();
++              #endif
+               else {
+                       fprintf(stderr, catgets(catd, CATSET, 244,
+                                       "Invalid SSL method \"%s\"\n"), cp);



Home | Main Index | Thread Index | Old Index