Skip to contentSkip to conversation

perhaps "DEFAULT_PREFERENCE" in BB manual needs a newer explanation

DISCUSSION Robert P. J. Day 2 participants 2 messages Jul 9, 2025 – Jul 14, 2025

lore
Share & tools
lore
#0 lore raw

here:

https://docs.yoctoproject.org/bitbake/2.12/bitbake-user-manual/bitbake-user-manual-execution.html#preferences

the closing note suggests that having an alternate "bleeding edge" version of a recipe is "common":

"It is common for a recipe to provide two versions – a stable, numbered (and preferred) version, and a version that is automatically checked out from a source code repository that is considered more “bleeding edge” but can be selected only explicitly."

then gives busybox as an example. not only does current busybox not have that structure, but there are almost *no* examples of this anymore throughout all of OE. i went looking for an example and the first one i found was xen in the meta-virt layer:

https://git.yoctoproject.org/meta-virtualization/tree/recipes-extended/xen

so perhaps, first, this should be re-explained as something a developer *might* run across in their travels (but only rarely). but maybe a better approach is to leave this feature for later, and explain it in the context of how a developer can support this sort of thing for *their own* recipes in their own layer.

in any event, that note is clearly in need of updating given the
almost total lack of such a thing in the current OE code base.

rday

#1 lore raw

Hi Robert,

Quoted 20 lines · Robert P. J. Day via lists.yoctoproject.org

here:

https://docs.yoctoproject.org/bitbake/2.12/bitbake-user-manual/bitbake-user-manual-execution.html#preferences

the closing note suggests that having an alternate "bleeding edge" version of a recipe is "common":

"It is common for a recipe to provide two versions – a stable, numbered (and preferred) version, and a version that is automatically checked out from a source code repository that is considered more “bleeding edge” but can be selected only explicitly."

then gives busybox as an example. not only does current busybox not have that structure, but there are almost *no* examples of this anymore throughout all of OE. i went looking for an example and the first one i found was xen in the meta-virt layer:

https://git.yoctoproject.org/meta-virtualization/tree/recipes-extended/xen

Quoted 9 lines

so perhaps, first, this should be re-explained as something a developer *might* run across in their travels (but only rarely). but maybe a better approach is to leave this feature for later, and explain it in the context of how a developer can support this sort of thing for *their own* recipes in their own layer.

in any event, that note is clearly in need of updating given the
almost total lack of such a thing in the current OE code base.

BB != OE-Core so I don't think this justification stands here.

I would support moving the note to the variable glossary entry for DEFAULT_PREFERENCE though.

There may be something we need to add to the Preferences section based on the DEFAULT_PREFERENCE entry in the glossary as it seems to hint at BBFILE_PRIORITY impacting it as well... And we don't specify any of this behavior in the Preferences section. If that is still applicable to the master branch, we should document it there as well.

Cheers,
Quentin