<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5023</bug_id>
          
          <creation_ts>2013-08-19 18:45:42 +0000</creation_ts>
          <short_desc>EXTRA_IMAGE_FEATURES += &quot;tools-sdk&quot; does return ERROR</short_desc>
          <delta_ts>2015-02-03 17:46:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M3</target_milestone>
          
          <blocked>5052</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Daiane">angolini</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>otavio</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35747</commentid>
    <comment_count>0</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2013-08-19 18:45:42 +0000</bug_when>
    <thetext>I added EXTRA_IMAGE_FEATURES += &quot;tools-sdk&quot; to my local.cond and tried to build core-image-base. 

Please, see the ERROR:

$ ~/master/build$ bitbake core-image-base
Loading cache: 100% |####################################################################################################################################| ETA:  00:00:00
Loaded 1691 entries from dependency cache.
ERROR: &apos;tools-sdk&apos; in IMAGE_FEATURES is not a valid image feature. Valid features: dbg-pkgs debug-tweaks dev-pkgs doc-pkgs package-management ptest-pkgs read-only-rootfs splash staticdev-pkgs
ERROR: &apos;tools-sdk&apos; in IMAGE_FEATURES is not a valid image feature. Valid features: dbg-pkgs debug-tweaks dev-pkgs doc-pkgs package-management ptest-pkgs read-only-rootfs splash staticdev-pkgs
ERROR: Unable to parse /home/daiane/master/sources/meta-fsl-demos/recipes-qt/images/qt-in-use-image.bb: Exited with &quot;1&quot;
ERROR: Command execution failed: Exited with 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35751</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-08-19 22:57:52 +0000</bug_when>
    <thetext>Can you provide more information about what version you are using and a copy of 
your local.conf, I am trying to reproduce this and could not.  It might be 
something in the fsl layers, please also check the output of bitbake -e 
core-image-base and grep for ^PACKAGE_GROUP_ since that&apos;s the trigger for valid 
image features.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35753</commentid>
    <comment_count>2</comment_count>
      <attachid>1433</attachid>
    <who name="Daiane">angolini</who>
    <bug_when>2013-08-20 00:41:32 +0000</bug_when>
    <thetext>Created attachment 1433
output for bitbake -e core-image-base

This was the result if I *do not* include EXTRA_IMAGE_FEATURES += &quot;tools-sdk&quot; on my local.conf.

If I include this, I get an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35754</commentid>
    <comment_count>3</comment_count>
      <attachid>1434</attachid>
    <who name="Daiane">angolini</who>
    <bug_when>2013-08-20 00:44:12 +0000</bug_when>
    <thetext>Created attachment 1434
local.conf used to generate the ERROR</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35755</commentid>
    <comment_count>4</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2013-08-20 00:47:28 +0000</bug_when>
    <thetext>Build Configuration:
BB_VERSION        = &quot;1.19.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-13.04&quot;
TARGET_SYS        = &quot;arm-poky-linux-gnueabi&quot;
MACHINE           = &quot;imx6qsabresd&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.4+snapshot-20130820&quot;
TUNE_FEATURES     = &quot;armv7a vfp neon&quot;
TARGET_FPU        = &quot;vfp-neon&quot;
meta              
meta-yocto        = &quot;wand:73b8b10155793bb2d42b0e894606af59c4381e29&quot;
meta-oe           = &quot;wand:d4571b3d94d999ad54d8965f0d049dcfd34da504&quot;
meta-fsl-arm      = &quot;wand-master-next:1663874ee7ff6607a2685929c27695fe21c8ceb8&quot;
meta-fsl-arm-extra = &quot;master-next:4263abc07b86ea8fc087495490f6ed35bb93b119&quot;
meta-fsl-demos    = &quot;oia:833c511f9490c5a5a73e75f11b0c71b88c8b0914&quot;


I included the result for bitbake -e core-image-base when I *do not* have EXTRA_IMAGE_FEATURES += &quot;tools-sdk&quot;

If I include I get the error:
daiane@lola:~/code/master/build$ bitbake -e core-image-base 
Loading cache: 100% |########################################################################################################################################################################| ETA:  00:00:00
Loaded 1688 entries from dependency cache.
ERROR: &apos;tools-sdk&apos; in IMAGE_FEATURES is not a valid image feature. Valid features: dbg-pkgs debug-tweaks dev-pkgs doc-pkgs package-management ptest-pkgs read-only-rootfs splash staticdev-pkgsETA:  --:--:--
ERROR: &apos;tools-sdk&apos; in IMAGE_FEATURES is not a valid image feature. Valid features: dbg-pkgs debug-tweaks dev-pkgs doc-pkgs package-management ptest-pkgs read-only-rootfs splash staticdev-pkgs
ERROR: Unable to parse /home/daiane/code/master/sources/meta-fsl-demos/recipes-qt/images/qte-in-use-image.bb: Exited with &quot;1&quot;
ERROR: Command execution failed: Exited with 1





********************
Please, in case you think I can test without meta-fsl-arm on bblayers, let me know what should be the MACHINE</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35758</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-08-20 02:54:41 +0000</bug_when>
    <thetext>A couple of things, what&apos;s different in your meta layer? The git reference is 
not valid in master at all.  Where can I find the meta-fsl-demo layer?

Can you try it 2 ways, one without meta-fsl layers and use MACHINE=qemuarm or 
MACHINE=beagleboard, then also try a pure poky from master.

I wonder if the error we see is miss leading because there is an error with 
ERROR: Unable to parse 
/home/daiane/code/master/sources/meta-fsl-demos/recipes-qt/images/qte-in-use-image.bb: 
Exited with &quot;1&quot;

So I want to see the qte-in-use-image.bb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35787</commentid>
    <comment_count>6</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2013-08-20 19:42:43 +0000</bug_when>
    <thetext>This is qte-in-use-image.bb:

https://github.com/Freescale/meta-fsl-demos/blob/master/recipes-qt/images/qte-in-use-image.bb

1) I removed meta-fsl-arm and meta-fsl-demos from bblayers, tested MACHINE=&quot;qemuarm&quot; with no error.

2) I used meta-fsl-arm + poky + meta-oe on bblayers (removed meta-fsl-demos only) and tried again with my usual machine. no error.

3) Then I changed my meta-fsl-demos:

$~/master/sources/meta-fsl-demos$ git diff
diff --git a/recipes-qt/images/qt-in-use-common.inc b/recipes-qt/images/qt-in-use-common.inc
index aaaa2a5..c84c1b1 100644
--- a/recipes-qt/images/qt-in-use-common.inc
+++ b/recipes-qt/images/qt-in-use-common.inc
@@ -29,4 +29,4 @@ QT_DEMOS = &quot; \
 
 do_rootfs[depends] += &quot;virtual/kernel:do_populate_sysroot&quot;
 
-inherit image
+inherit core-image

And I got *no* error. So, the root cause seems to be &quot;inherit image&quot; instead of &quot;inherit core-image&quot;. Is class image deprecated? Do you have any suggestion?

thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35790</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-08-20 19:59:31 +0000</bug_when>
    <thetext>Aha!  There&apos;s your problem your inheriting image, which does not define any of 
the IMAGE_FEATURES or PACKAGE_GROUPS that are needed. image.bbclass is not 
deprecated it is used by core-image.bbclass.

Your patch is the correct patch to make to the qt-in-use-common.inc file, it 
should be using core-image if you want to rely on being able to use 
IMAGE_FEATURES, so it&apos;s not a bug in oe-core but in the fsl-demo layer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35793</commentid>
    <comment_count>8</comment_count>
    <who name="Daiane">angolini</who>
    <bug_when>2013-08-20 20:07:35 +0000</bug_when>
    <thetext>Well, I&apos;m sorry for reporting the error, as it is not a oe-core error.

As you may see, the qte-in-use-image is at least one years old. And I never got this error before.

And, I was trying to add &quot;tools-sdk&quot; to EXTRA_IMAGE_FEATURES, not IMAGE_FEATURES.

And I was not trying qte-in-use-image, but core-image-base.

That altogether made me think it was a error from oe-core. At least the reported error message.

Thanks a lot for your attention and time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35898</commentid>
    <comment_count>9</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-08-24 17:57:23 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; Aha!  There&apos;s your problem your inheriting image, which does not define any
&gt; of 
&gt; the IMAGE_FEATURES or PACKAGE_GROUPS that are needed. image.bbclass is not 
&gt; deprecated it is used by core-image.bbclass.
&gt; 
&gt; Your patch is the correct patch to make to the qt-in-use-common.inc file, it 
&gt; should be using core-image if you want to rely on being able to use 
&gt; IMAGE_FEATURES, so it&apos;s not a bug in oe-core but in the fsl-demo layer.

I applied Daiane patch in meta-fsl-demos but this workaround a bug. The OE-Core cannot bail out if I am not building the specific image. As Daiane said, she were not /building/ qt-in-use image and OE-Core raised the error in any case.

This sounds me as a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36059</commentid>
    <comment_count>10</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2013-08-29 20:22:12 +0000</bug_when>
    <thetext>There&apos;re some more info capturedin 5052</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48358</commentid>
    <comment_count>11</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-01-28 11:56:42 +0000</bug_when>
    <thetext>I&apos;ve finally sent a fix to simply skip the recipe, so the error only shows up when explicitly building the broken recipe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48524</commentid>
    <comment_count>12</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-02-03 17:46:34 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=69c588b66d5d44ed97e21826ff2501c76e5b4ea8</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1433</attachid>
            <date>2013-08-20 00:41:32 +0000</date>
            <delta_ts>2013-08-20 00:41:32 +0000</delta_ts>
            <desc>output for bitbake -e core-image-base</desc>
            <filename>bitbake_e.txt</filename>
            <type>text/plain</type>
            <size>884</size>
            <attacher name="Daiane">angolini</attacher>
            
              <data encoding="base64">ZGFpYW5lQGxvbGE6fi9jb2RlL21hc3Rlci9idWlsZCQgYml0YmFrZSAtZSBjb3JlLWltYWdlLWJh
