make glib2 use /dev/arandom instead of /dev/urandom; ok jasper@
This commit is contained in:
parent
68c39928bc
commit
122a32371a
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.37 2007/09/10 19:13:33 jasper Exp $
|
||||
# $OpenBSD: Makefile,v 1.38 2007/09/13 10:51:13 djm Exp $
|
||||
|
||||
COMMENT-main= general-purpose utility library
|
||||
COMMENT-docs= glib2 documentation
|
||||
|
||||
VERSION= 2.12.13
|
||||
DISTNAME= glib-${VERSION}
|
||||
PKGNAME-main= glib2-${VERSION}
|
||||
PKGNAME-main= glib2-${VERSION}p0
|
||||
PKGNAME-docs= glib2-docs-${VERSION}
|
||||
CATEGORIES= devel
|
||||
|
||||
|
12
devel/glib2/patches/patch-glib_grand_c
Normal file
12
devel/glib2/patches/patch-glib_grand_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-glib_grand_c,v 1.1 2007/09/13 10:51:14 djm Exp $
|
||||
--- glib/grand.c.orig Thu Sep 13 09:01:56 2007
|
||||
+++ glib/grand.c Thu Sep 13 09:02:35 2007
|
||||
@@ -173,7 +173,7 @@ g_rand_new (void)
|
||||
do
|
||||
{
|
||||
errno = 0;
|
||||
- dev_urandom = fopen("/dev/urandom", "rb");
|
||||
+ dev_urandom = fopen("/dev/arandom", "rb");
|
||||
}
|
||||
while G_UNLIKELY (errno == EINTR);
|
||||
|
Loading…
Reference in New Issue
Block a user