<?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>13418</bug_id>
          
          <creation_ts>2019-06-25 14:56:00 +0000</creation_ts>
          <short_desc>Multilib and update-alternatives conflict</short_desc>
          <delta_ts>2019-06-27 14:56:52 +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.8</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.8 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>84314</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-06-25 14:56:00 +0000</bug_when>
    <thetext>If a multilib image contains both lib32-libtool and libtool then you get warnings:

update-alternatives: libtool has multiple providers with the same priority, please check /home/pokybuild/yocto-worker/multilib/build/build/tmp/work/qemux86-pokymllib64-linux/lib64-core-image-sato-sdk/1.0-r0/rootfs/usr/lib/opkg/alternatives/libtool for details

Both libtool and lib32-libtool have the same priority (as they&apos;re the same recipe), so update-alternatives won&apos;t deterministically pick a provider. This means you could end up with an image using a 32-bit pkgconfig and 64-bit libtool, for example.

update-alternatives and multilib should cooperate to solve this, for example by reducing the priority of multilib&apos;d providers by 1 so the primary architecture is preferred if both are installed.

Robert, assigning this to you as we thought that you might have fixed this already.  We were right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84316</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2019-06-26 07:45:09 +0000</bug_when>
    <thetext>I didn&apos;t fix it, but I think that I can fix it:-).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84324</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-27 14:39:35 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=8eb91205f6996b7e5106336442393157dc6746cf</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>