[OE-core] [oe-core][PATCH] nettle: add openssl-native in the DEPENDS of native build

Zhenhua Luo zhenhua.luo at freescale.com
Fri May 9 06:26:01 UTC 2014


nettle-native build failed on Linux distro with old openssl installed,
add the dependency to ensure correct openssl is used by nettle.

Error logs:
| /home/yocto/poky/p1022ds/tmp/work/x86_64-linux/nettle-native/2.7.1-r0/nettle-2.7.1/examples/hogweed-benchmark.c:519: error: 'struct openssl_ctx' has no member named 'key'
| /home/yocto/poky/p1022ds/tmp/work/x86_64-linux/nettle-native/2.7.1-r0/nettle-2.7.1/examples/hogweed-benchmark.c:520: error: 'struct openssl_ctx' has no member named 'digest_length'
| /home/yocto/poky/p1022ds/tmp/work/x86_64-linux/nettle-native/2.7.1-r0/nettle-2.7.1/examples/hogweed-benchmark.c:521: error: 'struct openssl_ctx' has no member named 'digest'

Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
 meta/recipes-support/nettle/nettle_2.7.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/nettle/nettle_2.7.1.bb b/meta/recipes-support/nettle/nettle_2.7.1.bb
index 87f1639..efb8661 100644
--- a/meta/recipes-support/nettle/nettle_2.7.1.bb
+++ b/meta/recipes-support/nettle/nettle_2.7.1.bb
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \
                     file://serpent-set-key.c;beginline=56;endline=70;md5=bcfd4745d53ca57f82907089898e390d"
 
 DEPENDS += "gmp"
+DEPENDS_class-native = "openssl-native"
 
 SRC_URI = "http://www.lysator.liu.se/~nisse/archive/${BP}.tar.gz"
 
-- 
1.9.1




More information about the Openembedded-core mailing list