<?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>8065</bug_id>
          
          <creation_ts>2015-07-28 11:41:52 +0000</creation_ts>
          <short_desc>Bogus warnings for invalid PACKAGECONFIG shown for recipes with multiple versions</short_desc>
          <delta_ts>2015-09-01 08:36:40 +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>deployment</component>
          <version>1.9</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.9 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Liu">net147</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <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>52659</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2015-07-28 11:41:52 +0000</bug_when>
    <thetext>With the following git revisions:
bitbake - bef724057f1ea81571dd3ac5a9cf862f818434b5
openembedded-core - 27d068d05239c26a3848eb101571acab54635e37

Running the following commands:
git clone git://git.openembedded.org/openembedded-core
cd openembedded-core
git clone git://git.openembedded.org/bitbake
. oe-init-build-env
sed -i &quot;s|invalid PACKAGECONFIG: %s\&quot; % (pn,|invalid PACKAGECONFIG: %s\&quot; % (d.getVar(&apos;FILE&apos;, True),|&quot; ../meta/classes/base.bbclass
echo &apos;PACKAGECONFIG_append_pn-busybox = &quot; invalid&quot;&apos; &gt;&gt; conf/local.conf
bitbake -c fetch busybox

Shows the following warnings while parsing recipes:
WARNING: /home/net147/git/openembedded-core/meta/recipes-core/busybox/busybox_git.bb: invalid PACKAGECONFIG: invalid
WARNING: /home/net147/git/openembedded-core/meta/recipes-core/busybox/busybox_1.23.2.bb: invalid PACKAGECONFIG: invalid

This indicates that the PACKAGECONFIG is checked against all versions of a recipe regardless of the recipe that is actually used. This is an issue if different versions of recipes support different sets of PACKAGECONFIG values which may result in bogus warnings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52660</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2015-07-28 11:44:27 +0000</bug_when>
    <thetext>This issue was introduced by the following commit:

From be085657bbab34bb8a822682897f96871bb2d8f4 Mon Sep 17 00:00:00 2001
From: Robert Yang &lt;liezhi.yang@windriver.com&gt;
Date: Thu, 11 Jun 2015 02:08:41 -0700
Subject: base.class: warn for invalid PACKAGECONFIG

There may be typos or out of date values in PACKAGECONFIG, check and
warn them.

Signed-off-by: Robert Yang &lt;liezhi.yang@windriver.com&gt;
Signed-off-by: Ross Burton &lt;ross.burton@intel.com&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52661</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-28 11:52:31 +0000</bug_when>
    <thetext>Whilst checking the recipes that are actually used is an arguable optimisation, I don&apos;t understand why it would be fine for some versions of recipes to have incorrect PACKAGECONFIG lines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52662</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Liu">net147</who>
    <bug_when>2015-07-28 11:57:43 +0000</bug_when>
    <thetext>My issue is that I have an older version of a recipe in my own layer that takes precedence over the version in openembedded-core. The newer version in openembedded-core removed a PACKAGECONFIG that I use in the older version so I get a warning about the PACKAGECONFIG not existing in the newer version.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52698</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-07-29 08:57:37 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; My issue is that I have an older version of a recipe in my own layer that
&gt; takes precedence over the version in openembedded-core. The newer version in
&gt; openembedded-core removed a PACKAGECONFIG that I use in the older version so
&gt; I get a warning about the PACKAGECONFIG not existing in the newer version.

Maybe you need adjust the location of your PACKAGECONFIG ? How can the newer version get the older version&apos;s PACKAGECONFIG ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52702</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-07-29 10:18:16 +0000</bug_when>
    <thetext>I&apos;m guessing the situation is that oe-core has one version of a recipe, a private layer has another version of a recipe, and a distro sets PACKAGECONFIG_pn-recipe.  At this point both recipes have the same PACKAGECONFIG set, but the flags supported may be different.

We could fix this by moving the sanity check further down the build so that it doesn&apos;t happen at parse time but when the recipe is actually built.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52703</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-07-29 10:20:46 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; I&apos;m guessing the situation is that oe-core has one version of a recipe, a
&gt; private layer has another version of a recipe, and a distro sets
&gt; PACKAGECONFIG_pn-recipe.  At this point both recipes have the same
&gt; PACKAGECONFIG set, but the flags supported may be different.
&gt; 
&gt; We could fix this by moving the sanity check further down the build so that
&gt; it doesn&apos;t happen at parse time but when the recipe is actually built.

Thanks, sounds good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53277</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-08-20 15:12:24 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=1df8af4248250b9bdbde3b15a00933cf49dd1356</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53583</commentid>
    <comment_count>8</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-09-01 08:36:40 +0000</bug_when>
    <thetext>Verified on master: commit 524c590fb44d0ef9711accf2db1a21e4a3cbcfc2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>