diff options
author | dholland <dholland@pkgsrc.org> | 2014-09-21 00:09:24 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2014-09-21 00:09:24 +0000 |
commit | be9a8fa9cb7796fff69e11721cae76e5a8120a29 (patch) | |
tree | 679965058b9389562fe67dd3811eed57444ff58f /mail/nmh | |
parent | b37319c668cd58fc76cef6ae3f2b4c50a7471de0 (diff) | |
download | pkgsrc-be9a8fa9cb7796fff69e11721cae76e5a8120a29.tar.gz |
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. Fixes the netbsd-5 build.
Diffstat (limited to 'mail/nmh')
-rw-r--r-- | mail/nmh/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/nmh/Makefile b/mail/nmh/Makefile index 387d2b77c24..ea798b30894 100644 --- a/mail/nmh/Makefile +++ b/mail/nmh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.85 2014/09/20 23:15:03 dholland Exp $ +# $NetBSD: Makefile,v 1.86 2014/09/21 00:09:24 dholland Exp $ DISTNAME= nmh-1.6 CATEGORIES= mail @@ -77,6 +77,14 @@ CONF_FILES= # empty 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].*-*) +CONFIGURE_ENV+= ac_cv_func_arc4random=no +.endif + post-install: ${INSTALL_DATA} ${FILESDIR}/mhn.defaults.dist \ ${DESTDIR}${EGDIR}/mhn.defaults |