Skip to contentSkip to conversation

listing PACKAGES for a certain layer

DISCUSSION Ivan Sergio Borgonovo 3 participants 6 messages Oct 15, 2015

lore
Share & tools
lore
#0 lore raw

Is there a way to list packages provided by a certain layer/recipe?

thanks

Signature · 2 lines
Ivan Sergio Borgonovo
http://www.webthatworks.it
#1 lore raw

Hi Ivan,

Quoted 1 line · 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

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

[SOLVED]? Re: listing PACKAGES for a certain layer

Quoted 7 lines · Paul Eggleton

Hi Ivan,

Quoted 1 line · 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])'

Quoted 8 lines
$ 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]

Quoted 5 lines
$ 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

Signature · 2 lines
Ivan Sergio Borgonovo
http://www.webthatworks.it
#3 lore raw

Re: [SOLVED]? Re: listing PACKAGES for a certain layer

On Thu, Oct 15, 2015 at 2:37 PM, Ivan Sergio Borgonovo <[email protected]

Quoted 51 lines

wrote:

Quoted 2 lines · Paul Eggleton

Hi Ivan,

Quoted 4 lines · On Thursday 15 October 2015 18:27:39 Ivan Sergio Borgonovo wrote:
Quoted 3 lines

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

Quoted 3 lines

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
Quoted 8 lines

connman-tools
connman-tests
connman-client
connman-dbg
connman-dev
connman-doc
connman

and this is similar (not equal) to:
apt-file find [package]

Quoted 9 lines
$ oe-pkgdata-util list-pkg-files connman
Quoted 5 lines

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.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#4 lore raw

Re: [SOLVED]? Re: listing PACKAGES for a certain layer

Quoted 1 line · Christopher Larson

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

Signature · 2 lines
Ivan Sergio Borgonovo
http://www.webthatworks.it
#5 lore raw

Re: [SOLVED]? Re: listing PACKAGES for a certain layer

On Thu, Oct 15, 2015 at 2:59 PM, Ivan Sergio Borgonovo <[email protected]

Quoted 10 lines

wrote:

Quoted 2 lines · Christopher Larson

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.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics