<?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>9312</bug_id>
          
          <creation_ts>2016-03-19 00:31:12 +0000</creation_ts>
          <short_desc>PACKAGEGROUP_DISABLE_COMPLEMENTARY not working</short_desc>
          <delta_ts>2016-03-21 21:18:02 +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>OE-Core</product>
          <component>core</component>
          <version>2.0</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></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Richardson">jon.richardson</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.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>60169</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2016-03-19 00:31:12 +0000</bug_when>
    <thetext>I have a packagegroup recipe that specifies PACKAGEGROUP_DISABLE_COMPLEMENTARY = &quot;1&quot;. local.conf specifies PACKAGE_CLASSES ?= &quot;package_rpm&quot;.

When I build the package group using &apos;bitbake my-packagegroup&apos; and look in the tmp/deploy/rpm directory I see that every package included in PACKAGES has dbg, dev, doc, and ptest rpm&apos;s generated. Same with the deploy-rpms directory where the package is built.

I&apos;m running the recipe independently and not including the packages in an image recipe because I&apos;m only interested in generating the rpm&apos;s. Example recipe:

In meta-mylayer/common/recipes-core/packagegroups/my-packagegroup.bb:

inherit packagegroup
PACKAGEGROUP_DISABLE_COMPLEMENTARY = &quot;1&quot;

PACKAGES = &quot;\
    my-packagegroup-base \
    &quot;

RDEPENDS_my-packagegroup-base = &quot;\
    ethtool        \
    &quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60177</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-03-20 20:53:57 +0000</bug_when>
    <thetext>Just to clarify, you were seeing my-packagegroup-base-dev / my-packagegroup-base-dbg and my-packagegroup-base-ptest packages?

I just tested building your example recipe with master and I don&apos;t see this behaviour - in fact I discovered a bug that means those packages apparently can never be generated as far as I can tell. Were you using jethro or some earlier release?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60213</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2016-03-21 18:01:26 +0000</bug_when>
    <thetext>Thanks for looking into it. I meant the packages contained in the package groups, not the package group itself. In the example below the package group &apos;my-packagegroup-base&apos; included ethtool. I expect that there wouldn&apos;t be complimentary rpms generated ethtool but it generates ethtool, ethtool-dbg, ethtool-dev, ethtool-doc, and ethtool-ptest.

The only rpm for the package group itself that I see is my-packagegroup-base.rpm. I assume that would always be the case.

I&apos;m using Jethro + many of the latest commits (up to d53413d3a8444c38a83ea37867c8af7754d8e702). We keep pretty up to date but I saw the problem back before we merged recently.

Let me know if there&apos;s anything else I can test if you don&apos;t see the behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60220</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-03-21 19:50:58 +0000</bug_when>
    <thetext>PACKAGEGROUP_DISABLE_COMPLEMENTARY is only about the packagegroup itself, it cannot control the packages generated for other recipes.

Can I ask what you&apos;re attempting to achieve here? Why do you wish to disable these packages?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60224</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Richardson">jon.richardson</who>
    <bug_when>2016-03-21 21:18:02 +0000</bug_when>
    <thetext>Just to better control the number of rpm&apos;s generated by a specific package group and reduce the large amount of disk space required (partly due to these extra packages we don&apos;t need). I have a package group that includes ~40 packages and takes up 620MB of disk space.

More specifically, we have images generated for customer releases plus other packages that QA needs to help verify those images. We don&apos;t want QA packages included in customer images so I&apos;m using a specific package group that allows them to generate RPM&apos;s they need and then use smart to install the rpms on top of released images.

We have autobuilders verifying yocto projects on gerrit check ins, nightly builds, etc. It&apos;s nice but we&apos;re getting killed on disk space so any features available to help will be used.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>