diff options
-rw-r--r-- | meta-oe/recipes-support/openldap/openldap/use-urandom.patch | 35 | ||||
-rw-r--r-- | meta-oe/recipes-support/openldap/openldap_2.5.12.bb | 1 |
2 files changed, 0 insertions, 36 deletions
diff --git a/meta-oe/recipes-support/openldap/openldap/use-urandom.patch b/meta-oe/recipes-support/openldap/openldap/use-urandom.patch deleted file mode 100644 index 0b7e3a28a6..0000000000 --- a/meta-oe/recipes-support/openldap/openldap/use-urandom.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | openldap: assume /dev/urandom exists | ||
2 | |||
3 | When we are cross-compiling, we want to assume | ||
4 | that /dev/urandom exists. We could change the source | ||
5 | code to look for it, but this is the easy way out. | ||
6 | |||
7 | Upstream-Status: Inappropriate [embedded specific] | ||
8 | |||
9 | Signed-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 ---------------------------------------------------------------- | ||
diff --git a/meta-oe/recipes-support/openldap/openldap_2.5.12.bb b/meta-oe/recipes-support/openldap/openldap_2.5.12.bb index e4475e5069..a0ca2b5d39 100644 --- a/meta-oe/recipes-support/openldap/openldap_2.5.12.bb +++ b/meta-oe/recipes-support/openldap/openldap_2.5.12.bb | |||
@@ -15,7 +15,6 @@ SECTION = "libs" | |||
15 | LDAP_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" | 15 | LDAP_VER = "${@'.'.join(d.getVar('PV').split('.')[0:2])}" |
16 | 16 | ||
17 | SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/${BP}.tgz \ | 17 | SRC_URI = "http://www.openldap.org/software/download/OpenLDAP/openldap-release/${BP}.tgz \ |
18 | file://use-urandom.patch \ | ||
19 | file://initscript \ | 18 | file://initscript \ |
20 | file://slapd.service \ | 19 | file://slapd.service \ |
21 | file://remove-user-host-pwd-from-version.patch \ | 20 | file://remove-user-host-pwd-from-version.patch \ |