[OE-core] [PATCH v3] nettle: fix ptest failure

richard.purdie at linuxfoundation.org richard.purdie at linuxfoundation.org
Mon Apr 15 11:08:15 UTC 2019


On Mon, 2019-04-15 at 17:05 +0800, mingli.yu at windriver.com wrote:
> @@ -33,6 +29,8 @@ EXTRA_OECONF = "--disable-openssl"
>  CFLAGS_append = " -std=c99"
>  
>  do_compile_ptest() {
> +        # fix dlopen-test failure as cannot locate libnettle.so
> +        sed -i 's;dlopen ("../libnettle.so", RTLD_NOW);dlopen
> ("${libdir}/libnettle.so", RTLD_NOW);g' ${S}/testsuite/dlopen-test.c
>          oe_runmake buildtest
>  }
>  
> @@ -49,4 +47,7 @@ do_install_ptest() {
>          install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/
>  }
>  
> +RDEPENDS_${PN}-ptest += "${PN}-dev"
> +INSANE_SKIP_${PN}-ptest += "dev-deps"
> +
>  BBCLASSEXTEND = "native nativesdk"

Does Adrian's suggestion of removing the "../" work? Also, can we
install a symlink in do_install_ptest which this code would find? That
would be less invasive and we could potentially remove the -dev package
dependency which would be good from an image perspective.

Cheers,

Richard



More information about the Openembedded-core mailing list