<?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>2741</bug_id>
          
          <creation_ts>2012-07-12 02:42:31 +0000</creation_ts>
          <short_desc>PN -&gt; PACKAGES mappings for each available recipe</short_desc>
          <delta_ts>2012-08-09 03:09:02 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P2)(QA Testing Completed)(Done) </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jason.wessel</cc>
    
    <cc>jeff.polk</cc>
    
    <cc>liang.li2</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>zhenfeng.zhao</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>23018</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-07-12 02:42:31 +0000</bug_when>
    <thetext>The ability to know PN -&gt; PACKAGES mappings for each available recipe.

The data are stored in bb_cache.dat, here are the draft thoughts for it:

1) The filename might be pn_mapping

2) Save the pn_mapping whenever the recipes have been parsed (just like bb_cache.dat).

3) The format could be:
   PN: pkg1 pkg2 pkg3 ... (include -dev, -dbg and -doc pkgs?)

4) I think that we only need the target recipe&apos;s mapping, don&apos;t need the -native or -nativesdk ones, since they won&apos;t generate out binary PACKAGES.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23783</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-08-03 08:20:06 +0000</bug_when>
    <thetext>Added a script bitbake/contrib/dump_cache.py to dump the bb_cache.dat, and merged into master:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=9461854a3cf64a1d8fbf0248140d91bbd0a8e054</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23903</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-08-09 03:09:02 +0000</bug_when>
    <thetext>verified on :
git info:87ffccb5dc184375e8807834e3b9b08ada708105
git branch:poky/master

test env
host: ubuntu 12.04 x86_64

1. run &quot;bitbake core-image-sato&quot; to build qemux86 sato image.
2. run &quot;./dump_cache.py path_to_builddir/tmp/cache/default-eglibc/qemux86/bb_cache.dat.94c724cb01c96bedece06ebe6b57a054  | grep bzip2&quot; ,output below:
path_to_git/meta/recipes-extended/bzip2/bzip2_1.0.6.bb bzip2 1.0.6 libbz2 libbz2-dev libbz2-staticdev bzip2-dbg bzip2-staticdev bzip2-dev bzip2-doc bzip2-locale bzip2 

also can get other bb&apos;s related info similar to the info of bzip2_1.0.6.bb.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>