/dev/srandom has been removed, just use /dev/random as everywhere else

This commit is contained in:
naddy 2017-11-01 15:12:16 +00:00
parent 8d109f513f
commit c2e452c096
2 changed files with 20 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.106 2017/10/19 16:36:04 jca Exp $
# $OpenBSD: Makefile,v 1.107 2017/11/01 15:12:16 naddy Exp $
COMMENT= GNU privacy guard - a free PGP replacement
DISTNAME= gnupg-1.4.22
REVISION= 0
CATEGORIES= security
# restrict, not compatible with gnupg-2.

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-configure,v 1.6 2017/11/01 15:12:16 naddy Exp $
Index: configure
--- configure.orig
+++ configure
@@ -8757,12 +8757,6 @@ _ACEOF
#
NAME_OF_DEV_RANDOM="/dev/random"
NAME_OF_DEV_URANDOM="/dev/urandom"
-case "${host}" in
- *-openbsd*)
- NAME_OF_DEV_RANDOM="/dev/srandom"
- NAME_OF_DEV_URANDOM="/dev/urandom"
- ;;
-esac
cat >>confdefs.h <<_ACEOF
#define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM"