<?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>5724</bug_id>
          
          <creation_ts>2014-01-14 14:46:27 +0000</creation_ts>
          <short_desc>bitbake -e sometimes is not useful</short_desc>
          <delta_ts>2014-03-27 10:18:13 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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>enhancement</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>39801</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2014-01-14 14:46:27 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39802</commentid>
    <comment_count>1</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2014-01-14 14:49:22 +0000</bug_when>
    <thetext>Sometimes &apos;bitbake -e recipe&apos; only prints an error and not the useful variable dump.

To recreate this using OE-core, simply remove x11 from DISTRO_FESTURES, e.g. in local.conf
  DISTRO_FEATURES_remove = &quot;x11&quot;

Then you will see this error:

$ bitbake -e virtual/libx11
WARNING: Host distribution &quot;Fedora-13&quot; has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |##################################################################################| ETA:  00:00:00
Loaded 1188 entries from dependency cache.
ERROR: Nothing PROVIDES &apos;virtual/libx11&apos;
ERROR: libx11-diet PROVIDES virtual/libx11 but was skipped: missing required distro feature [&apos;x11&apos;] (not in DISTRO_FEATURES)
ERROR: libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature [&apos;x11&apos;] (not in DISTRO_FEATURES)
ERROR: nativesdk-libx11 PROVIDES virtual/libx11 but was skipped: missing required distro feature [&apos;x11&apos;] (not in DISTRO_FEATURES)

It seems to only happen on virtual targets.  A similar test
  $ bitbake -e gst-plugins-base
will yield the correct dump.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39867</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-01-16 15:51:18 +0000</bug_when>
    <thetext>I wonder if we should put errors out to stderr so that they don&apos;t get redirected by default, and thus would have been visible in this case. This would be easy to do but would be a change in established behaviour.

(That&apos;s assuming we can&apos;t just bypass errors like this when -e is used.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41779</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-03-26 16:35:35 +0000</bug_when>
    <thetext>I&apos;d like to understand which bug we&apos;re trying to fix here.

Removing x11 from DISTRO_FEATURES and then trying to build libx11 is going to generate an error since the x11 recipes don&apos;t parse in that scenerio and nothing does provide libx11. The error message provided does even say what the problem is.

So is the real issue this bug is addressing that error messages go to stdout? If we fix that are we done here? I suspect there is some context I&apos;m missing, maybe a discussion between Gary and Paul about a specific bug this triggered?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41800</commentid>
    <comment_count>4</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2014-03-26 21:18:38 +0000</bug_when>
    <thetext>This came as a result of this thread:
  https://lists.yoctoproject.org/pipermail/yocto/2014-January/017825.html

Basically, I was trying to create a QTe environment, so X11 was removed from
DISTRO_FEATURES which yielded an inconsistency error.  The recommendation was
to use &apos;bitbake -e&apos; to diagnose it, but this proved unworkable because the
process bailed before printing any of the useful variables which might help
diagnose the situation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41820</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-03-27 10:18:13 +0000</bug_when>
    <thetext>Code to make stdout/stderr work better is now in:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=6ef47ec5fdec8f4b1315dc269b50a02c5b58fbaf</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>