<?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>8256</bug_id>
          
          <creation_ts>2015-09-04 10:51:27 +0000</creation_ts>
          <short_desc>Example multilib setup from dev manual fails when using systemd</short_desc>
          <delta_ts>2015-10-28 13:21:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>1.9</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>23 Sept 2015 - RESOLVED/FIXED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>srifenbark</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>53741</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2015-09-04 10:51:27 +0000</bug_when>
    <thetext>When setting up an environment to test the impact of some changes on multilib I ran into build errors when using multilib + systemd.

The dev manual suggests[1] that an easy way to enable &amp; test multilib is to add the following to local.conf:

MACHINE = &quot;qemux86-64&quot;
require conf/multilib.conf
MULTILIBS = &quot;multilib:lib32&quot;
DEFAULTTUNE_virtclass-multilib-lib32 = &quot;x86&quot;
IMAGE_INSTALL = &quot;lib32-connman&quot;

As I&apos;m developing changes to systemd my local.conf also includes the following entries to enable it as init manager:

DISTRO_FEATURES_append = &quot; systemd&quot;
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;
DISTRO_FEATURES_BACKFILL_CONSIDERED = &quot;sysvinit&quot;
VIRTUAL-RUNTIME_initscripts = &quot;&quot;

When building core-image-sato (with connman + lib32-connman from the IMAGE_INSTALL line pasted from the dev manual) I receive the following error:

Multilib check error: duplicate files 
/srv/build/split-multilib/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/multilib/lib32/lib/systemd/system/connman.service 
/srv/build/split-multilib/tmp/work/qemux86_64-poky-linux/core-image-sato/1.0-r0/
rootfs/lib/systemd/system/connman.service is not the same

1. https://www.yoctoproject.org/docs/1.8/dev-manual/dev-manual.html#using-multilib</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53748</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-04 13:06:26 +0000</bug_when>
    <thetext>Yes, the example is a terrible idea as you can&apos;t just swap a lib32 binary for a lib64 binary as the systemd unit files which need to be identical are not as they have references to $(libdir) in.

We should change the documentation to install something that you&apos;d actually install into a multilib image such as lib32-glib-2.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54168</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-09-16 16:30:56 +0000</bug_when>
    <thetext>Hi, 

I have updated the YP Development Manual to use lib32-glib-2.0 rather than lib32-connman as suggested by Ross.  You can review the section at http://www.yoctoproject.org/docs/1.9/dev-manual/dev-manual.html#using-multilib.  Let me know if there are any issues or changes needed beyond this.

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54383</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-21 13:47:59 +0000</bug_when>
    <thetext>The lib32-glib-2.0 is good and I&apos;ve verified that works, but the surrounding isn&apos;t right.

IMAGE_INSTALL = &quot;lib32-glib-2.0&quot; will result in an image that *just* contains that library.  The example should be

IMAGE_INSTALL_append = &quot; lib32-glib-2.0&quot;

(note the leading space in the value is important)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54442</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-09-22 14:29:35 +0000</bug_when>
    <thetext>Ross, 

I fixed as directed.  See http://www.yoctoproject.org/docs/1.9/dev-manual/dev-manual.html#using-multilib and let me know if I can set this to RESOLVED.

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54458</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-09-22 15:06:46 +0000</bug_when>
    <thetext>Setting to 1.0 days to get this off the red-flag list.  The change is just waiting for approval from Ross.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54462</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-09-22 15:11:18 +0000</bug_when>
    <thetext>Looks good!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54538</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-09-23 14:13:33 +0000</bug_when>
    <thetext>Setting to RESOLVED/FIXED and turning Doc flag off.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55912</commentid>
    <comment_count>8</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-10-28 13:21:10 +0000</bug_when>
    <thetext>Verified on 
http://www.yoctoproject.org/docs/2.0/dev-manual/dev-manual.html#using-multilib
http://www.yoctoproject.org/docs/1.9/dev-manual/dev-manual.html#using-multilib</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>