]> code.ossystems Code Review - openembedded-core.git/commit
nettle: fix ptest failure
authorMingli Yu <Mingli.Yu@windriver.com>
Fri, 12 Apr 2019 03:27:57 +0000 (11:27 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Apr 2019 12:37:11 +0000 (13:37 +0100)
commit83faaf7b2a5f4fc4ae504b300134409e90389770
treea3d47b1de7f450ac063c0fab44bfc1f654789729
parentc574aaf30c82ad397c0a6567b3cb52e7fb5d5829
nettle: fix ptest failure

Remove dlopen-test.patch which originally used
to fix the test dlopen-test, but autually the
patch didn't resolve the issue as dlopen-test.patch
supposes the file /usr/lib/libnettle.so exists.
Instead deploy ${D}${PTEST_PATH}/libnettle.so to
fix the dlopen-test failure.

Update the initialization for the salt to fix
below Segmentation fault and also nettle-pbkdf2-test
failure.
 # echo -n passwd| nettle-pbkdf2 -i 1 -l 16 salt
 [65534.886509] nettle-pbkdf2[708]: segfault at 1f594260 ip 00007f3332256998 sp 00007fff60d44410 error 4 in libnettle.so.6.5[7f3332244000+1d00]
 [65534.887525] Code: e8 6d db fe ff 44 01 6d 68 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 2e 0f 1f 84 00 00 00 00 00 49 89 dc e9 68 ff f
 Segmentation fault

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/nettle/nettle-3.4.1/0001-nettle-pbkdf2.c-change-the-initialization-for-salt.patch [new file with mode: 0644]
meta/recipes-support/nettle/nettle-3.4.1/dlopen-test.patch [deleted file]
meta/recipes-support/nettle/nettle_3.4.1.bb