From: Robert Yang <liezhi.yang@windriver.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 2/2] gdb-cross-canadian: add nativesdk-ncurses-libncurses to RDEPENDS
Date: Fri, 15 Aug 2014 18:47:12 +0800 [thread overview]
Message-ID: <53EDE530.9090100@windriver.com> (raw)
In-Reply-To: <1408092857.21596.7.camel@ted>
On 08/15/2014 04:54 PM, Richard Purdie wrote:
> On Fri, 2014-08-15 at 01:49 -0700, Robert Yang wrote:
>> We had nativesdk-ncurses in the DEPENDS, also need add
>> nativesdk-ncurses-libncurses to the RDEPENDS, otherwise libncurses.so.5
>> is not in the rdepends chain.
>
> This doesn't make sense. Can you please give more information about the
> problem you're solving here please?
Sorry, I should put more info in the commit message. Yes, it doesn't
make sense to package_rpm, but makes sense to package_ipk (verified)
and package_deb (not yet verified).
My host is X86_64 (doesn't matter)
# Make sure it is a clean build
$ bitbake meta-toolchain -ccleansstate
$ bitbake meta-toolchain
$ find tmp/work/core2-64-poky-linux/meta-toolchain/1.0-r7/sdk/image/ | grep
poky-linux-gdb
tmp/work/core2-64-poky-linux/meta-toolchain/1.0-r7/sdk/image/opt/poky/1.6+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux/x86_64-poky-linux-gdb
#### Note gdb-cross has been installed
$ find tmp/work/core2-64-poky-linux/meta-toolchain/1.0-r7/sdk/image/ | grep ncurses
### No output, libncurses.so isn't installed.
And if we use PACKAGE_CLASSES = "package_rpm", we can see that libncurses.so
is installed.
This is because:
$ rpm -qpR
tmp/deploy/rpm/x86_64_nativesdk/gdb-cross-canadian-x86-64-7.7.1-r0.x86_64_nativesdk.rpm
| grep ncurses
libncurses.so.5()(64bit)
### There is a file depends (libncurses.so.5)
$ dpkg-deb -I
tmp/deploy/ipk/x86_64-nativesdk/gdb-cross-canadian-x86-64_7.7.1-r0_x86_64-nativesdk.ipk
| grep ncurses
### No output, ipk knows nothing about the file depends (libncurses.so.5),
### so that it would not be installed.
I updated the commit message in the repo, please feel free to let me know if
you have any questions.
git://git.openembedded.org/openembedded-core-contrib rbt/python3-gdb
We had nativesdk-ncurses in the DEPENDS, also need add
nativesdk-ncurses-libncurses to the RDEPENDS, otherwise libncurses will
not be installed when PACKAGE_CLASSES = "package_ipk" or deb.
Fixed:
- Set these in local.conf:
MACHINE = "qemux86-64"
PACKAGE_CLASSES = "package_ipk"
$ bitbake meta-toolchain
$ find tmp/work/core2-64-poky-linux/meta-toolchain/1.0-r7/sdk/image/ | grep ncurses
## No output, ncurses isn't installed, but it should.
// Robert
>
> If its a dynamically linked lib, the dependency should be detected
> automatically.
>
> Cheers,
>
> Richard
>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
>> index e594bb1..2be427a 100644
>> --- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
>> +++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
>> @@ -7,7 +7,9 @@ BPN = "gdb"
>>
>> DEPENDS = "nativesdk-ncurses nativesdk-expat nativesdk-gettext nativesdk-readline nativesdk-python"
>> RDEPENDS_${PN} += "nativesdk-python-core nativesdk-python-lang nativesdk-python-re \
>> - nativesdk-python-codecs nativesdk-python-netclient"
>> + nativesdk-python-codecs nativesdk-python-netclient \
>> + nativesdk-ncurses-libncurses \
>> + "
>>
>> GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
>>
>> --
>> 1.7.9.5
>>
>
>
>
>
next prev parent reply other threads:[~2014-08-15 10:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-15 8:49 [PATCH 0/2] fix python3-distribute and gdb-cross-canadian Robert Yang
2014-08-15 8:49 ` [PATCH 1/2] python3-distribute: fix interpreter Robert Yang
2014-08-15 8:49 ` [PATCH 2/2] gdb-cross-canadian: add nativesdk-ncurses-libncurses to RDEPENDS Robert Yang
2014-08-15 8:54 ` Richard Purdie
2014-08-15 10:47 ` Robert Yang [this message]
2014-08-15 10:56 ` Robert Yang
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=53EDE530.9090100@windriver.com \
--to=liezhi.yang@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