<?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>1486</bug_id>
          
          <creation_ts>2011-09-14 21:00:57 +0000</creation_ts>
          <short_desc>multilib: duplicated libc-2.13.so when do_rootfs for lib32 build with ipk</short_desc>
          <delta_ts>2011-09-26 18:04:21 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Lianhao Lu">lianhao.lu</assigned_to>
          <cc>dongxiao.xu</cc>
    
    <cc>ke.yu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16206</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-09-14 21:00:57 +0000</bug_when>
    <thetext>tree/branch: poky/master
commit: ce66e2c6bd117d1a40b547b10b376524f9276d16

With latest master commit, when I build some lib32 packages(lib32-connman-gnome lib32-task-base-3g lib32-task-base-wifi lib32-task-base-bluetooth) against qemux86-64 with ipk format, core-image-sato do_rootfs will fail with error that there are duplicated libc-2.13.so. Detailed error messages as following:

########
Configuring lib32-wpa-supplicant-cli.
Configuring lib32-wpa-supplicant.
Configuring lib32-connman-plugin-wifi.
Configuring lib32-connman-plugin-ofono.
Configuring lib32-connman-plugin-ethernet.
Configuring lib32-connman-plugin-bluetooth.
Configuring kernel-module-arc4.
Configuring lib32-hostap-utils.
Configuring lib32-task-base-wifi.
Configuring lib32-task-base-3g.
Configuring lib32-hicolor-icon-theme.
Configuring lib32-connman-gnome.
+ multilib_tryout_dirs=&apos; /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/multilib/lib32&apos;
+ &apos;[&apos; &apos;!&apos; -z /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/multilib_check.py &apos;]&apos;
+ multilib_sanity_check /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/rootfs /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/multilib/lib32
+ multilib_generate_python_file
+ cat
+ echo /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/rootfs /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/multilib/lib32
+ python /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/multilib_check.py
Multilib check error: duplicated files /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/multilib/lib32/lib64/libc-2.13.so /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/rootfs/lib64/libc-2.13.so not allowed

+ exit 1
ERROR: Function &apos;do_rootfs&apos; failed (see /home/jxu49/osel/poky/build/tmp/work/qemux86_64-poky-linux/core-image-sato-1.0-r0/temp/log.do_rootfs.24389 for further information)
########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16239</commentid>
    <comment_count>1</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-09-15 21:05:51 +0000</bug_when>
    <thetext>Some 64bit libraries were installed into the lib32 directory. This seems to be caused by the function package_name_hook() in debian.bbclass.

Take lib32-expat for example. Both expat and lib32-expat would generate a package respectively, with the same name libexpat1. In this case, the opkg has some problems to distinguish between the 64bit libexpat1 coming from expat and the 32bit libexpat1 coming from lib32-expat. We should make sure those 2 packages have different package names.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16274</commentid>
    <comment_count>2</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-09-16 19:49:00 +0000</bug_when>
    <thetext>Fixed by the following 3 patches:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=27f88685091298fec502cdeb68ae04684ba3d678 Added multilib support for  package_name_hook() so MLPREFIX is kept in the final package name.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=aab71071d73d82ae6301dbd910422a311b5ecf4e Added MLPREFIX to the final package names of some library packages in case of DEBIAN_NAMES.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=99dd3c0b2c0a3b116baa5bbd5e390768d699865b changed the logic of multilib_sanity_check, so duplicated files except those matching to MULTILIBRE_ALLOW_REP are allowed if they&apos;re equal. And allow DEBIAN_NOAUTONAMES variable to be automatically mapped in multilib case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16497</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-09-26 18:04:21 +0000</bug_when>
    <thetext>verify the bug with edison branch, the bug is fixed.

commit: 41c564fe605fa4685fd27b1721e3424ac8a96db1

commit 41c564fe605fa4685fd27b1721e3424ac8a96db1
Author: Scott Rifenbark &lt;scott.m.rifenbark@intel.com&gt;
Date:   Fri Sep 23 10:20:16 2011 -0700

    documentation/poky-ref-manual/ref-classes.xml: documented useradd.bbclass

    New section per Paul Eggleton&apos;s request.

    (From yocto-docs rev: ffedb53e5c706cffb83978f1704a606d29233e36)

    Signed-off-by: Scott Rifenbark &lt;scott.m.rifenbark@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>