[OE-core] [PATCH] openssh: depends openssl10 on qemuarm64

Hongxu Jia hongxu.jia at windriver.com
Fri Sep 21 08:16:42 UTC 2018


Since the commit `43838a2 random: fix crng_ready() test' and
`dc12baa random: use a different mixing algorithm for
add_device_randomness()' applied in kernel, the getrandom
hung on qemuarm64. It caused openssl 1.1.x could not work
correctly. In this situation, the openssh also hung at init.

Depends openssl10 on qemuarm64 which did not invoke getrandom.

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
 meta/recipes-connectivity/openssh/openssh_7.8p1+git.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/openssh/openssh_7.8p1+git.bb b/meta/recipes-connectivity/openssh/openssh_7.8p1+git.bb
index f54dfb5..784f1bb 100644
--- a/meta/recipes-connectivity/openssh/openssh_7.8p1+git.bb
+++ b/meta/recipes-connectivity/openssh/openssh_7.8p1+git.bb
@@ -8,7 +8,12 @@ SECTION = "console/network"
 LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://LICENCE;md5=429658c6612f3a9b1293782366ab29d8"
 
-DEPENDS = "zlib openssl"
+OPENSSL ?= "openssl"
+# The getrandom hung on qemuarm64 which cause openssl 1.1.x could
+# not work correctly, use openssl10 to replace
+OPENSSL_qemuarm64 = "openssl10"
+
+DEPENDS = "zlib ${OPENSSL}"
 DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
 
 SRC_URI = "git://github.com/openssh/openssh-portable;branch=master \
-- 
2.7.4




More information about the Openembedded-core mailing list