<?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>11057</bug_id>
          
          <creation_ts>2017-02-15 12:05:09 +0000</creation_ts>
          <short_desc>yocto-layer creates faulty example</short_desc>
          <delta_ts>2017-04-04 17:36:12 +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>Other YP Layers</product>
          <component>layers</component>
          <version>2.2.1</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</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>70714</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2017-02-15 12:05:09 +0000</bug_when>
    <thetext>Use morty and in cooker mode: 

1) yocto-layer create my-yocto-layer

+ ---&gt; enter something like this
Please enter the layer priority you&apos;d like to use for the layer: [default: 6]
Would you like to have an example recipe created? (y/n) [default: n] y
Please enter the name you&apos;d like to use for your example recipe: [default: example]
Would you like to have an example bbappend file created? (y/n) [default: n] y
Please enter the name you&apos;d like to use for your bbappend file: [default: example]
Please enter the version number you&apos;d like to use for your bbappend file (this should match the recipe you&apos;re appending to): [default: 0.1]

New layer created in meta-my-yocto-layer.

Don&apos;t forget to add it to your BBLAYERS (for details see meta-my-yocto-layer README).

+ &lt;--- enter something like this

2) bitbake example

ERROR: example-0.1-r0 do_package_qa: QA Issue: No GNU_HASH in the elf binary: &apos;/tmp/yocto-autobuilder/yocto-autobuilder/yocto-worker/res-custom-morty-multi-v7-core-image-minimal/build/build/tmp/work/armv7a-neon-poky-linux-gnueabi/example/0.1-r0/packages-split/example/usr/bin/helloworld&apos; [ldflags]
ERROR: example-0.1-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: example-0.1-r0 do_package_qa: Function failed: do_package_qa

3) proposed fix:

https://github.com/RobertBerger/poky/commit/185a0d9853462a2c04066cc5519a366c43c44079?diff=unified</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72079</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-04-04 17:36:12 +0000</bug_when>
    <thetext>Fix by

commit 9d4a69fd0de8fc52fa80ea14a437ad5d0e368d84
Author: Alejandro Hernandez &lt;alejandro.hernandez@linux.intel.com&gt;
Date:   Tue Dec 13 10:41:12 2016 -0600

    example-recipe: Fix LDFLAGS compilation issue on newly created recipes
    
    (From meta-yocto rev: aa3e99e24c3234b6f3f19169939d4cd498d0ce36)
    
    Signed-off-by: Alejandro Hernandez &lt;alejandro.hernandez@linux.intel.com&gt;
    Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;


and tested at

commit eff56e4f0d59b1d965a68e4f009b7f07717b7edd
Author: Scott Rifenbark &lt;srifenbark@gmail.com&gt;
Date:   Mon Apr 3 14:24:34 2017 -0700

    bitbake: bitbake-user-manual: Fixed special character in -D output
    
    Fixes [YOCTO #9962]
    
    The new output for -D was copied into the manual and merged by
    the engineering team before checking to see if the manual
    would make properly.  The next output for -D introduced an
    error through the string &quot;&lt;task&gt;&quot;.  The angled bracket
    characters are illegal in docbook and must be replaced by
    &quot;&amp;lt;&quot; and &quot;&amp;gt;&quot;, respectively.  I made this fix.
    
    (Bitbake rev: 0476ec4605c94b9e0208cfd3fa48ecf3e3f04181)
    
    Signed-off-by: Scott Rifenbark &lt;srifenbark@gmail.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>