[yocto] sstate-cache and native recipes

Jussi Kukkonen jussi.kukkonen at intel.com
Wed Jan 18 03:27:50 PST 2017


On 18 January 2017 at 11:51, Gary Thomas <gary at mlbassoc.com> wrote:

> On 2017-01-18 10:35, Burton, Ross wrote:
>
>>
>> On 18 January 2017 at 09:13, Gary Thomas <gary at mlbassoc.com <mailto:
>> gary at mlbassoc.com>> wrote:
>>
>>     * glib-2.0-native depends on ${DISTRO_FEATURES}
>>       To me this seems silly as "native" should be "native" and
>>       not depend on any distribution settings.  Here's the code
>>       that's causing it (in do_install)
>>
>>             if [ -f ${D}${datadir}/installed-tests/glib/gdbus-serialization.test
>> ]; then
>>                     if ${@bb.utils.contains("DISTRO_FEATURES", "x11",
>> "false", "true", d)}; then
>>                             rm ${D}${datadir}/installed-tests
>> /glib/gdbus-serialization.test
>>                     fi
>>             fi
>>
>>       Obviously this isn't important for a native package.  Any
>>       suggestions on how I might keep this from creeping in?
>>
>>
>> The tests are only installed for target builds anyway, so that do_install
>> part could be target-specific.
>>
>
> How would one change the recipe to reflect that?  Is there an
> override that effectively says "not -native"?
>

do_install_append_class-target () should work.

 - Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170118/12056236/attachment.html>


More information about the yocto mailing list