* listing PACKAGES for a certain layer
@ 2015-10-15 16:27 Ivan Sergio Borgonovo
2015-10-15 19:28 ` Paul Eggleton
0 siblings, 1 reply; 6+ messages in thread
From: Ivan Sergio Borgonovo @ 2015-10-15 16:27 UTC (permalink / raw)
To: poky
Is there a way to list packages provided by a certain layer/recipe?
thanks
--
Ivan Sergio Borgonovo
http://www.webthatworks.it
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: listing PACKAGES for a certain layer
2015-10-15 16:27 listing PACKAGES for a certain layer Ivan Sergio Borgonovo
@ 2015-10-15 19:28 ` Paul Eggleton
2015-10-15 21:37 ` [SOLVED]? " Ivan Sergio Borgonovo
0 siblings, 1 reply; 6+ messages in thread
From: Paul Eggleton @ 2015-10-15 19:28 UTC (permalink / raw)
To: Ivan Sergio Borgonovo; +Cc: poky
Hi Ivan,
On Thursday 15 October 2015 18:27:39 Ivan Sergio Borgonovo wrote:
> Is there a way to list packages provided by a certain layer/recipe?
Not layer, but you can get a bunch of info out of oe-pkgdata-util after
recipes have been built - e.g. once the connman recipe has built you can run:
$ oe-pkgdata-util list-pkgs -p connman
connman-tools
connman-tests
connman-client
connman-dbg
connman-dev
connman-doc
connman
$ oe-pkgdata-util list-pkg-files connman
connman:
/etc/dbus-1/system.d/connman.conf
/etc/init.d/connman
/usr/sbin/connmand
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 6+ messages in thread
* [SOLVED]? Re: listing PACKAGES for a certain layer
2015-10-15 19:28 ` Paul Eggleton
@ 2015-10-15 21:37 ` Ivan Sergio Borgonovo
2015-10-15 21:42 ` Christopher Larson
0 siblings, 1 reply; 6+ messages in thread
From: Ivan Sergio Borgonovo @ 2015-10-15 21:37 UTC (permalink / raw)
Cc: poky
On 10/15/2015 09:28 PM, Paul Eggleton wrote:
> Hi Ivan,
> On Thursday 15 October 2015 18:27:39 Ivan Sergio Borgonovo wrote:
>> Is there a way to list packages provided by a certain layer/recipe?
> Not layer, but you can get a bunch of info out of oe-pkgdata-util after
> recipes have been built - e.g. once the connman recipe has built you can run:
Do you mean I have to compile the package?
But probably solved in a different way:
get a list of targets from
bitbake-layers show-recipes | grep -B1 '[layer]'
join them with
bitbake -e [target] | grep 'PACKAGES='
there are still some packages coming from PACKAGES_DYNAMIC=
I'm not sure if I'm missing something else.
I'm going to write some shell script that will make things easier after
I get a better understanding of PACKAGES_DYNAMIC.
This should be the equivalent of
aptitude search '?source-package([package])'
> $ oe-pkgdata-util list-pkgs -p connman
> connman-tools
> connman-tests
> connman-client
> connman-dbg
> connman-dev
> connman-doc
> connman
and this is similar (not equal) to:
apt-file find [package]
> $ oe-pkgdata-util list-pkg-files connman
> connman:
> /etc/dbus-1/system.d/connman.conf
> /etc/init.d/connman
> /usr/sbin/connmand
But debian tools relay on an index and don't need to build stuff.
thanks
--
Ivan Sergio Borgonovo
http://www.webthatworks.it
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [SOLVED]? Re: listing PACKAGES for a certain layer
2015-10-15 21:37 ` [SOLVED]? " Ivan Sergio Borgonovo
@ 2015-10-15 21:42 ` Christopher Larson
2015-10-15 21:59 ` Ivan Sergio Borgonovo
0 siblings, 1 reply; 6+ messages in thread
From: Christopher Larson @ 2015-10-15 21:42 UTC (permalink / raw)
To: Ivan Sergio Borgonovo; +Cc: poky@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]
On Thu, Oct 15, 2015 at 2:37 PM, Ivan Sergio Borgonovo <mail@webthatworks.it
> wrote:
> On 10/15/2015 09:28 PM, Paul Eggleton wrote:
>
>> Hi Ivan,
>>
>
> On Thursday 15 October 2015 18:27:39 Ivan Sergio Borgonovo wrote:
>>
>>> Is there a way to list packages provided by a certain layer/recipe?
>>>
>>
> Not layer, but you can get a bunch of info out of oe-pkgdata-util after
>> recipes have been built - e.g. once the connman recipe has built you can
>> run:
>>
>
> Do you mean I have to compile the package?
>
> But probably solved in a different way:
>
> get a list of targets from
> bitbake-layers show-recipes | grep -B1 '[layer]'
>
> join them with
>
> bitbake -e [target] | grep 'PACKAGES='
>
> there are still some packages coming from PACKAGES_DYNAMIC=
> I'm not sure if I'm missing something else.
>
> I'm going to write some shell script that will make things easier after I
> get a better understanding of PACKAGES_DYNAMIC.
>
>
> This should be the equivalent of
> aptitude search '?source-package([package])'
>
> $ oe-pkgdata-util list-pkgs -p connman
>> connman-tools
>> connman-tests
>> connman-client
>> connman-dbg
>> connman-dev
>> connman-doc
>> connman
>>
>
> and this is similar (not equal) to:
> apt-file find [package]
>
> $ oe-pkgdata-util list-pkg-files connman
>> connman:
>> /etc/dbus-1/system.d/connman.conf
>> /etc/init.d/connman
>> /usr/sbin/connmand
>>
>
> But debian tools relay on an index and don't need to build stuff.
>
https://github.com/kergoth/bb 's search subcommand may also be of use.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
[-- Attachment #2: Type: text/html, Size: 3041 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [SOLVED]? Re: listing PACKAGES for a certain layer
2015-10-15 21:42 ` Christopher Larson
@ 2015-10-15 21:59 ` Ivan Sergio Borgonovo
2015-10-15 22:05 ` Christopher Larson
0 siblings, 1 reply; 6+ messages in thread
From: Ivan Sergio Borgonovo @ 2015-10-15 21:59 UTC (permalink / raw)
To: poky@yoctoproject.org
On 10/15/2015 11:42 PM, Christopher Larson wrote:
> https://github.com/kergoth/bb 's search subcommand may also be of use.
bb contents seems the thing that is most likely what I'm looking for but
giving a quick glance to the code it seems to relay on things to be
already compiled in /tmp/work
thanks
--
Ivan Sergio Borgonovo
http://www.webthatworks.it
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [SOLVED]? Re: listing PACKAGES for a certain layer
2015-10-15 21:59 ` Ivan Sergio Borgonovo
@ 2015-10-15 22:05 ` Christopher Larson
0 siblings, 0 replies; 6+ messages in thread
From: Christopher Larson @ 2015-10-15 22:05 UTC (permalink / raw)
To: Ivan Sergio Borgonovo; +Cc: poky@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 997 bytes --]
On Thu, Oct 15, 2015 at 2:59 PM, Ivan Sergio Borgonovo <mail@webthatworks.it
> wrote:
> On 10/15/2015 11:42 PM, Christopher Larson wrote:
>
>> https://github.com/kergoth/bb 's search subcommand may also be of use.
>>
>
> bb contents seems the thing that is most likely what I'm looking for but
> giving a quick glance to the code it seems to relay on things to be already
> compiled in /tmp/work
bb contents dumps the contents of built packages, that's not at all what
you want. If you want to look at what packages are available before you've
done a build, you need something that uses the PACKAGES and
PACKAGES_DYNAMIC variables, which is what bb-search does. There are other
options, of course, this is just one possibility. There's a usage example
in the readme so you can see if it's what you're looking for.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
[-- Attachment #2: Type: text/html, Size: 1563 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-10-15 22:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-15 16:27 listing PACKAGES for a certain layer Ivan Sergio Borgonovo
2015-10-15 19:28 ` Paul Eggleton
2015-10-15 21:37 ` [SOLVED]? " Ivan Sergio Borgonovo
2015-10-15 21:42 ` Christopher Larson
2015-10-15 21:59 ` Ivan Sergio Borgonovo
2015-10-15 22:05 ` Christopher Larson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.