This updates mail/cue to the latest snapshot available on the ftp server.
This snapshot doesn't build with OpenSSL 1.1, but has the fixes for 1.0
in our patches.
The build of this port will break with upcoming libcrypto changes.
pkgsrc decided to pass --without-openssl to configure to work around
the build issues.
This already indicates that it might be time to retire this...
I tried to test it, but I failed. If I point it at a Maildir, I get an
essentially empty screen. If I hit 'C-x a' it segfaults. This is also
the case with the version in tree.
If you happen to use this tool and want to keep using it, I'd be
interested in reports on whether it still works, particularly with
S/MIME signatures or encryption.
It turns out that build fix is relatively straightforward (look at
patch/patch-src_smime_c after applying the diff).
The patch below builds with autoconf 2.13. As far as I can tell, the
autoconf stuff is generated with autoconf 2.64. However, if I set
AUTOCONF_VERSION = 2.64 in the Makefile, I get this:
You do not have inet6 library, using libc
checking getaddrinfo bug... ./configure[3432]: ac_fn_c_try_run: not found
buggy
Fatal: You must get working getaddrinfo() function.
or you can specify "--disable-ipv6".
I don't know how to fix this properly (the test program succeeds if
built without the autoconf madness).
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/cue/Makefile,v
retrieving revision 1.18
diff -u -p -r1.18 Makefile
--- Makefile 12 Jul 2019 20:47:25 -0000 1.18
+++ Makefile 13 Oct 2021 20:40:37 -0000
@@ -2,7 +2,7 @@
COMMENT= mh-e like mail user agent
-V= 20090209
+V= 20180813
DISTNAME= cue-snap-$V
PKGNAME= cue-$V
CATEGORIES= mail
Index: distinfo
===================================================================
RCS file: /cvs/ports/mail/cue/distinfo,v
retrieving revision 1.15
diff -u -p -r1.15 distinfo
--- distinfo 18 Jan 2015 03:14:21 -0000 1.15
+++ distinfo 13 Oct 2021 20:36:40 -0000
@@ -1,2 +1,2 @@
-SHA256 (cue-snap-20090209.tar.gz) = fEjqvU7cYi3wOx1tBPmrhawp9WxHU5HnU8WhHPHtivI=
-SIZE (cue-snap-20090209.tar.gz) = 229115
+SHA256 (cue-snap-20180813.tar.gz) = CBL/Yhg0wldTkpzTmjkz3xvehW0Dkydsq2VnkyMEh10=
+SIZE (cue-snap-20180813.tar.gz) = 260627
Index: patches/patch-configure_in
===================================================================
RCS file: /cvs/ports/mail/cue/patches/patch-configure_in,v
retrieving revision 1.1
diff -u -p -r1.1 patch-configure_in
--- patches/patch-configure_in 16 Dec 2008 18:47:51 -0000 1.1
+++ patches/patch-configure_in 13 Oct 2021 20:39:07 -0000
@@ -1,32 +1,35 @@
-$OpenBSD: patch-configure_in,v 1.1 2008/12/16 18:47:51 naddy Exp $
---- configure.in.orig Wed Apr 27 13:54:13 2005
-+++ configure.in Tue Dec 16 19:22:35 2008
-@@ -37,7 +37,7 @@ netbsd*)
+$OpenBSD$
+
+Index: configure.in
+--- configure.in.orig
++++ configure.in
+@@ -35,7 +35,7 @@ netbsd*)
;;
esac
-OPTS="-O"
+OPTS=""
+ CFLAGS=""
- dnl AC_PREFIX_PKG(VARIABLE, HEADER, LIBRARY, PATH [, IF-TRUE [, IF FALSE ] ])
- AC_DEFUN(AC_PREFIX_PKG, [
-@@ -383,14 +383,14 @@ if test "$enable_pgpmime" = yes -o "$enable_smime" = y
+ # AC_PREFIX_PKG(VARIABLE, HEADER, LIBRARY, PATH [, IF-TRUE [, IF FALSE ] ])
+@@ -381,13 +381,14 @@ if test "$enable_pgpmime" = yes -o "$enable_smime" = y
AC_MSG_RESULT($with_openssl),
[ AC_MSG_RESULT(yes)
withval="/usr /usr/local /usr/local/ssl /usr/pkg" ])
-- AC_PREFIX_PKG(ssl, ssl.h, libcrypto.a, $withval)
-- if test "$ssl" = no; then
-- AC_PREFIX_PKG(ssl, openssl/ssl.h, libcrypto.a, $withval)
-- if test "$ssl" != no; then
+- AC_PREFIX_PKG(ssl, openssl/ssl.h, libcrypto.a, $withval)
+- if test "$ssl" != no; then
+- AC_DEFINE(USE_OPENSSL)
+- else
+- AC_PREFIX_PKG(ssl, ssl.h, libcrypto.a, $withval)
+ AC_PREFIX_PKG(use_ssl, ssl.h, libcrypto.a, $withval)
+ if test "$use_ssl" = no; then
+ AC_PREFIX_PKG(use_ssl, openssl/ssl.h, libcrypto.a, $withval)
+ if test "$use_ssl" != no; then
- AC_DEFINE(OPENSSL)
- fi
++ AC_DEFINE(USE_OPENSSL)
++ fi
fi
- if test "$ssl" != no; then
+ if test "$use_ssl" != no; then
if test "$enable_pgpmime" = yes -a "$zlib" != no; then
- AC_DEFINE(PGPMIME)
+ AC_DEFINE(USE_PGPMIME)
EXOBJS="pgp.o pgpmime.o $EXOBJS"
Index: patches/patch-popxmit_c
===================================================================
RCS file: patches/patch-popxmit_c
diff -N patches/patch-popxmit_c
--- patches/patch-popxmit_c 16 Dec 2008 18:47:51 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-$OpenBSD: patch-popxmit_c,v 1.1 2008/12/16 18:47:51 naddy Exp $
---- popxmit.c.orig Tue Dec 16 19:23:22 2008
-+++ popxmit.c Tue Dec 16 19:23:42 2008
-@@ -40,7 +40,7 @@
- #include <string.h>
- #include <unistd.h>
-
--#ifdef SSL /*XXX*/
-+#ifdef USE_SSL /*XXX*/
- #define APOP
-
No comments:
Post a Comment