pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/alpine OpenSSL has provided a "typedef char *STRI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9b451218f647
branches:  trunk
changeset: 396980:9b451218f647
user:      plunky <plunky%pkgsrc.org@localhost>
date:      Thu Aug 06 20:01:50 2009 +0000

description:
OpenSSL has provided a "typedef char *STRING" in recent versions,
this conflicts with the "typedef struct { } STRING" used througout
Alpine.

Since Alpine does not actually use the OpenSSL STRING def, obscure
it with #define and pretend it does not exist.

diffstat:

 mail/alpine/distinfo         |   3 ++-
 mail/alpine/patches/patch-ab |  23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletions(-)

diffs (41 lines):

diff -r e22bcb0db21d -r 9b451218f647 mail/alpine/distinfo
--- a/mail/alpine/distinfo      Thu Aug 06 19:19:10 2009 +0000
+++ b/mail/alpine/distinfo      Thu Aug 06 20:01:50 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2009/05/17 17:34:01 plunky Exp $
+$NetBSD: distinfo,v 1.16 2009/08/06 20:01:50 plunky Exp $
 
 SHA1 (alpine-2.00/alpine-2.00.tar.bz2) = dcbd3c5419954f484ccf706feaba31ce48cdebc4
 RMD160 (alpine-2.00/alpine-2.00.tar.bz2) = 9e67704b23b3973d8b878e65ad9e6f5026c10d13
@@ -13,3 +13,4 @@
 RMD160 (alpine-2.00/searchheader.patch.gz) = cc1b2c3cf4cbceaf62e1c0378f5edf6bee619581
 Size (alpine-2.00/searchheader.patch.gz) = 1708 bytes
 SHA1 (patch-aa) = c306613a297d61591d577b6968a31fc85b03f852
+SHA1 (patch-ab) = f0983d8c0123b06a2970eb2736b04afad1502450
diff -r e22bcb0db21d -r 9b451218f647 mail/alpine/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/alpine/patches/patch-ab      Thu Aug 06 20:01:50 2009 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.4 2009/08/06 20:01:50 plunky Exp $
+
+OpenSSL provides a version of STRING that conflicts with the Alpine
+internal version. Since we don't use it, just define it away for now..
+
+--- imap/src/osdep/unix/ssl_unix.c.orig        2009-08-06 20:45:06.000000000 +0100
++++ imap/src/osdep/unix/ssl_unix.c
+@@ -27,6 +27,7 @@
+  */
+ 
+ #define crypt ssl_private_crypt
++#define STRING ssl_private_STRING
+ #include <x509v3.h>
+ #include <ssl.h>
+ #include <err.h>
+@@ -36,6 +37,7 @@
+ #include <crypto.h>
+ #include <rand.h>
+ #undef crypt
++#undef STRING
+ 
+ #define SSLBUFLEN 8192
+ #define SSLCIPHERLIST "ALL:!LOW"



Home | Main Index | Thread Index | Old Index