diff options
| author | Jiaqing Zhao <jiaqing.zhao@linux.intel.com> | 2022-05-20 17:42:57 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-05-24 08:39:45 -0700 |
| commit | b2261dbb956b1124ccef8ae22fbcb6375071fffd (patch) | |
| tree | 63ef914ebbefea3e68b58539f6daaa48a516fab0 | |
| parent | 1de8b9c7e2727fb66c46c41deb843a0dfa7a811e (diff) | |
| download | meta-openembedded-b2261dbb956b1124ccef8ae22fbcb6375071fffd.tar.gz | |
openldap: Remove unnecessary use-urandom.patch
use-urandom.patch sets URANDOM_DEVICE to /dev/urandom when cross
compiling, but the same value is also defined in the recipe's compile
flags. This patch removes that unnecessary patch and resolves the
redefinition warning.
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -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 \ |
