<?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>6408</bug_id>
          
          <creation_ts>2014-06-06 09:27:37 +0000</creation_ts>
          <short_desc>EXCLUDE_FROM_WORLD_pn-BPN doesn&apos;t work when multilib</short_desc>
          <delta_ts>2014-09-24 17:31:38 +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.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
          
          
          <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>43800</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2014-06-06 09:27:37 +0000</bug_when>
    <thetext>For example if we add these to local.conf:

MACHINE ?= &quot;qemux86-64&quot;

require conf/multilib.conf
MULTILIBS = &quot;multilib:lib32&quot;
DEFAULTTUNE_virtclass-multilib-lib32 = &quot;x86&quot;

EXCLUDE_FROM_WORLD_pn-bluez4 = &quot;1&quot; 

And remove EXCLUDE_FROM_WORLD = &quot;1&quot; from meta/recipes-connectivity/bluez/bluez4.inc, then:

bitbake -g world

We can see that both bluez4 and lib32-bluez4 are in pn-buildlist, and they will get built, the bluez4 should not since we have set EXCLUDE_FROM_WORLD_pn-bluez4 = &quot;1&quot;.

Note, This works well for package-index.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45808</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-09-24 17:31:38 +0000</bug_when>
    <thetext>I looked into this and I think that things actually work as they should. Setting &quot;EXCLUDE_FROM_WORLD&quot; does not guarantee that something will not end up in a world build, it just means that when building the list of recipes to build as part of world, these items are excluded. So for example if you do EXCLUDE_FROM_WORLD = &quot;a&quot; and b has DEPENDS = &quot;a&quot; and b is in world, a will get built.

So something likely depends on bluez4 and that is why you see it being built.

To test this, I tried something which things don&apos;t depend on, I picked bind.

EXCLUDE_FROM_WORLD_pn-bind = &quot;1&quot;

removed bind from &quot;bitbake world -g&quot; and then:

EXCLUDE_FROM_WORLD_pn-lib32-bind = &quot;1&quot;

removed lib32-bind too, just as expected. Please reopen with more specific details if you still believe there is an issue here.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>