<?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>9927</bug_id>
          
          <creation_ts>2016-07-13 17:20:00 +0000</creation_ts>
          <short_desc>yocto-bsp: listing properties stdout and data send to -o option should be the same</short_desc>
          <delta_ts>2017-11-03 18:53:26 +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>Scripts and Tools</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Humberto Ibarra">humberto.ibarra.lopez</reporter>
          <assigned_to name="Daniela Plascencia">daniela.plascencia</assigned_to>
          <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</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>63936</commentid>
    <comment_count>0</comment_count>
    <who name="Humberto Ibarra">humberto.ibarra.lopez</who>
    <bug_when>2016-07-13 17:20:00 +0000</bug_when>
    <thetext>A json is saved if -o &lt;filename&gt; is given to &apos;yocto-bsp list &lt;arch&gt; --properties&apos;, this json is correctly formatted.

However, an output is also send to stdout, and is the same data but wrongly formatted:

[humberto@jhibarra-MOBL1 build]$ yocto-bsp list x86_64 --properties &gt; propfile2
[humberto@jhibarra-MOBL1 build]$ yocto-bsp list x86_64 --properties -o propfile

In the last example propfile and propfile2 are not the same. While propfile is correctly formatted, propfile 2 is missing commas, enclosing branches and has weird &apos;if&apos; keys such as :

&quot;if kernel_choice == &quot;linux-yocto-dev&quot;:&quot; :
{
   &quot;smp&quot; : {
...
}
...
}

NOTE. propfile also has these if logical/json elements, but are formatted as strings:

&quot;if kernel_choice == \&quot;linux-yocto_4.4\&quot;:&quot;: {
  &quot;need_new_kbranch&quot;: {
   &quot;prio&quot;: &quot;20&quot;,
   &quot;filename&quot;: &quot;/home/humberto/poky-dev/scripts/lib/bsp/substrate/target/arch/x86_64/recipes-kernel/linux/linux-yocto_4.4.bbappend&quot;,
   &quot;default&quot;: &quot;y&quot;,
   &quot;msg&quot;: &quot;Do you need a new machine branch for this BSP (the alternative is to re-use an existing branch)? [y/n]&quot;,
   &quot;type&quot;: &quot;boolean&quot;
  },

...
}&quot;


It makes sense to have stdout and -o option show the same output since it is unclear if the output shown by stdout has some kind of advantage over the better formated -o output. However, if we are to show them exactly the same we could question why -o option is needed in the first place if we are going to send the same info to stdout.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77212</commentid>
    <comment_count>1</comment_count>
    <who name="Daniela Plascencia">daniela.plascencia</who>
    <bug_when>2017-09-28 22:13:13 +0000</bug_when>
    <thetext>Moving to 2.5 M1. I&apos;m planning to tackle these bugs during 2.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77957</commentid>
    <comment_count>2</comment_count>
    <who name="Daniela Plascencia">daniela.plascencia</who>
    <bug_when>2017-11-03 18:53:26 +0000</bug_when>
    <thetext>The yocto-bsp script, along with yocto-layer and yocto-kernel, will be removed from public repositories soon as they are no longer maintained. The request was sent to the mailing list [1], meaning this issue is obsolete.

[1] https://lists.yoctoproject.org/pipermail/poky/2017-October/011135.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>