pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/nmh The configure script checks for arc4random(),...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/add59eb9be81
branches:  trunk
changeset: 639656:add59eb9be81
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sun Sep 21 00:09:24 2014 +0000

description:
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:

 mail/nmh/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 49a92519f3ad -r add59eb9be81 mail/nmh/Makefile
--- a/mail/nmh/Makefile Sat Sep 20 23:26:50 2014 +0000
+++ b/mail/nmh/Makefile Sun Sep 21 00:09:24 2014 +0000
@@ -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+=           ${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



Home | Main Index | Thread Index | Old Index