<?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>3792</bug_id>
          
          <creation_ts>2013-01-24 09:42:07 +0000</creation_ts>
          <short_desc>Missed development packages using  IMAGE_FEATURES+=&quot;dev-pkgs&quot;</short_desc>
          <delta_ts>2013-02-14 20:39:45 +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>1.3</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>1.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abdellah Kouadri Ext">abdellah.kouadri.ext</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Qi.Chen</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>29128</commentid>
    <comment_count>0</comment_count>
    <who name="Abdellah Kouadri Ext">abdellah.kouadri.ext</who>
    <bug_when>2013-01-24 09:42:07 +0000</bug_when>
    <thetext>When Adding &quot;dev-pkgs&quot; feature to IMAGE_FEATURE many development packages are not installed in the final rootfs

STEPS TO REPRODUCE:
--------------------
1.select packageXX and check that it provides packageXX-dev
2.set IMAGE_INSTAL+=&quot;packageXX&quot;
3.set IMAGE_FEATURES+=&quot;dev-pkgs&quot;
3.build the image using bitbake (bitbake my-image) 
4.check that files installed by packageXX-dev are not present in the generated rootfs

CAUSE :
--------

* To install complementary packages (dev, staticdev, doc ...) the script oe-pkgdata-util is called during rootfs generation. This script takes a file containing  all installed packages (installed_packages.txt) and computes the set of complementary packages to install (depending on what is contained in IMAGE_FEATURES). 

* Actually installed_packages.txt is a two columns file containing the package name and the architecture of the package, architecture of the package uses underscore as separator (ex : armv7a_vfp_neon).

* oe-pkgdata-util uses the architecture of a each package (from installed_packages.txt) to rebuilt the full path to packages data in order to check if it actually provides dev-pkgs, static-dev ...etc. (ex: build/tmp-eglibc/pkgdata/armv7a_vfp_neon-oe-linux-gnueabi)

* in the pkgdata directory  packages are grouped by their architecture in separate directories, but the directories name use dash as separator (ex: build/tmp-eglibc/pkgdata/armv7a-vfp-neon-oe-linux-gnueabi)

* due to the difference of the separator on the path reconstructed by   oe-pkgdata-util and the  path of pkgdata, oe-pkgdata-util  will miss the  installation of many packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29562</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-02-06 09:42:32 +0000</bug_when>
    <thetext>When I build from master for beagleboard, I get architecture values in installed_pkgs.txt which use dashes and not underscores (e.g. armv7a-vfp-neon), so I can&apos;t verify the issue. Which version of the build system did you experience this issue with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29569</commentid>
    <comment_count>2</comment_count>
    <who name="Abdellah Kouadri Ext">abdellah.kouadri.ext</who>
    <bug_when>2013-02-06 10:11:16 +0000</bug_when>
    <thetext>I&apos;m using version poky-danny-8.0 which i downloaded from 
https://www.yoctoproject.org/download/yocto-project-13-poky-80</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29582</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-02-06 14:09:03 +0000</bug_when>
    <thetext>OK, I&apos;ve reproduced this with the danny-8.0 release and the danny branch, and have sent a fix:

http://lists.linuxtogo.org/pipermail/openembedded-core/2013-February/035554.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29838</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-02-14 20:38:54 +0000</bug_when>
    <thetext>Fix merged to the danny branch (and will be in the next danny point release):
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=danny&amp;id=c0b37584819790a9c72b5dd5ad2533e499fa1d17

Note that this bug did not affect master since the code there works differently.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>