<?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>12527</bug_id>
          
          <creation_ts>2018-02-02 10:05:47 +0000</creation_ts>
          <short_desc>problems when trying to build kernel from multiple providers</short_desc>
          <delta_ts>2018-02-14 06:40:23 +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>kernel</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anuj Mittal">anuj.mittal</reporter>
          <assigned_to name="Anuj Mittal">anuj.mittal</assigned_to>
          <cc>tom.zanussi</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>79313</commentid>
    <comment_count>0</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-02-02 10:05:47 +0000</bug_when>
    <thetext>This is a complex use case and probably can be simplified but this is how it happened for me.

I had this in my local.conf:

MACHINE ??= &quot;intel-corei7-64&quot;
PREFERRED_VERSION_linux-intel = &quot;4.12%&quot;
PREFERRED_PROVIDER_virtual/kernel = &quot;linux-yocto&quot;

When I executed:

bitbake -c devshell virtual/kernel

Everything worked for the first time. After that I changed the provider to linux-intel to check something and changed linux-intel version to 4.9:

bitbake -c devshell virtual/kernel

If I switch back to linux-yocto after this -

Now everytime I do -c devshell even for linux-intel, I am being taken to the same kernel source directory i.e. for linux-yocto 4.12 version. bitbake is unable to check that it should be unpacking linux-intel again and behaves as if both linux-yocto and linux-intel are same thing.

If I do bitbake linux-intel, I get this:

ERROR: linux-intel-4.9.76+gitAUTOINC+0c0ae2d617_6e69421d39-r0 do_kernel_version_sanity_check: Package Version (4.9.76+gitAUTOINC+0c0ae2d617_6e69421d39) does not match of kernel being built (4.12.19). Please update the PV variable to match the kernel source or set KERNEL_VERSION_SANITY_SKIP=&quot;1&quot; in your recipe.
ERROR: linux-intel-4.9.76+gitAUTOINC+0c0ae2d617_6e69421d39-r0 do_kernel_version_sanity_check: Function failed: do_kernel_version_sanity_check (log file is located at /home/anmitta2/work/poky/build/tmp/work/corei7-64-intel-common-poky-linux/linux-intel/4.9.76+gitAUTOINC+0c0ae2d617_6e69421d39-r0/temp/log.do_kernel_version_sanity_check.7010)
ERROR: Logfile of failure stored in: /home/anmitta2/work/poky/build/tmp/work/corei7-64-intel-common-poky-linux/linux-intel/4.9.76+gitAUTOINC+0c0ae2d617_6e69421d39-r0/temp/log.do_kernel_version_sanity_check.7010
ERROR: Task (/home/anmitta2/work/poky/meta-intel/recipes-kernel/linux/linux-intel_4.9.bb:do_kernel_version_sanity_check) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79436</commentid>
    <comment_count>1</comment_count>
    <who name="Anuj Mittal">anuj.mittal</who>
    <bug_when>2018-02-14 06:40:23 +0000</bug_when>
    <thetext>I guess the correct workflow should be to cleansstate when switching the providers for a virtual/ package. I didn&apos;t do that at the time and this works if I do that.

Marking this as not-a-bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>