<?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>11571</bug_id>
          
          <creation_ts>2017-05-24 17:11:54 +0000</creation_ts>
          <short_desc>yocto-compat-layer-wrapper: does not generate the output log when given the -o option</short_desc>
          <delta_ts>2017-06-09 16:45:54 +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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Libertad">libertad.gonzalez.de.la.cruz</reporter>
          <assigned_to name="Aníbal Limón">anibal.limon</assigned_to>
          <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>73473</commentid>
    <comment_count>0</comment_count>
    <who name="Libertad">libertad.gonzalez.de.la.cruz</who>
    <bug_when>2017-05-24 17:11:54 +0000</bug_when>
    <thetext>DESCRIPTION:  
The yocto-compat-layer-wrapper does not pass down the option -o to the yocto-compat-layer.py since the log is not created. 

Also the yocto-compat-layer-wrapper calls on to source the oe-init-build-env every time you run it. this is confusing since to be able to run this command I required to source oe-init-build-env  before hand.

ENVIRONMENT SETUP:
1. commit 3e655f9c7f0f4f778dc9eedd9f7405fc84b4c9ad
2. Laptop OS ---&gt; Debian 4.3.5-1~bpo8+1

STEPS TO REPRODUCE:
1. clone poky from git
2. source oe-init-build-env build
3. yocto-compat-layer-wrapper LAYER_DIR ../meta-extras/ -o error.log
4. ls to see if the error.log file was created. No error log created
5. yocto-compat-layer-wrapper -o error.log LAYER_DIR ../meta-extras/ 
6. ls to see if the error.log file was created. No error log created
7. yocto-compat-layer.py LAYER_DIR ../meta-extras/ -o error.log
8. ls  error.log file was created successfully.

OUTPUT EXPECTED: 
since yocto-compat-layer-wrapper passes the values and calls internally yocto-compat-layer.py. I expected both scripts to give the same output and act the same.

When running yocto-compat-layer-wrapper like in step 3 and 5 it sources again the oe-init-build-env.

When running the yocto-compat-layer.py like in step 7 it does not source the oe-init-build-env 

Its confusing to have yocto-compat-layer-wrapper run the source every time you run it including when ran with the --help option.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73704</commentid>
    <comment_count>1</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-06-05 22:07:59 +0000</bug_when>
    <thetext>Review at,

http://lists.openembedded.org/pipermail/openembedded-core/2017-June/137576.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73952</commentid>
    <comment_count>2</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2017-06-09 16:45:54 +0000</bug_when>
    <thetext>Merge at,

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

    </bug>

</bugzilla>