1openldap: assume /dev/urandom exists 2 3When we are cross-compiling, we want to assume 4that /dev/urandom exists. We could change the source 5code to look for it, but this is the easy way out. 6 7Upstream-Status: Inappropriate [embedded specific] 8 9Signed-off-by: Joe Slater <jslater@windriver.com> 10 11--- a/configure.ac 12+++ b/configure.ac 13@@ -2117,6 +2117,7 @@ AC_SUBST(systemdsystemunitdir) 14 15 dnl ---------------------------------------------------------------- 16 dnl Check for entropy sources 17+dev=no 18 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then 19 dev=no 20 if test -r /dev/urandom ; then 21@@ -2131,9 +2132,11 @@ if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then 22 dev="/idev/random"; 23 fi 24 25- if test $dev != no ; then 26- AC_DEFINE_UNQUOTED(URANDOM_DEVICE,"$dev",[set to urandom device]) 27- fi 28+elif test $cross_compiling == yes ; then 29+ dev="/dev/urandom"; 30+fi 31+if test $dev != no ; then 32+ AC_DEFINE_UNQUOTED(URANDOM_DEVICE,"$dev",[set to urandom device]) 33 fi 34 35 dnl ---------------------------------------------------------------- 36