<?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>4856</bug_id>
          
          <creation_ts>2013-07-16 14:56:37 +0000</creation_ts>
          <short_desc>Improve usability of bitbake -c listtasks</short_desc>
          <delta_ts>2014-03-20 11:34:40 +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>1.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>20 March 2014: Doc flag reset</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="mulhern">mulhern</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34608</commentid>
    <comment_count>0</comment_count>
    <who name="mulhern">mulhern</who>
    <bug_when>2013-07-16 14:56:37 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34609</commentid>
    <comment_count>1</comment_count>
    <who name="mulhern">mulhern</who>
    <bug_when>2013-07-16 15:34:09 +0000</bug_when>
    <thetext>bitbake is not so informative about commands that are available with --cmd flag.

One possibility would be that if you enter an unavailable task it will give you an error message and show you the list of available tasks whenever possible.

I&apos;m not sure what the sentence &quot;Depending on the base.bbclass a listtasks tasks is defined and will show available tasks&quot; means but I think it is a little too specific about internals. I think it is intended to mean &quot;The listtasks task will show the tasks available for the specified package.&quot; But it might mean the &quot;The listtasks task may or may not be available...but if it is it will show you the other tasks available for the specified package.&quot; There is also a small typo, &quot;tasks&quot; should be &quot;task&quot;.

Maybe if listtasks _is_ always available that could show up more obviously in the help text.

If it were possible to make listtasks a completely separate flag, not one of the cmd flags, that would also be more intuitive, I think.

If it were somehow possible to have a one sentence description of each task along with the help text that would also be great.

Also, if it were possible to order the tasks in some fashion, especially in some dependency order, that would be great.

I know this is nitpicky...but would have been most helpful when I first started out, and would probably be fairly helpful now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36917</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-09-18 22:36:23 +0000</bug_when>
    <thetext>The --help text was atrocious, thanks for raising the issue. I&apos;ve posted a patch onto the bitbake mailing list with some improvements.

For the second part of this, I think there may be a good case for a bitbake command which prints the target names and their SUMMARY field. I&apos;m therefore going to adapt the bug as an enhancement for that. This would be a good command for our planned bitbake interaction work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40644</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-02-24 16:11:41 +0000</bug_when>
    <thetext>(Changing title to more closely reflect the original report.)

I&apos;ve sent a patch to add the new task descriptions we added for Toaster to -c listtasks as well as sorting the list alphabetically. I did look at a dependency sort, but that&apos;s a topological sort, and given no such function is shipped as part of the python standard libraries it would seem excessive to pull one in just for this. In any case, I&apos;m not sure that for the data we have this would lead to any particularly pleasing result - this is meant as a reference of the available tasks, not to show what order the tasks will execute, which is too complex for a sequential list anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40665</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-02-25 10:27:02 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e4d1779c82a64bcaa1e5dca65c536a85dd684226

Unfortunately we can&apos;t really tweak the help text based on the metadata, because we want to show the help text before reading anything from the metadata; so I think we&apos;re stuck with the comment that refers to listtasks possibly being available.

Regarding Richard&apos;s comment about showing a list of recipes with SUMMARY, I think that&apos;s something that would fit better in the &quot;bb&quot; utility:

https://github.com/kergoth/bb

So I think we&apos;ve addressed pretty much all of the comments. Please feel free to re-open or add another enhancement request if there&apos;s anything missing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41516</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-03-20 11:34:40 +0000</bug_when>
    <thetext>Hi, 

This fix does not impact user documentation.  I am resetting the documentation flag to &quot;Done&quot;.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>