<?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>2565</bug_id>
          
          <creation_ts>2012-06-08 21:53:19 +0000</creation_ts>
          <short_desc>[HOB] Limit the list of build profiles to the ones which are sensible</short_desc>
          <delta_ts>2013-01-04 15:28:35 +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>Hob</product>
          <component>hob</component>
          <version>1.2</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>a0a265e352b074b54928cf50563561c92aa2f814</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.4 M2</target_milestone>
          <dependson>3446</dependson>
          <blocked>2345</blocked>
    
    <blocked>2566</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dave Stewart">david.c.stewart</reporter>
          <assigned_to name="Constantin Musca">constantinx.musca</assigned_to>
          <cc>alexandru.damian</cc>
    
    <cc>belen.barros.pena</cc>
    
    <cc>bluelightning</cc>
    
    <cc>constantinx.musca</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>cristiana.voicu</cc>
    
    <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>poky.bs.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>21949</commentid>
    <comment_count>0</comment_count>
    <who name="Dave Stewart">david.c.stewart</who>
    <bug_when>2012-06-08 21:53:19 +0000</bug_when>
    <thetext>When you run Hob and after recipes are parsed, you are presented with a drop down box with a long list of what I would call &quot;build profiles&quot;. Hob calls this &quot;Select a base image&quot;

However, some of these don&apos;t make sense. For example, when I set the Distro to be poky-tiny, I think the only reasonable build profiles are core-image-minimal-*

But instead, I am offered options like core-image-sato and core-image-lsb. These clearly make no sense in a poky-tiny build. Please grey them out or better yet, remove them from the list altogether.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22077</commentid>
    <comment_count>1</comment_count>
    <who name="Shane Wang">shane.wang</who>
    <bug_when>2012-06-13 02:12:34 +0000</bug_when>
    <thetext>In bitbake command line, when poky-tiny is set and core-image-sato is built, an error will occur to say libx11 is missing. So, I suspect Hob will report the same issue during the build stage.

This is to add the feature to detect which images are impossible for some distro.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26901</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-10-25 14:04:18 +0000</bug_when>
    <thetext>This should be able to be handled by blacklisting the image recipes; it&apos;s very likely for something like poky-tiny we would want to blacklist certain normal recipes that are expected not to build with that distro as well. To do this, we would need to add the following to the poky-tiny distro configuration:

INHERIT_DISTRO += &quot;blacklist&quot;
PNBLACKLIST[core-image-sato] = &quot;not buildable with poky-tiny&quot;
PNBLACKLIST[core-image-lsb] = &quot;not buildable with poky-tiny&quot;
...

After doing this, these images/recipes should no longer show up in Hob, and as a bonus this mechanism will make these unavailable for bitbake on the command line as well.

Darren (added to CC), can you suggest any recipes that you know of which can&apos;t or shouldn&apos;t be built with poky-tiny and should be added to this list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27528</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-11-16 19:23:03 +0000</bug_when>
    <thetext>I don&apos;t have an exhaustive list. If it pulls in gettext, it fails. diffutils fails. I haven&apos;t tried building sato or lsb to see where they explode.

My concern with the distro blacklist thing is that it cannot be all inclusive. Any new images or new layers with images will appear in HOB as buildable, even though they most likely are not. For this particular problem, a whitelist might be more appropriate. New layers wishing to build with tiny would have to test their builds and explicitly append their image to the tiny whitelist.

That said, I don&apos;t know that we can do a whitelist of just images and ignore the check for packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28521</commentid>
    <comment_count>4</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-01-03 13:07:43 +0000</bug_when>
    <thetext>We decided to use the blacklist approach and all the inappropriate images were blacklisted.

Cheers,
Constantin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28526</commentid>
    <comment_count>5</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-01-03 15:30:18 +0000</bug_when>
    <thetext>Hi!

I&apos;ve looked at the fix by changing the selected distro in the Advanced Configuration dialog and looking then at how many base images are displayed in the drop down menu. 

The outcome seems to be to reduce the number of base images available when you select poky-tiny (from 19 to 5). All other distro selections display the full 19 base images. The base images displayed don&apos;t change based on the machine selection.

If this is the expected behaviour, then this is fixed. 

I&apos;ve found 2 problems though:

1. Selecting poky-bleeding as your distro doesn&apos;t seem to work. When I select poky-bleeding as the distro and then hit the Save button, the selection is not saved: when I open the Advanced Configuration dialog again, the distro selection has been changed to &apos;poky&apos;.

2. When I change the distro and click Save, the image configuration screen remembers my previous base image selection (which is fine), but the base image drop down menu still displays the &apos;select a base image&apos; option (that option should only show when no base image is selected). When you select that option, Hob seems to hang (the interface becomes inactive and shows a spinning cursor indefinitely). 

Should I open bugs for these 2 issues?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28527</commentid>
    <comment_count>6</comment_count>
    <who name="Constantin Musca">constantinx.musca</who>
    <bug_when>2013-01-03 15:43:46 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Hi!
&gt; 
&gt; I&apos;ve looked at the fix by changing the selected distro in the Advanced
&gt; Configuration dialog and looking then at how many base images are displayed
&gt; in the drop down menu. 
&gt; 
&gt; The outcome seems to be to reduce the number of base images available when
&gt; you select poky-tiny (from 19 to 5). All other distro selections display the
&gt; full 19 base images. The base images displayed don&apos;t change based on the
&gt; machine selection.
&gt; 
&gt; If this is the expected behaviour, then this is fixed. 
&gt; 
&gt; I&apos;ve found 2 problems though:
&gt; 
&gt; 1. Selecting poky-bleeding as your distro doesn&apos;t seem to work. When I
&gt; select poky-bleeding as the distro and then hit the Save button, the
&gt; selection is not saved: when I open the Advanced Configuration dialog again,
&gt; the distro selection has been changed to &apos;poky&apos;.
&gt; 
&gt; 2. When I change the distro and click Save, the image configuration screen
&gt; remembers my previous base image selection (which is fine), but the base
&gt; image drop down menu still displays the &apos;select a base image&apos; option (that
&gt; option should only show when no base image is selected). When you select
&gt; that option, Hob seems to hang (the interface becomes inactive and shows a
&gt; spinning cursor indefinitely). 
&gt; 
&gt; Should I open bugs for these 2 issues?
&gt; 
&gt; Thanks!

Yes, please open bugs for these issues.

Cheers,
Constantin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28533</commentid>
    <comment_count>7</comment_count>
    <who name="Belen Barros Pena">belen.barros.pena</who>
    <bug_when>2013-01-03 16:12:56 +0000</bug_when>
    <thetext>Done:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=3670

and 

https://bugzilla.yoctoproject.org/show_bug.cgi?id=3671</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28557</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-01-04 15:28:35 +0000</bug_when>
    <thetext>Since the blacklist resolves the poky-tiny issue and only applies to it, I am closing this as verified! 

master: 09359e6ec00901abfe49157f1f9730117b4d284b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>