c2UgfCBncmVwIF5QQUNLQUdFX0dST1VQClBBQ0tBR0VfR1JPVVBfcGFja2FnZS1tYW5hZ2VtZW50
PSJycG0gc21hcnRwbSIKUEFDS0FHRV9HUk9VUF9zcGxhc2g9InBzcGxhc2giClBBQ0tBR0VfR1JP
VVBfc3NoLXNlcnZlci1kcm9wYmVhcj0icGFja2FnZWdyb3VwLWNvcmUtc3NoLWRyb3BiZWFyIgpQ
QUNLQUdFX0dST1VQX3F0NC1wa2dzPSJwYWNrYWdlZ3JvdXAtY29yZS1xdC1kZW1vYXBwcyIKUEFD
S0FHRV9HUk9VUF90b29scy1wcm9maWxlPSJwYWNrYWdlZ3JvdXAtY29yZS10b29scy1wcm9maWxl
IgpQQUNLQUdFX0dST1VQX3gxMS1zYXRvPSJwYWNrYWdlZ3JvdXAtY29yZS14MTEtc2F0byIKUEFD
S0FHRV9HUk9VUF9zc2gtc2VydmVyLW9wZW5zc2g9InBhY2thZ2Vncm91cC1jb3JlLXNzaC1vcGVu
c3NoIgpQQUNLQUdFX0dST1VQX2VjbGlwc2UtZGVidWc9InBhY2thZ2Vncm91cC1jb3JlLWVjbGlw
c2UtZGVidWciClBBQ0tBR0VfR1JPVVBfdG9vbHMtdGVzdGFwcHM9InBhY2thZ2Vncm91cC1jb3Jl
LXRvb2xzLXRlc3RhcHBzIgpQQUNLQUdFX0dST1VQX25mcy1zZXJ2ZXI9InBhY2thZ2Vncm91cC1j
b3JlLW5mcy1zZXJ2ZXIiClBBQ0tBR0VfR1JPVVBfdG9vbHMtZGVidWc9InBhY2thZ2Vncm91cC1j
b3JlLXRvb2xzLWRlYnVnIgpQQUNLQUdFX0dST1VQX3gxMT0icGFja2FnZWdyb3VwLWNvcmUteDEx
IgpQQUNLQUdFX0dST1VQX3gxMS1iYXNlPSJwYWNrYWdlZ3JvdXAtY29yZS14MTEtYmFzZSIKUEFD
S0FHRV9HUk9VUF90b29scy1zZGs9InBhY2thZ2Vncm91cC1jb3JlLXNkayBwYWNrYWdlZ3JvdXAt
Y29yZS1zdGFuZGFsb25lLXNkay10YXJnZXQiCgo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1434</attachid>
            <date>2013-08-20 00:44:12 +0000</date>
            <delta_ts>2013-08-20 00:44:12 +0000</delta_ts>
            <desc>local.conf used to generate the ERROR</desc>
            <filename>local.conf</filename>
            <type>application/octet-stream</type>
            <size>539</size>
            <attacher name="Daiane">angolini</attacher>
            
              <data encoding="base64">TUFDSElORSA/Pz0gJ2lteDZxc2FicmVzZCcKRElTVFJPID89ICdwb2t5JwpQQUNLQUdFX0NMQVNT
RVMgPz0gInBhY2thZ2VfcnBtIgpFWFRSQV9JTUFHRV9GRUFUVVJFUyA9ICJkZWJ1Zy10d2Vha3Mi
ClVTRVJfQ0xBU1NFUyA/PSAiYnVpbGRzdGF0cyBpbWFnZS1ta2xpYnMgaW1hZ2UtcHJlbGluayIK
UEFUQ0hSRVNPTFZFID0gIm5vb3AiCkJCX0RJU0tNT05fRElSUyA9ICJcCiAgICBTVE9QVEFTS1Ms
JHtUTVBESVJ9LDFHLDEwMEsgXAogICAgU1RPUFRBU0tTLCR7RExfRElSfSwxRywxMDBLIFwKICAg
IFNUT1BUQVNLUywke1NTVEFURV9ESVJ9LDFHLDEwMEsgXAogICAgQUJPUlQsJHtUTVBESVJ9LDEw
ME0sMUsgXAogICAgQUJPUlQsJHtETF9ESVJ9LDEwME0sMUsgXAogICAgQUJPUlQsJHtTU1RBVEVf
RElSfSwxMDBNLDFLIiAKQ09ORl9WRVJTSU9OID0gIjEiCgpCQl9OVU1CRVJfVEhSRUFEUyA9ICc4
JwpQQVJBTExFTF9NQUtFID0gJy1qIDgnCkFDQ0VQVF9GU0xfRVVMQSA9ICIiCgpFWFRSQV9JTUFH
RV9GRUFUVVJFUyArPSAidG9vbHMtc2RrIgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>