<?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>11411</bug_id>
          
          <creation_ts>2017-04-25 09:18:33 +0000</creation_ts>
          <short_desc>native[sdk].bbclass: warn about naming convention</short_desc>
          <delta_ts>2017-06-29 16:00:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</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>29 June 2017: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</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>72816</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2017-04-25 09:18:33 +0000</bug_when>
    <thetext>The current documentation says:

Create a myrecipe-native.bb that inherits the native class. ...

respectively:

Create a nativesdk-myrecipe.bb recipe that inherits the nativesdk class.

It&apos;s not clear that these recipes name are more than just examples or how it&apos;s commonly done. There&apos;s real code which checks for the suffix resp. prefix, so this naming has to be followed.

I suggest adding a warning in both places:

This naming convention must be followed. Not doing so can lead to subtle problems because there is code which depends on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72834</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-04-25 15:27:36 +0000</bug_when>
    <thetext>Patrick, 

Thanks for the bug.  I set the target milestone and estimated &quot;perfect&quot; days.  This will get in in time for the HTML (on-line) version of the manual but likely not be in the released tarball since that is in RC right now.

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73715</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-06-05 22:46:42 +0000</bug_when>
    <thetext>Hi Patrick, 

Please see http://www.yoctoproject.org/docs/2.4/ref-manual/ref-manual.html#ref-classes-native and http://www.yoctoproject.org/docs/2.4/ref-manual/ref-manual.html#ref-classes-nativesdk for the &quot;native.bbclass&quot; and &quot;nativesdk.bbclass&quot; reference descriptions.  I have warnings in both descriptions.  Let me know if this is okay. 

thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74651</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2017-06-29 16:00:45 +0000</bug_when>
    <thetext>No comments for a month... setting to RESOLVED and putting the doc flag to &quot;done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>