<?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>5529</bug_id>
          
          <creation_ts>2013-11-14 08:35:56 +0000</creation_ts>
          <short_desc>Split PACKAGES into PACKAGES_DEV, PACKAGES_DBG and so on</short_desc>
          <delta_ts>2013-11-15 01:58:18 +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>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=5531</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.6 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38760</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-11-14 08:35:56 +0000</bug_when>
    <thetext>The PACKAGES which is defined in the recipe often contains more than the recipe really generates, for example:

$ PACKAGES=&quot;dhcp-dbg dhcp-staticdev dhcp-dev dhcp-doc dhcp-locale  dhcp dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell&quot;

Note, there is a dhcp in the PACKAGES, but there is no dhcp.rpm after the build, this is because we have used += in dhcp.inc


PACKAGES += &quot;dhcp-server dhcp-server-config dhcp-client dhcp-relay dhcp-omshell&quot;

We can use PACKAGES = &quot;dhcp-xxx dhcp-dbg dhcp-dev&quot; to fix the problem, but this is inconvenience since a lot of recipes may have the smimilar issue, a potential fix should be:

1) Split PACKAGES into PACKAGES_DEV, PACKAGES_DBG, PACKAGES_STATICDEV and so on.

2) Default: PACKAGES = PN
            PACKAGES_DEV = PN-dev
            PACKAGES_DBG = PN-dbg
            ...
            PACKAGES += PACKAGES_DEV + PACKAGES_DBG + ...

   So that we can keep the back compatiblilty, and the user can reset the 
   PACKAGES easily.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38788</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-11-14 16:02:25 +0000</bug_when>
    <thetext>I think this is a problem of the dhcp recipe rather than a general issue to be solved. The dhcp recipe should probably be providing a dhcp package that installs something useful - if that&apos;s one or more of the other packages being added then we should set RDEPENDS_${PN}/RRECOMMENDS_${PN} and ALLOW_EMPTY_${PN} there as appropriate.

In terms of having a mechanism to easily add additional packages, we have PACKAGE_BEFORE_PN for just this purpose.

Accordingly I&apos;m marking this as invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38808</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-11-15 01:58:18 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I think this is a problem of the dhcp recipe rather than a general issue to
&gt; be solved. The dhcp recipe should probably be providing a dhcp package that
&gt; installs something useful - if that&apos;s one or more of the other packages
&gt; being added then we should set RDEPENDS_${PN}/RRECOMMENDS_${PN} and
&gt; ALLOW_EMPTY_${PN} there as appropriate.
&gt; 
&gt; In terms of having a mechanism to easily add additional packages, we have
&gt; PACKAGE_BEFORE_PN for just this purpose.
&gt; 
&gt; Accordingly I&apos;m marking this as invalid.

Hi Paul,

Thanks, do we require each recipe generates a PN named binary package in most of the cases ? Can we add a QA check for this to avoid the problem like dhcp has ?
The PACKAGE_BEFORE_PN is helpful:

PACKAGE_BEFORE_PN ?= &quot;&quot;
PACKAGES = &quot;${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN} ${PN}&quot;

Maybe we can adjust its defination a little, set the PACKAGE_BEFORE_PN&apos;s default value to ${PN} so that we can easily remove the ${PN} from PACKAGES.

PACKAGE_BEFORE_PN ?= &quot;${PN}&quot;
PACKAGES = &quot;${PN}-dbg ${PN}-staticdev ${PN}-dev ${PN}-doc ${PN}-locale ${PACKAGE_BEFORE_PN}&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>