<?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>3245</bug_id>
          
          <creation_ts>2012-10-05 22:13:04 +0000</creation_ts>
          <short_desc>The description for &quot;BPN&quot; variable needs to be improved.</short_desc>
          <delta_ts>2012-10-09 14:29:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit.cgi/yocto-docs/commit/?id=d9eb38122967a5729f3a6aff1dae00427a22f579</bug_file_loc>
          <status_whiteboard>9 Oct 2012 - resolved/fixed</status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Turley">patrickturley</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26301</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Turley">patrickturley</who>
    <bug_when>2012-10-05 22:13:04 +0000</bug_when>
    <thetext>The introduction video says the reference manual is the best place to find information about an unrecognized variable name. So, I had a look at &quot;BPN&quot;.

Here&apos;s what the reference manual current says about BPN:


&quot;Bare name of package with any suffixes like -cross -native removed.&quot;


That needs to be substantially improved because it leaves me with too many questions:

1) What is the string from which BPN is derived? Is it ${PN}? Is it the name of the recipe file (which is *probably* the same, but not necessarily)?

2) How does one know where the removable suffix starts? Is it delimited with a dash, as suggested by the documentation? That doesn&apos;t seem to match the example in the intro video, which is &quot;psplash_git&quot;, suggesting that underscore is actually the delimiter. Or perhaps *both* will work (and perhaps others as well).

3) What suffixes are recognized? The documentation says &quot;like -cross -native removed&quot; -- that&apos;s not precise enough. How do I know whether the suffix I&apos;m using will be properly removed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26338</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-10-08 13:19:37 +0000</bug_when>
    <thetext>How about:

BPN  - A version of the PN variable with common suffixes and prefixes removed (such as &quot;-native&quot;, &quot;-cross&quot; and multilib prefixes). The exact list of suffixes removed is listed in the SPECIAL_PKGSUFFIX variable. Any value that MLPREFIX has is removed as a prefix (which happens for multilib and nativesdk cases).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26343</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick Turley">patrickturley</who>
    <bug_when>2012-10-08 15:27:20 +0000</bug_when>
    <thetext>That seems like an excellent start, in terms of tracking down the true behavior of this variable.

Unfortunately, that can&apos;t be the end of it because:

1) Neither SPECIAL_PKGSUFFIX nor MLPREFIX are documented in the reference manual so, to complete the resolution for this bug, those would have to be added as well.

2) I question (but I&apos;m not certain) that we want to document the behavior of this variable in terms of other, obscure variables. That is, I don&apos;t know if it&apos;s a good idea to say to the reader: &quot;You can know how this works, but you&apos;ll have to grep through the Yocto tree to track down the details.&quot; It *may* be that there is still no better, practical answer -- but I hope for a trend toward simplicity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26344</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-10-08 15:36:29 +0000</bug_when>
    <thetext>I think we do aim for simplicity but in order to fully answer your question, we do need to reference the other variables unfrotunately. I suggest we simply define these as:

SPECIAL_PKGSUFFIX - &quot;A list of prefixes to PN used by the build system to create variants of recipes. The list is used to be able to strip off the prefix in certain circumstances such as generation of the BPN variable.&quot;

MLPREFIX - &quot;Set when a prefix has been added to PN to create a special version of a recipe, such as a multilib version. It is used in places where this prefix needs to be added to a name or removed from it.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26345</commentid>
    <comment_count>4</comment_count>
    <who name="Patrick Turley">patrickturley</who>
    <bug_when>2012-10-08 15:39:10 +0000</bug_when>
    <thetext>That seems reasonable to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26430</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-10-09 14:29:23 +0000</bug_when>
    <thetext>I updated the BPN description per Richard&apos;s suggestion with a bit of wordsmithing.  I also created the new glossary entries for SPECIAL_PKGSUFFIX and MLPREFIX as required. 

You can view the BPN entry at http://www.yoctoproject.org/docs/1.3/poky-ref-manual/poky-ref-manual.html#var-BPN.

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>