Patchwork nettle: add openssl-native in the DEPENDS of native build

login
register
mail settings
Submitter Zhenhua Luo
Date May 9, 2014, 6:26 a.m.
Message ID <1399616761-10229-1-git-send-email-zhenhua.luo@freescale.com>
Download mbox | patch
Permalink /patch/71799/
State New
Headers show

Comments

Zhenhua Luo - May 9, 2014, 6:26 a.m.
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@freescale.com>
---
 meta/recipes-support/nettle/nettle_2.7.1.bb | 1 +
 1 file changed, 1 insertion(+)
Paul Eggleton - May 9, 2014, 9:06 a.m.
Hi Zhenhua,

On Friday 09 May 2014 14:26:01 Zhenhua Luo wrote:
> nettle-native build failed on Linux distro with old openssl installed,
> add the dependency to ensure correct openssl is used by nettle.

I don't think this is the right solution. nettle is required by gnutls, and it 
doesn't make sense to me for gnutls (which replaces openssl) to depend upon 
something that itself depends upon openssl.

FWIW, Valentin posted a patch earlier to disable the functionality by 
specifying the appropriate configure argument.

Cheers,
Paul

Patch

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"