summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2015-08-20 13:01:54 +0000
committerleot <leot@pkgsrc.org>2015-08-20 13:01:54 +0000
commit3a9248adad93b3bf04ce075bf4a22834cf975e91 (patch)
treeffe0f58521111c2f7509c4b514aac1f658ef6133 /mail
parent1d9c78f930fa802270ab5b7daeab3cfbc57cd471 (diff)
downloadpkgsrc-3a9248adad93b3bf04ce075bf4a22834cf975e91.tar.gz
o Fix build on older versions of Darwin affected by arc4random(3)
limitations like NetBSD. o Explicity disable readline support that - at least - on some Darwin systems was automatically detected. o Bump PKGREVISION (the readline change can affect also platforms where readline was automagically recognised and used) Thanks to sevan@ for testing the patches.
Diffstat (limited to 'mail')
-rw-r--r--mail/nmh/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/mail/nmh/Makefile b/mail/nmh/Makefile
index 2e8d943c37d..95439afe137 100644
--- a/mail/nmh/Makefile
+++ b/mail/nmh/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.88 2015/08/19 18:23:02 leot Exp $
+# $NetBSD: Makefile,v 1.89 2015/08/20 13:01:54 leot Exp $
DISTNAME= nmh-1.6
CATEGORIES= mail
MASTER_SITES= http://savannah.nongnu.org/download/nmh/
-PKGREVISION= 2
+PKGREVISION= 3
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.nongnu.org/nmh/
@@ -37,6 +37,7 @@ GNU_CONFIGURE= yes
GNU_CONFIGURE_LIBDIR= ${PREFIX}/libexec/nmh
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-mts=${NMH_MTA:Q}
+CONFIGURE_ARGS+= --without-readline
DOCDIR= share/doc/nmh
EGDIR= ${PREFIX}/share/examples/nmh
@@ -76,10 +77,12 @@ CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
# The configure script checks for arc4random(), but the program uses
-# arc4random_buf(); netbsd-5 (and presumably earlier) has the one but
-# not the other. Just disable it, because all it's using the
-# randomness for is message-ids.
-.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
+# arc4random_buf(); netbsd-5 (and presumably earlier) and some Darwin
+# versions has the one but not the other. Just disable it, because all
+# it's using the randomness for is message-ids.
+.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*) || \
+ !empty(MACHINE_PLATFORM:MDarwin-[1-9].*-*) || \
+ !empty(MACHINE_PLATFORM:MDarwin-1[0-2].*-*)
CONFIGURE_ENV+= ac_cv_func_arc4random=no
.endif