<?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>2405</bug_id>
          
          <creation_ts>2012-05-03 09:07:29 +0000</creation_ts>
          <short_desc>remove pkgs from a build</short_desc>
          <delta_ts>2012-05-04 02:04:04 +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>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P3)</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>21052</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-05-03 09:07:29 +0000</bug_when>
    <thetext>we support add pkgs to a build currently, for example, meta/recipes-sato/tasks/task-core-x11-sato.bb:

RDEPENDS_task-core-x11-sato = &quot;\
    matchbox-desktop \
    matchbox-session-sato \
    matchbox-keyboard \
    matchbox-stroke \
    matchbox-config-gtk \
    ...

that would make the matchbox-* pkgs install to the core-image-sato image since it is used by core-image.bbclass, but it seems that we don&apos;t have a way to remove some pkgs from it, which would be useful in the following scene:

task-A will install pkg_a, pkg_b and pkg_c
taks-B will install some pkgs, but it doesn&apos;t need pkg_c.

If a image uses task-A and task-B at the same time, there would be conflicts, this would be fixed if pkg_c can be removed by task-B, something like:

RDEPENDS_task-B -= &quot;pkgc pkgx...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21081</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-05-03 23:15:33 +0000</bug_when>
    <thetext>Dependencies are there for a reason, removing a dependency may break other packages.  I am not sure that this makes sense</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21093</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-05-04 02:04:04 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Dependencies are there for a reason, removing a dependency may break other
&gt; packages.  I am not sure that this makes sense

Yes, this is a potential error, but the task itself should take care of this, if RDEPENDS_task-A removes a dependency of task-B, then task-A and task-B should be conflict tasks, or there is something else wrong, and the dependency error can be raised by bitbake. This can make task assemble more flexiblely.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>