<?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>1803</bug_id>
          
          <creation_ts>2011-12-01 14:42:41 +0000</creation_ts>
          <short_desc>Add helper shell commands</short_desc>
          <delta_ts>2018-01-18 16:19:09 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock - Disabled">josh</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>Martin.Jansa</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>scott.a.garman</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>17460</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock - Disabled">josh</who>
    <bug_when>2011-12-01 14:42:41 +0000</bug_when>
    <thetext>It&apos;d be a great usability enhancement to implement a suite of shell commands to help CLI users interoperate with the system which are &apos;enabled&apos; when the oe-init-build-env script is sourced. Some examples to get us started:

oecd PN - change into the directory containing metadata for the package PN.

oeed PN &lt;FILE&gt; - open the recipe file for PN with $EDITOR, if the optional FILE is passed open file FILE within the tree of PN.

oels PN &lt;SUBDIR&gt; - list the contents of the metadata directory for PN.

Example usage:

joshual@shamshir:~/Projects/Yocto/poky
$ oels connman
connman-0.75   connman-gnome_0.5.bb  connman_0.75.bb
connman-gnome  connman.inc

joshual@shamshir:~/Projects/Yocto/poky
$ oels connman connman-0.75
add_xuser_dbus_permission.patch  dbusperms.patch
connman                          xtables_version.patch


joshual@shamshir:~/Projects/Yocto/poky
$ oecd connman
$ ls
connman-0.75   connman-gnome_0.5.bb  connman_0.75.bb
connman-gnome  connman.inc           connman_git.bb

joshual@shamshir:~/Projects/Yocto/poky
$ oecd connman connman-gnome
$ ls
3g.patch  security-type.patch
$ pwd
/home/joshual/Projects/Yocto/poky/meta/recipes-connectivity/connman/connman-gnome


joshual@shamshir:~/Projects/Yocto/poky
$ oeed connman
There are two bb recipes in /home/joshual/Projects/Yocto/poky/meta/recipes-connectivity/connman, please select an option and press return to continue, return with no selection will pick the default (*):
1) connman_0.75.bb (*)
2) connman-gnome_0.5.bb
3) connman.inc
&lt;&lt;Return loads /home/joshual/Projects/Yocto/poky/meta/recipes-connectivity/connman/connman_0.75.bb with $EDITOR&gt;&gt;

joshual@shamshir:~/Projects/Yocto/poky
$ oeed connman xtables_version.patch
&lt;&lt;Loads /home/joshual/Projects/Yocto/poky/meta/recipes-connectivity/connman/connman-0.75/xtables_version.patch with $EDITOR&gt;&gt;

It will be necessary to have the commands be aware of bblayers.conf entries and the layers&apos; priorities.
I envisage that under the hood these commands would just be running find over the enabled layers with some simple heuristics (search higher priority layers first, etc).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43096</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2014-05-03 17:38:26 +0000</bug_when>
    <thetext>We wanted to document our own developer workflows for different types of developers, that could be great source of commands which should be simplified by these helpers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45799</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-09-24 13:50:10 +0000</bug_when>
    <thetext>Martin: I&apos;d love to see any workflow documentation like that you might have...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55563</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-10-21 14:41:55 +0000</bug_when>
    <thetext>devtool accomplishes at least part of where I think this was aimed, FWIW.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79146</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2018-01-18 16:19:09 +0000</bug_when>
    <thetext>devtool is able to accomplish the tricky parts of what this bug requests and is a more complete solution to simplifying working with OE metadata, in light of devtool these helpers don&apos;t make much sense.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>