* How to add a distro feature from an image recipe?
@ 2014-04-17 11:27 Gabriel Barbu
2014-04-17 11:35 ` Josep Puigdemont
2014-04-17 13:42 ` Paul Eggleton
0 siblings, 2 replies; 9+ messages in thread
From: Gabriel Barbu @ 2014-04-17 11:27 UTC (permalink / raw)
To: openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 406 bytes --]
Hi,
Is there a specific mechanism to add a distro feature from an image recipe?
DISTRO_FEATURES_append does not seem to work from an image-*.bb or from a packagegroup-*.bb.
Or, if not, what would be the best way to achieve this?
The need is that I have a number of images and only want to add a certain distro feature (ptest) to just one or two of them (some test images).
Thanks,
Gabriel
[-- Attachment #2: Type: text/html, Size: 2516 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to add a distro feature from an image recipe?
2014-04-17 11:27 How to add a distro feature from an image recipe? Gabriel Barbu
@ 2014-04-17 11:35 ` Josep Puigdemont
2014-04-17 12:37 ` Gabriel Barbu
2014-04-17 13:42 ` Paul Eggleton
1 sibling, 1 reply; 9+ messages in thread
From: Josep Puigdemont @ 2014-04-17 11:35 UTC (permalink / raw)
To: Gabriel Barbu; +Cc: openembedded-core@lists.openembedded.org
On Thu, Apr 17, 2014 at 11:27:16AM +0000, Gabriel Barbu wrote:
> Hi,
>
>
>
> Is there a specific mechanism to add a distro feature from an image recipe?
>
> DISTRO_FEATURES_append does not seem to work from an image-*.bb or from a
> packagegroup-*.bb.
>
>
> Or, if not, what would be the best way to achieve this?
>
> The need is that I have a number of images and only want to add a certain
> distro feature (ptest) to just one or two of them (some test images).
Couldn't that be achieved by just adding "ptest-pkgs" to IMAGE_FEATURES in the
image recipe? or "ptest-pkgs" to EXTRA_IMAGE_FEATURES in your local.conf?
/Josep
>
>
>
> Thanks,
>
>
>
> Gabriel
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to add a distro feature from an image recipe?
2014-04-17 11:35 ` Josep Puigdemont
@ 2014-04-17 12:37 ` Gabriel Barbu
0 siblings, 0 replies; 9+ messages in thread
From: Gabriel Barbu @ 2014-04-17 12:37 UTC (permalink / raw)
To: Josep Puigdemont; +Cc: openembedded-core@lists.openembedded.org
On 4/17/2014 2:35 PM, Josep Puigdemont wrote:
> On Thu, Apr 17, 2014 at 11:27:16AM +0000, Gabriel Barbu wrote:
>> Hi,
>>
>>
>>
>> Is there a specific mechanism to add a distro feature from an image recipe?
>>
>> DISTRO_FEATURES_append does not seem to work from an image-*.bb or from a
>> packagegroup-*.bb.
>>
>>
>> Or, if not, what would be the best way to achieve this?
>>
>> The need is that I have a number of images and only want to add a certain
>> distro feature (ptest) to just one or two of them (some test images).
>
> Couldn't that be achieved by just adding "ptest-pkgs" to IMAGE_FEATURES in the
> image recipe? or "ptest-pkgs" to EXTRA_IMAGE_FEATURES in your local.conf?
>
> /Josep
>
>>
>>
>>
>> Thanks,
>>
>>
>>
>> Gabriel
>>
>>
>>
>
No, unfortunately not; ptest-pkgs are not sufficient for control of this
feature. If you have ptest in DISTRO_FEATURES, the ptests are still
being built for your image.
It would be possible to disable the feature from local.conf though, but
I would have liked to avoid particularizing this file per image.
Thanks,
Gabriel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to add a distro feature from an image recipe?
2014-04-17 11:27 How to add a distro feature from an image recipe? Gabriel Barbu
2014-04-17 11:35 ` Josep Puigdemont
@ 2014-04-17 13:42 ` Paul Eggleton
2014-04-17 14:24 ` Gabriel Barbu
1 sibling, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2014-04-17 13:42 UTC (permalink / raw)
To: Gabriel Barbu; +Cc: openembedded-core
Hi Gabriel,
On Thursday 17 April 2014 11:27:16 Gabriel Barbu wrote:
> Is there a specific mechanism to add a distro feature from an image recipe?
> DISTRO_FEATURES_append does not seem to work from an image-*.bb or from a
> packagegroup-*.bb.
You can't do this I'm afraid. DISTRO_FEATURES influences how components are
built, and aside from via dependencies and placing files in the sysroot, one
recipe cannot influence how another is built. If you think about how the system
produces package feeds and how these would be expected to be able to be
installed from a running target system, if it were possible to set these kinds
of options from the image you would have situations where you would build one
image and then build another and packages would change, possibly in ways that
would not be compatible with the first image - so that wouldn't be practical.
> Or, if not, what would be the best way to achieve this?
> The need is that I have a number of images and only want to add a certain
> distro feature (ptest) to just one or two of them (some test images).
You can have ptest enabled in the distro but ptest packages installed only in
certain images. That is the only way this kind of thing can work. If enabling
the ptest in DISTRO_FEATURES is causing changes in an image where ptest is not
installed, that should be considered a bug.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to add a distro feature from an image recipe?
2014-04-17 13:42 ` Paul Eggleton
@ 2014-04-17 14:24 ` Gabriel Barbu
2014-04-17 14:28 ` Paul Eggleton
0 siblings, 1 reply; 9+ messages in thread
From: Gabriel Barbu @ 2014-04-17 14:24 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
On 4/17/2014 4:42 PM, Paul Eggleton wrote:
> Hi Gabriel,
>
> On Thursday 17 April 2014 11:27:16 Gabriel Barbu wrote:
>> Is there a specific mechanism to add a distro feature from an image recipe?
>> DISTRO_FEATURES_append does not seem to work from an image-*.bb or from a
>> packagegroup-*.bb.
>
> You can't do this I'm afraid. DISTRO_FEATURES influences how components are
> built, and aside from via dependencies and placing files in the sysroot, one
> recipe cannot influence how another is built. If you think about how the system
> produces package feeds and how these would be expected to be able to be
> installed from a running target system, if it were possible to set these kinds
> of options from the image you would have situations where you would build one
> image and then build another and packages would change, possibly in ways that
> would not be compatible with the first image - so that wouldn't be practical.
>
>> Or, if not, what would be the best way to achieve this?
>> The need is that I have a number of images and only want to add a certain
>> distro feature (ptest) to just one or two of them (some test images).
>
> You can have ptest enabled in the distro but ptest packages installed only in
> certain images. That is the only way this kind of thing can work. If enabling
> the ptest in DISTRO_FEATURES is causing changes in an image where ptest is not
> installed, that should be considered a bug.
>
> Cheers,
> Paul
>
Hi Paul,
Yes, I was afraid it’s this way :)
Alright, I can settle for just not having them installed.
But what I’m witnessing now is that having:
"ptest" in my DISTRO_FEATURES, and
no "ptest-pkgs" in IMAGE_FEATURES
results in the image having ptests installed.
And thanks to your explanation, I understand better I’m likely looking
at a bug.
I will investigate closer.
Thanks,
Gabriel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to add a distro feature from an image recipe?
2014-04-17 14:24 ` Gabriel Barbu
@ 2014-04-17 14:28 ` Paul Eggleton
2014-04-17 14:48 ` Gabriel Barbu
0 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2014-04-17 14:28 UTC (permalink / raw)
To: Gabriel Barbu; +Cc: openembedded-core
On Thursday 17 April 2014 17:24:17 Gabriel Barbu wrote:
> On 4/17/2014 4:42 PM, Paul Eggleton wrote:
> > On Thursday 17 April 2014 11:27:16 Gabriel Barbu wrote:
> >> Or, if not, what would be the best way to achieve this?
> >> The need is that I have a number of images and only want to add a certain
> >> distro feature (ptest) to just one or two of them (some test images).
> >
> > You can have ptest enabled in the distro but ptest packages installed only
> > in certain images. That is the only way this kind of thing can work. If
> > enabling the ptest in DISTRO_FEATURES is causing changes in an image
> > where ptest is not installed, that should be considered a bug.
>
> Yes, I was afraid it’s this way :)
> Alright, I can settle for just not having them installed.
>
> But what I’m witnessing now is that having:
> "ptest" in my DISTRO_FEATURES, and
> no "ptest-pkgs" in IMAGE_FEATURES
> results in the image having ptests installed.
Is that bug 5702, or something else?
https://bugzilla.yoctoproject.org/show_bug.cgi?id=5702
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to add a distro feature from an image recipe?
2014-04-17 14:28 ` Paul Eggleton
@ 2014-04-17 14:48 ` Gabriel Barbu
2014-04-17 14:52 ` Paul Eggleton
0 siblings, 1 reply; 9+ messages in thread
From: Gabriel Barbu @ 2014-04-17 14:48 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
On 4/17/2014 5:28 PM, Paul Eggleton wrote:
> On Thursday 17 April 2014 17:24:17 Gabriel Barbu wrote:
>> On 4/17/2014 4:42 PM, Paul Eggleton wrote:
>>> On Thursday 17 April 2014 11:27:16 Gabriel Barbu wrote:
>>>> Or, if not, what would be the best way to achieve this?
>>>> The need is that I have a number of images and only want to add a certain
>>>> distro feature (ptest) to just one or two of them (some test images).
>>>
>>> You can have ptest enabled in the distro but ptest packages installed only
>>> in certain images. That is the only way this kind of thing can work. If
>>> enabling the ptest in DISTRO_FEATURES is causing changes in an image
>>> where ptest is not installed, that should be considered a bug.
>>
>> Yes, I was afraid it’s this way :)
>> Alright, I can settle for just not having them installed.
>>
>> But what I’m witnessing now is that having:
>> "ptest" in my DISTRO_FEATURES, and
>> no "ptest-pkgs" in IMAGE_FEATURES
>> results in the image having ptests installed.
>
> Is that bug 5702, or something else?
>
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=5702
>
> Cheers,
> Paul
>
Possibly more. Right now I only see:
./dbus-ptest/ptest
./perl/ptest
in a custom image I have, but I will also try with a bigger image to
check if I get more.
Best regards,
Gabriel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to add a distro feature from an image recipe?
2014-04-17 14:48 ` Gabriel Barbu
@ 2014-04-17 14:52 ` Paul Eggleton
2014-04-17 15:21 ` Gabriel Barbu
0 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2014-04-17 14:52 UTC (permalink / raw)
To: Gabriel Barbu; +Cc: openembedded-core
On Thursday 17 April 2014 17:48:48 Gabriel Barbu wrote:
> On 4/17/2014 5:28 PM, Paul Eggleton wrote:
> > On Thursday 17 April 2014 17:24:17 Gabriel Barbu wrote:
> >> On 4/17/2014 4:42 PM, Paul Eggleton wrote:
> >>> On Thursday 17 April 2014 11:27:16 Gabriel Barbu wrote:
> >>>> Or, if not, what would be the best way to achieve this?
> >>>> The need is that I have a number of images and only want to add a
> >>>> certain
> >>>> distro feature (ptest) to just one or two of them (some test images).
> >>>
> >>> You can have ptest enabled in the distro but ptest packages installed
> >>> only
> >>> in certain images. That is the only way this kind of thing can work. If
> >>> enabling the ptest in DISTRO_FEATURES is causing changes in an image
> >>> where ptest is not installed, that should be considered a bug.
> >>
> >> Yes, I was afraid it’s this way :)
> >> Alright, I can settle for just not having them installed.
> >>
> >> But what I’m witnessing now is that having:
> >> "ptest" in my DISTRO_FEATURES, and
> >> no "ptest-pkgs" in IMAGE_FEATURES
> >> results in the image having ptests installed.
> >
> > Is that bug 5702, or something else?
> >
> > https://bugzilla.yoctoproject.org/show_bug.cgi?id=5702
> >
> > Cheers,
> > Paul
>
> Possibly more. Right now I only see:
> ./dbus-ptest/ptest
> ./perl/ptest
>
> in a custom image I have, but I will also try with a bigger image to
> check if I get more.
So the dbus-ptest one we're aware of (and the fix is on the mailing list) but
it would be interesting to know how the perl-ptest one got there.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to add a distro feature from an image recipe?
2014-04-17 14:52 ` Paul Eggleton
@ 2014-04-17 15:21 ` Gabriel Barbu
0 siblings, 0 replies; 9+ messages in thread
From: Gabriel Barbu @ 2014-04-17 15:21 UTC (permalink / raw)
To: Paul Eggleton; +Cc: openembedded-core
On 4/17/2014 5:52 PM, Paul Eggleton wrote:
> On Thursday 17 April 2014 17:48:48 Gabriel Barbu wrote:
>> On 4/17/2014 5:28 PM, Paul Eggleton wrote:
>>> On Thursday 17 April 2014 17:24:17 Gabriel Barbu wrote:
>>>> On 4/17/2014 4:42 PM, Paul Eggleton wrote:
>>>>> On Thursday 17 April 2014 11:27:16 Gabriel Barbu wrote:
>>>>>> Or, if not, what would be the best way to achieve this?
>>>>>> The need is that I have a number of images and only want to add a
>>>>>> certain
>>>>>> distro feature (ptest) to just one or two of them (some test images).
>>>>>
>>>>> You can have ptest enabled in the distro but ptest packages installed
>>>>> only
>>>>> in certain images. That is the only way this kind of thing can work. If
>>>>> enabling the ptest in DISTRO_FEATURES is causing changes in an image
>>>>> where ptest is not installed, that should be considered a bug.
>>>>
>>>> Yes, I was afraid it’s this way :)
>>>> Alright, I can settle for just not having them installed.
>>>>
>>>> But what I’m witnessing now is that having:
>>>> "ptest" in my DISTRO_FEATURES, and
>>>> no "ptest-pkgs" in IMAGE_FEATURES
>>>> results in the image having ptests installed.
>>>
>>> Is that bug 5702, or something else?
>>>
>>> https://bugzilla.yoctoproject.org/show_bug.cgi?id=5702
>>>
>>> Cheers,
>>> Paul
>>
>> Possibly more. Right now I only see:
>> ./dbus-ptest/ptest
>> ./perl/ptest
>>
>> in a custom image I have, but I will also try with a bigger image to
>> check if I get more.
>
> So the dbus-ptest one we're aware of (and the fix is on the mailing list) but
> it would be interesting to know how the perl-ptest one got there.
>
> Cheers,
> Paul
>
Right, I will investigate.
Best regards,
Gabriel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2014-04-17 15:21 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17 11:27 How to add a distro feature from an image recipe? Gabriel Barbu
2014-04-17 11:35 ` Josep Puigdemont
2014-04-17 12:37 ` Gabriel Barbu
2014-04-17 13:42 ` Paul Eggleton
2014-04-17 14:24 ` Gabriel Barbu
2014-04-17 14:28 ` Paul Eggleton
2014-04-17 14:48 ` Gabriel Barbu
2014-04-17 14:52 ` Paul Eggleton
2014-04-17 15:21 ` Gabriel Barbu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox