<?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>8933</bug_id>
          
          <creation_ts>2016-01-15 10:54:10 +0000</creation_ts>
          <short_desc>Image customisation package list does not show packages installed via dependencies</short_desc>
          <delta_ts>2016-02-16 11:48:37 +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>Toaster</product>
          <component>toaster</component>
          <version>2.0</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Belen Barros Pena">belen.barros.pena</reporter>
          <assigned_to name="Michael Wood">michael.g.wood</assigned_to>
          <cc>alexandru.costinx.roman</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>brian.avery</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>stanciux.mihail</cc>
          
          <qa_contact name="Alexandru Roman">alexandru.costinx.roman</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57855</commentid>
    <comment_count>0</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-01-15 10:54:10 +0000</bug_when>
    <thetext>This applies to the following branch

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=elliot/toaster/ic-7

Steps to reproduce: 

1. Start Toaster with CUSTOM_IMAGE=1
2. Create a project with release &apos;master&apos;
3. Build core-image-minimal
4. Go to the &apos;New custom image&apos; page
5. Search for &apos;core-image-minimal openembedded-core&apos; and click the &apos;customise&apos; button
6. Give your custom image a name
7. In the package list, search for openssl and add it to your custom image
8. Build your custom image

When the build finishes, go to the packages included list in the build information, and search for openssl. 4 packages come up: openssl, plus its dependencies libssl and libcrypto, and also openssl-conf. 

Now go to the list of custom images in the project configuration and select your custom image. In the list of packages, search for openssl. On the list openssl has a &apos;remove package&apos; button (i.e. it is presented as being installed in your custom image), but libcrypto, libssl and openssl-conf all show an &apos;add package&apos; button (i.e. they are presented as not being installed in your custom image, but they are, as we know from the build information). So the image customisation section seems to have an incomplete list of packages installed.

The image customisation package list should be updated to reflect the outcome of the latest build of your custom image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57865</commentid>
    <comment_count>1</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-01-15 14:43:50 +0000</bug_when>
    <thetext>I&apos;ve tried this, and get the same result.

However, isn&apos;t there a problem earlier than post-build? When I add the openssl package in the custom image edit &quot;Add | Remove&quot; page, shouldn&apos;t its dependencies also be added to my image (i.e. libcrypto, libssl and openssl-conf)? At the moment, when I add openssl, those dependencies keep the &quot;Add package&quot; button, rather than switching to the &quot;Delete package&quot; button.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57896</commentid>
    <comment_count>2</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2016-01-17 13:23:27 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I&apos;ve tried this, and get the same result.
&gt; 
&gt; However, isn&apos;t there a problem earlier than post-build? When I add the
&gt; openssl package in the custom image edit &quot;Add | Remove&quot; page, shouldn&apos;t its
&gt; dependencies also be added to my image (i.e. libcrypto, libssl and
&gt; openssl-conf)? At the moment, when I add openssl, those dependencies keep
&gt; the &quot;Add package&quot; button, rather than switching to the &quot;Delete package&quot;
&gt; button.

Yes, if we have dependency information for the package you have added. If we don&apos;t, the packages will be added at build time, but since we don&apos;t have the dependency information, we will not be able to tell you in advance which additional packages will be added to your image. I hope this makes sense.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57923</commentid>
    <comment_count>3</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-01-18 16:57:39 +0000</bug_when>
    <thetext>OK, I will investigate the post-build scenario you gave.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57927</commentid>
    <comment_count>4</comment_count>
    <who name="Elliot Smith">elliot.smith</who>
    <bug_when>2016-01-18 17:43:21 +0000</bug_when>
    <thetext>Bug as described by Belen in elliot/toaster/ic-7-rebase.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58891</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2016-02-11 15:01:19 +0000</bug_when>
    <thetext>Image customisation feature now updated and merged which should address this.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=30c132bc4726be90fadee419a588a8b8f2161380</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59095</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Roman">alexandru.costinx.roman</who>
    <bug_when>2016-02-16 11:48:37 +0000</bug_when>
    <thetext>Verified on master: a25858982ae313a13be95692496e4983c7bd4251</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>