From: "Yu, Mingli" <mingli.yu@windriver.com>
To: <richard.purdie@linuxfoundation.org>,
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH v3] nettle: fix ptest failure
Date: Thu, 18 Apr 2019 13:30:05 +0800 [thread overview]
Message-ID: <5CB80B5D.40800@windriver.com> (raw)
In-Reply-To: <5CB54879.2020303@windriver.com>
Hi RP,
Any comments here?
Thanks,
On 2019年04月16日 11:14, Yu, Mingli wrote:
>
>
> On 2019年04月15日 19:08, richard.purdie@linuxfoundation.org wrote:
>> On Mon, 2019-04-15 at 17:05 +0800, mingli.yu@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
>
> Yes, the Adrian's suggestion works. But I think it's also okay to update
> the actual libnettle.so path in do_compile_ptest phase as we still need
> an extra patch if use Adrian's suggestion.
>
>> install a symlink in do_install_ptest which this code would find? That
>
> Install a symlink? Does it means nettle-ptest will provide libnettle.so?
> @@ -45,6 +49,7 @@ do_install_ptest() {
> # tools can be found in PATH, not in ../tools/
> sed -i -e 's|../tools/||' ${D}${PTEST_PATH}/testsuite/*-test
> install ${B}/testsuite/*-test ${D}${PTEST_PATH}/testsuite/
> + ln -s ${libdir}/libnettle.so.6.5 ${D}${PTEST_PATH}/libnettle.so
> }
>
>
>> would be less invasive and we could potentially remove the -dev package
>> dependency which would be good from an image perspective.
>
> Just nettle-ptest rdepends on nettle-dev.
>
>>
>> Cheers,
>>
>> Richard
>>
>>
next prev parent reply other threads:[~2019-04-18 5:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-12 3:27 [PATCH] nettle: fix ptest failure mingli.yu
2019-04-12 21:57 ` Richard Purdie
2019-04-15 2:10 ` Yu, Mingli
2019-04-15 7:40 ` [PATCH v2] " mingli.yu
2019-04-15 7:59 ` richard.purdie
2019-04-15 8:09 ` Yu, Mingli
2019-04-15 8:06 ` richard.purdie
2019-04-15 8:39 ` Adrian Bunk
2019-04-15 8:43 ` Yu, Mingli
2019-04-15 9:05 ` [PATCH v3] " mingli.yu
2019-04-15 11:08 ` richard.purdie
2019-04-16 3:14 ` Yu, Mingli
2019-04-18 5:30 ` Yu, Mingli [this message]
2019-04-24 8:41 ` [PATCH v4 1/2] nettle: fix the Segmentation fault mingli.yu
2019-04-24 8:41 ` [PATCH v4 2/2] nettle: fix ptest failure mingli.yu
2019-04-24 9:21 ` [PATCH v4 1/2] nettle: fix the Segmentation fault Adrian Bunk
2019-04-29 6:48 ` Yu, Mingli
2019-05-11 1:27 ` Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5CB80B5D.40800@windriver.com \
--to=mingli.yu@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox