<?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>5533</bug_id>
          
          <creation_ts>2013-11-14 09:12:40 +0000</creation_ts>
          <short_desc>bitbake -g can&apos;t figure out non-existed packages</short_desc>
          <delta_ts>2017-07-03 15:15:41 +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.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4</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>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</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>38764</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2013-11-14 09:12:40 +0000</bug_when>
    <thetext>It seems that bitbake assumes recipe RPROVIDES PN by default, but this would cause problems:

Steps to reproduce:

$ echo IMAGE_INSTALL_append += \&quot;dhcp\&quot; &gt;&gt; conf/local.conf

$ bitbake dhcp

$ bitbake -g core-image-minimal (works well)

$ bitbake core-image-minimal

There would be the error:

| Error: dhcp not found in the base feeds (qemuarm armv5te armv5e armv5t armv5 armv4t armv4 arm noarch any all).
| WARNING: /buildarea/lyang1/doratest6/tmp/work/qemuarm-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/run.do_rootfs.20784:1 exit 1 from
|   exit 1

NOTE:
The dhcp is in its PACKAGES, but it doesn&apos;t matter, we will still get the error if is not in its PACKAGES.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74378</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-06-20 11:09:35 +0000</bug_when>
    <thetext>The problem is that the dhcp recipe has dhcp in PACKAGES, but it is empty so doesn&apos;t actually get generated.

Bitbake can&apos;t know this, so it is doing the right thing.

(a proper fix would be to stop the dhcp recipe from claiming it produces a dhcp package)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74382</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-06-20 11:18:56 +0000</bug_when>
    <thetext>Hm, no, sorry didn&apos;t read the report correctly.

If you do PACKAGES_remove=$PN then bitbake still tries to build an image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74386</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-06-20 11:35:00 +0000</bug_when>
    <thetext>cache.py, CoreRecipeInfo constructor:

  if not self.pn in self.packages:
    self.packages.append(self.pn)

if PN isn&apos;t in the PACKAGES list, add PN.

Simply commenting out that line breaks the cache as native packages don&apos;t have PACKAGES.  Maybe native should just set PACKAGES=PN?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74570</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-06-27 11:13:31 +0000</bug_when>
    <thetext>Patch on the list</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74714</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-07-03 15:15:41 +0000</bug_when>
    <thetext>Fixed in bitbake df31a88786ce5bd7708ff14e1379dc2a58a8c0cf.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>