Files
meta-openembedded/meta-oe/recipes-support/openldap/openldap/use-urandom.patch
Li xin 125a424fce openldap: upgrade 2.4.40 -> 2.4.41
1) Dropped backported patches(commit-id):
-0001-ITS-8027-require-non-empty-AttributeList.patch(c32e747)
-0001-ITS-8046-fix-vrFilter_free.patch(2f1a2dd)

2) Update the checksum of COPYRIGHT,since the date in it has been changed,
but the LICENSE has not been changed.

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-30 21:22:24 +02:00

39 lines
1.0 KiB
Diff

openldap: assume /dev/urandom exists
When we are cross-compiling, we want to assume
that /dev/urandom exists. We could change the source
code to look for it, but this is the easy way out.
Upstream-Status: pending
Signed-off-by: Joe Slater <jslater@windriver.com>
--- a/configure.in
+++ b/configure.in
@@ -2142,8 +2142,8 @@ fi
dnl ----------------------------------------------------------------
dnl Check for entropy sources
+dev=no
if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
- dev=no
if test -r /dev/urandom ; then
dev="/dev/urandom";
elif test -r /idev/urandom ; then
@@ -2156,9 +2156,11 @@ if test $cross_compiling != yes && test
dev="/idev/random";
fi
- if test $dev != no ; then
- AC_DEFINE_UNQUOTED(URANDOM_DEVICE,"$dev",[set to urandom device])
- fi
+elif test $cross_compiling == yes ; then
+ dev="/dev/urandom";
+fi
+if test $dev != no ; then
+ AC_DEFINE_UNQUOTED(URANDOM_DEVICE,"$dev",[set to urandom device])
fi
dnl ----------------------------------------------------------------