Skip to contentSkip to conversation

Layers with multiple versions of the same recipe

DISCUSSION Barros Pena, Belen 2 participants 3 messages Oct 10, 2014 – Oct 15, 2014

lore
Share & tools
lore
#0 lore raw

I have spoken briefly to Paul about the problem of layers providing more than one version of the same recipe, and how we can ensure that the recipe version selected by the user gets built. Paul thinks that using PREFERRED_VERSION should work reasonably well, but it will not work always, since we would be setting PREFERRED_VERSION in local.conf and this can be overridden by distro configuration.

He still thinks setting PREFERRED_VERSION is an acceptable solution. He also thinks that we should probably add some functionality at some point to deal with the cases where local configuration is being overridden by distro config. The idea would be that builds encountering such circumstances would throw a warning, and that warning would be collected and displayed by Toaster once the build completes. Because we store variable history in the Toaster database, we should be able to point users straight to the variable causing the problem. I will open an issue for this in Bugzilla.

Thoughts?

Belén

#1 lore raw

Just to note:

* we need to add version numbers to targets suggested, because there is no other way to distinguish two different "bash" targets in the list

* setting a PREFFERRED_VERSION will change the project configuration page - not a problem, but we need to indicate this to the user somehow

- Alex

Quoted 22 lines · Belen

I have spoken briefly to Paul about the problem of layers providing more than one version of the same recipe, and how we can ensure that the recipe version selected by the user gets built. Paul thinks that using PREFERRED_VERSION should work reasonably well, but it will not work always, since we would be setting PREFERRED_VERSION in local.conf and this can be overridden by distro configuration.

He still thinks setting PREFERRED_VERSION is an acceptable solution. He also thinks that we should probably add some functionality at some point to deal with the cases where local configuration is being overridden by distro config. The idea would be that builds encountering such circumstances would throw a warning, and that warning would be collected and displayed by Toaster once the build completes. Because we store variable history in the Toaster database, we should be able to point users straight to the variable causing the problem. I will open an issue for this in Bugzilla.

Thoughts?

Belén

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC
#2 lore raw
Quoted 4 lines · Alexandru

Just to note:

* we need to add version numbers to targets suggested, because there is no other way to distinguish two different "bash" targets in the list

Mmm, I see what you mean, but I rather not crowd the suggestions any more than they are, particularly because the case of a layer providing more than one version of the same recipe is not that common. Maybe the suggestions just display the target name once, and build the latest version or whichever version is set as the preferred one. You can select an specific target version from the layer details pages and the all targets pages.

Quoted 4 lines

* setting a PREFFERRED_VERSION will change the project configuration page
- not a problem, but we need to indicate this to the user somehow

Sorry, I am probably missing something obvious, but I am not sure how this changes the project configuration page.

Cheers

Belén

Quoted 43 lines

- Alex

On Fri, Oct 10, 2014 at 3:57 PM, Barros Pena, Belen <[email protected]> wrote:

I have spoken briefly to Paul about the problem of layers providing more than one version of the same recipe, and how we can ensure that the recipe version selected by the user gets built. Paul thinks that using PREFERRED_VERSION should work reasonably well, but it will not work always, since we would be setting PREFERRED_VERSION in local.conf and this can be overridden by distro configuration.

He still thinks setting PREFERRED_VERSION is an acceptable solution. He also thinks that we should probably add some functionality at some point to deal with the cases where local configuration is being overridden by distro config. The idea would be that builds encountering such circumstances would throw a warning, and that warning would be collected and displayed by Toaster once the build completes. Because we store variable history in the Toaster database, we should be able to point users straight to the variable causing the problem. I will open an issue for this in Bugzilla.

Thoughts?

Belén

Signature · 4 lines
Alex Damian
Yocto Project

SSG / OTC