Skip to contentSkip to conversation

No 'directfb' distro feature

DISCUSSION Yang Chengwei 2 participants 4 messages Feb 20, 2014

lore
Share & tools
lore
#0 lore raw

Hi list,

When I was building a core-image-directfb, bitbake failed like below.

---------->8------copied from #[email protected]>8--------

16:16 < chengwei> $ bitbake core-image-directfb
16:16 < chengwei> Loading cache: 100%

|#############################################################################################|
ETA:  00:00:00

16:16 < chengwei> Loaded 1218 entries from dependency cache. 16:16 < chengwei> ERROR: Nothing PROVIDES 'core-image-directfb' 16:16 < chengwei> ERROR: core-image-directfb was skipped: missing required distro feature ['directfb'] (not in DISTRO_FEATURES)

------------>8------------end------->8-----------------

It complained "directfb" not in DISTRO_FEATURES, and that's true.

From the poky source code, I found that there is a commit introduced change to meta/recipes-graphics/images/core-image-directfb.bb by using "distro_feature_check", this *does* break the build though it's not the one to be blamed, the real bug is as bitbake said "there is no directfb feature" used by core-image-directfb.bb.

Is there a plan to fix this?

--
Thanks,
Chengwei

#1 lore raw

Hi Chengwei,

Quoted 19 lines · On Thursday 20 February 2014 17:27:31 Yang Chengwei wrote:

When I was building a core-image-directfb, bitbake failed like below.

---------->8------copied from #[email protected]>8--------

16:16 < chengwei> $ bitbake core-image-directfb
16:16 < chengwei> Loading cache: 100%

|###########################################################################

|##################|
ETA:  00:00:00

16:16 < chengwei> Loaded 1218 entries from dependency cache. 16:16 < chengwei> ERROR: Nothing PROVIDES 'core-image-directfb' 16:16 < chengwei> ERROR: core-image-directfb was skipped: missing required distro feature ['directfb'] (not in DISTRO_FEATURES)

------------>8------------end------->8-----------------

It complained "directfb" not in DISTRO_FEATURES, and that's true.

Quoted 7 lines

From the poky source code, I found that there is a commit introduced change to meta/recipes-graphics/images/core-image-directfb.bb by using "distro_feature_check", this *does* break the build though it's not the one to be blamed, the real bug is as bitbake said "there is no directfb feature" used by core-image-directfb.bb.

Is there a plan to fix this?

This is not a bug - the intention is that you customise DISTRO_FEATURES to include the feature if you need it. You may find this section of the manual useful:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#creating-your-own-distribution

Cheers,
Paul

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

Hi Paul,

Quoted 9 lines · Paul Eggleton

Hi Chengwei,

Quoted 1 line

Is there a plan to fix this?

This is not a bug - the intention is that you customise DISTRO_FEATURES to include the feature if you need it. You may find this section of the manual useful:

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#creating-your-own-distribution

Thank you, I did read developer manual or maybe I missed them? Since I didn't find 'directfb' as a DISTRO_FEATURES in ref manual, so I think it's a non-exist feature.

Is there a way to list all available image features, distro features?

--
Thanks,
Chengwei

Quoted 9 lines

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw
Quoted 7 lines · On Thursday 20 February 2014 20:17:23 Yang Chengwei wrote:
Quoted 6 lines · Paul Eggleton
Quoted 1 line

Is there a plan to fix this?

This is not a bug - the intention is that you customise DISTRO_FEATURES to include the feature if you need it. You may find this section of the manual useful:

Quoted 8 lines
Quoted 2 lines

http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#creati
ng-your-own-distribution

Thank you, I did read developer manual or maybe I missed them? Since I didn't find 'directfb' as a DISTRO_FEATURES in ref manual, so I think it's a non-exist feature.

Is there a way to list all available image features, distro features?

We should be listing all of the ones we define in the manual, if we aren't we need to fix the manual. There isn't really a way to list them in the code (other than searching it with "git grep") because the features are only really defined by the checks that are made for them e.g. ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}

You are of course free to define your own DISTRO_FEATURES simply by checking for them in your recipes (where it makes sense; typically PACKAGECONFIG is used for configuration options for individual recipes these days and DISTRO_FEATURES is left for features that are controlled system-wide).

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre