<?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>2973</bug_id>
          
          <creation_ts>2012-08-20 20:55:22 +0000</creation_ts>
          <short_desc>ltp_20120104: Missing dependency on libaio</short_desc>
          <delta_ts>2012-10-08 13:53:59 +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>1.2.1</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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marc Ferland">marc.ferland</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>24238</commentid>
    <comment_count>0</comment_count>
    <who name="Marc Ferland">marc.ferland</who>
    <bug_when>2012-08-20 20:55:22 +0000</bug_when>
    <thetext>I recently did a clean rebuild and got this at the end:

Processing locale-base-en-us...
Processing locale-base-en-gb...
Processing task-core-boot...
Processing task-core-tools-testapps...
Processing task-core-ssh-dropbear...
Processing ntpclient...
Processing task-core-apps-console...
Processing zypper...
Processing bluez4...
Processing task-core-x11-base...
Processing task-core-apps-x11-core...
Processing task-qt4-base...
Processing task-base-extended...
Processing rpm...
Processing project3...
error: Failed dependencies:
        libaio1 &gt;= 0.3.109 is needed by ltp-20120104-r1.core2
        libaio.so.1(LIBAIO_0.4) is needed by ltp-20120104-r1.core2
        libaio.so.1(LIBAIO_0.1) is needed by ltp-20120104-r1.core2
        libaio.so.1 is needed by ltp-20120104-r1.core2

I am using denzil.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24239</commentid>
    <comment_count>1</comment_count>
    <who name="Marc Ferland">marc.ferland</who>
    <bug_when>2012-08-20 20:57:57 +0000</bug_when>
    <thetext>FYI a quick grep reveals that ltp 20120104 (denzil) and 20120614 (master) contain tests that link on libaio.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24255</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-08-21 01:51:56 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I recently did a clean rebuild and got this at the end:
&gt; 
&gt; Processing locale-base-en-us...
&gt; Processing locale-base-en-gb...
&gt; Processing task-core-boot...
&gt; Processing task-core-tools-testapps...
&gt; Processing task-core-ssh-dropbear...
&gt; Processing ntpclient...
&gt; Processing task-core-apps-console...
&gt; Processing zypper...
&gt; Processing bluez4...
&gt; Processing task-core-x11-base...
&gt; Processing task-core-apps-x11-core...
&gt; Processing task-qt4-base...
&gt; Processing task-base-extended...
&gt; Processing rpm...
&gt; Processing project3...
&gt; error: Failed dependencies:
&gt;         libaio1 &gt;= 0.3.109 is needed by ltp-20120104-r1.core2
&gt;         libaio.so.1(LIBAIO_0.4) is needed by ltp-20120104-r1.core2
&gt;         libaio.so.1(LIBAIO_0.1) is needed by ltp-20120104-r1.core2
&gt;         libaio.so.1 is needed by ltp-20120104-r1.core2
&gt; 
&gt; I am using denzil.

Hi Marc,

Which image did you build? And was it build or rebuild?
Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24257</commentid>
    <comment_count>3</comment_count>
    <who name="Marc Ferland">marc.ferland</who>
    <bug_when>2012-08-21 02:24:23 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #0)
&gt; &gt; I recently did a clean rebuild and got this at the end:
&gt; &gt; 
&gt; &gt; Processing locale-base-en-us...
&gt; &gt; Processing locale-base-en-gb...
&gt; &gt; Processing task-core-boot...
&gt; &gt; Processing task-core-tools-testapps...
&gt; &gt; Processing task-core-ssh-dropbear...
&gt; &gt; Processing ntpclient...
&gt; &gt; Processing task-core-apps-console...
&gt; &gt; Processing zypper...
&gt; &gt; Processing bluez4...
&gt; &gt; Processing task-core-x11-base...
&gt; &gt; Processing task-core-apps-x11-core...
&gt; &gt; Processing task-qt4-base...
&gt; &gt; Processing task-base-extended...
&gt; &gt; Processing rpm...
&gt; &gt; Processing project3...
&gt; &gt; error: Failed dependencies:
&gt; &gt;         libaio1 &gt;= 0.3.109 is needed by ltp-20120104-r1.core2
&gt; &gt;         libaio.so.1(LIBAIO_0.4) is needed by ltp-20120104-r1.core2
&gt; &gt;         libaio.so.1(LIBAIO_0.1) is needed by ltp-20120104-r1.core2
&gt; &gt;         libaio.so.1 is needed by ltp-20120104-r1.core2
&gt; &gt; 
&gt; &gt; I am using denzil.
&gt; 
&gt; Hi Marc,
&gt; 
&gt; Which image did you build? And was it build or rebuild?
&gt; Thanks.

It was my own image (inherits from core-image). Adding the dependency with DEPENDS = &quot;libaio&quot; (inside the ltp recipe) fixed the problem. 

The problem happened on the first build of my image (starting from a completely clean build and sstate directory).

Right now, even if I revert my changes to the ltp recipe, the build finishes successfully. Looks like some kind of race condition...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24738</commentid>
    <comment_count>4</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-09-03 01:49:56 +0000</bug_when>
    <thetext>This occurs in master branch too. It could be reproduced by:
bitbake libaio -c populate_sysroot
bitbake ltp
bitbake core-image-&apos;which-include-ltp&apos;

It fails with same information.

Patch for ltp on master branch has merged. For denzil, ltp should update to latest version 20120614 by:
5af0be987e1117fe830de72e646ef372a12f923f

and apply the fix:
698f0dfd2fc8271ce5ffd654108a04df3381f89c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25539</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-09-21 15:21:44 +0000</bug_when>
    <thetext>Verified on:

branch: Denzil; commit: 65ffa7395055f7e012cb973f63f92380828eed0d
branch: Master; commit: 3c101af5e33b21f53171c66de0c2c3e797d95247

using:

bitbake libaio -c populate_sysroot
bitbake ltp

No errors shown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25541</commentid>
    <comment_count>6</comment_count>
    <who name="Marc Ferland">marc.ferland</who>
    <bug_when>2012-09-21 15:49:40 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Verified on:
&gt; 
&gt; branch: Denzil; commit: 65ffa7395055f7e012cb973f63f92380828eed0d

Are you sure about that? I&apos;m not seeing the commits referenced by Kai on the denzil branch. I think they haven&apos;t been merged yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25566</commentid>
    <comment_count>7</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-09-24 07:43:49 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; &gt; Verified on:
&gt; &gt; 
&gt; &gt; branch: Denzil; commit: 65ffa7395055f7e012cb973f63f92380828eed0d
&gt; 
&gt; Are you sure about that? I&apos;m not seeing the commits referenced by Kai on the
&gt; denzil branch. I think they haven&apos;t been merged yet.

If not test in a clean environment, please run
bitbake libaio -c clean
before
bitbake libaio -c populate_sysroot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25592</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-09-24 12:23:39 +0000</bug_when>
    <thetext>     In an effort to reproduce this bug I did not obtain the original results but when doing: bitbake core-image-minimal with IMAGE_INSTALL_append += &quot;ltp&quot; and MACHINE ??=&quot;qemux86&quot; in loca.conf, the build fails with the following dependecy error:

Processing task-core-boot...
Processing ltp...
error: Failed dependencies:
        libcap2 &gt;= 2.22 is needed by ltp-20120104-r1.i586
        libcap.so.2 is needed by ltp-20120104-r1.i586

     Please note that when building the same image with MACHINE ??=&quot;qemux86-64&quot; the build succedes. 
     Also &quot;bitbake libaio -c populate_sysroot&quot; and &quot;bitbake ltp&quot; succeed in a clean build using both qemux86 and qemux86-64 architectures.

        All reproduction rates mentioned are 100% .

        It seems to me that dependency fails vary depending on the used architecture. Please note that the original error was for core2 architecture and it had a different dependency fail than my i586.

        I will rerun the tests when the fix commit arrives in denzil. Untill then I return this to resolved.

Thank you for your assistance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25633</commentid>
    <comment_count>9</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-09-25 02:25:54 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt;      In an effort to reproduce this bug I did not obtain the original
&gt; results but when doing: bitbake core-image-minimal with IMAGE_INSTALL_append
&gt; += &quot;ltp&quot; and MACHINE ??=&quot;qemux86&quot; in loca.conf, the build fails with the
&gt; following dependecy error:
&gt; 
&gt; Processing task-core-boot...
&gt; Processing ltp...
&gt; error: Failed dependencies:
&gt;         libcap2 &gt;= 2.22 is needed by ltp-20120104-r1.i586
&gt;         libcap.so.2 is needed by ltp-20120104-r1.i586
&gt; 
&gt;      Please note that when building the same image with MACHINE
&gt; ??=&quot;qemux86-64&quot; the build succedes. 
&gt;      Also &quot;bitbake libaio -c populate_sysroot&quot; and &quot;bitbake ltp&quot; succeed in
&gt; a clean build using both qemux86 and qemux86-64 architectures.
&gt; 
&gt;         All reproduction rates mentioned are 100% .
&gt; 
&gt;         It seems to me that dependency fails vary depending on the used
&gt; architecture. Please note that the original error was for core2 architecture
&gt; and it had a different dependency fail than my i586.
&gt; 
&gt;         I will rerun the tests when the fix commit arrives in denzil. Untill
&gt; then I return this to resolved.
&gt; 
&gt; Thank you for your assistance.

I confirmed that this the same issue with libaio, and I&apos;ll send a patch to add libcap as dependency of ltp</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26319</commentid>
    <comment_count>10</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-10-08 09:02:12 +0000</bug_when>
    <thetext>Changing this to reopened as new issues arised asociated with this bug.

Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26321</commentid>
    <comment_count>11</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-10-08 09:06:05 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; Changing this to reopened as new issues arised asociated with this bug.
&gt; 
&gt; Thank you.

The libcap issue has been fixed by Yocto commit f88ee2e28f0271db439689d9b04ca4cbcbbfbfa3

Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26339</commentid>
    <comment_count>12</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-10-08 13:53:15 +0000</bug_when>
    <thetext>Verified in Denzil:
commit e7d4eba0a9bc02d61a77129da4be2f0c9239884b
Date:   Mon Sep 10 13:42:57 2012 +0300

and master:
commit 04232f5908d4a3116589193fa5f1ff526bdedacc
Date:   Fri Oct 5 22:33:29 2012 +0000</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26340</commentid>
    <comment_count>13</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2012-10-08 13:53:59 +0000</bug_when>
    <thetext>Verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>