<?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>10278</bug_id>
          
          <creation_ts>2016-09-14 21:17:49 +0000</creation_ts>
          <short_desc>Switching PREFERRED_PROVIDER_virtual/kernel leads to errors</short_desc>
          <delta_ts>2016-09-28 18:22:01 +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.2</version>
          <rep_platform>All</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.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>66155</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-09-14 21:17:49 +0000</bug_when>
    <thetext>I changed PREFERRED_PROVIDER_virtual/kernel from linux-yocto to linux-yocto-rt and received the following errors:

------------------ snip ------------------
ERROR: linux-yocto-rt-4.8-rc5+gitAUTOINC+25fb74eaae_9e7ee5155e-r0 do_package_write_rpm: The recipe linux-yocto-rt is trying to install files into a shared area when those files a
lready exist. Those files and their manifest location are:
   /media/large/tmp/deploy/rpm/qemux86_64/kernel-module-ppp-synctty-4.8+rc5+git0+25fb74eaae_9e7ee5155e-r0.qemux86_64.rpm
 Matched in b&apos;manifest-qemux86_64-linux-yocto.package_write_rpm&apos;
 /media/large/tmp/deploy/rpm/qemux86_64/kernel-module-nf-conntrack-sip-4.8+rc5+git0+25fb74eaae_9e7ee5155e-r0.qemux86_64.rpm
 Matched in b&apos;manifest-qemux86_64-linux-yocto.package_write_rpm&apos;
 /media/large/tmp/deploy/rpm/qemux86_64/kernel-module-rfcomm-4.8+rc5+git0+25fb74eaae_9e7ee5155e-r0.qemux86_64.rpm
 Matched in b&apos;manifest-qemux86_64-linux-yocto.package_write_rpm&apos;
...
------------------ snip ------------------

It seems to me that we ought to be able to handle switching to a different kernel in the same sysroot without error, particularly as we now disallow multiple recipes providing the same target building when PREFERRED_PROVIDER is being used. We should have enough information to handle this, we just need to set up the mechanism.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66605</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-09-26 22:28:29 +0000</bug_when>
    <thetext>Patch submitted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66698</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2016-09-28 18:22:01 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c6fbb37c823ca65b8c6b680f63036a47834aaf4d</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>