<?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>3723</bug_id>
          
          <creation_ts>2013-01-15 19:01:44 +0000</creation_ts>
          <short_desc>smart: Performance enhancement for attemptonly and complementary installs</short_desc>
          <delta_ts>2013-09-11 14:19:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Package Management Issues</product>
          <component>package-management-issues</component>
          <version>1.4</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>enhancement</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>richard.purdie</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>28838</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-01-15 19:01:44 +0000</bug_when>
    <thetext>Smart does not currently have a way to say &quot;Install these things, but if any of them -- or their dependencies fail -- just keep trying.&quot;  Due to this, the complementary (and related attemptonly) install happens one package at a time.  

For a limited set of packages this is fine from a performance perspective.  However on a large filesystem (such as core-image-sato), enabling -dev, -doc, -dbg, and -staticdev to the build can result in many additional hours of install.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30651</commentid>
    <comment_count>1</comment_count>
      <attachid>1113</attachid>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-03-12 16:18:04 +0000</bug_when>
    <thetext>Created attachment 1113
Patch to speed up many complementary installs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30652</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-03-12 16:18:36 +0000</bug_when>
    <thetext>The original code implementation attempts to install one package at a time, and then moves on to the next one.  For a large (complementary) package set, this can take a significant amount of time.

The existing code was written in this way because it is possible for complementary packages (or attemptonly packages) to fail, because certain dependencies may not have been generated -- or the attemptonly package itself might not exist.

Without making a change to smart, a way to resolve this issue would be run the attemptonly/complementary install as a single unit -- and then upon failure fall back to the old style one at a time install.

See the attached patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31391</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-04-02 19:44:45 +0000</bug_when>
    <thetext>The failure mode for the recommend based install can be replicated with the eglibc package and not installing the eglibc-extra-nss-dev.  See the oe-core mailing list.  Date approx April 1-2nd..  title: [OE-Core][PATCH] eglibc: Let eglibc-extra-nss-dev exist as empty package

(I&apos;m unable to login to the list server to get a direct link to the thread.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36538</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2013-09-11 14:19:49 +0000</bug_when>
    <thetext>oe-core commit: bdf07b1698d228dc7ff555199a269b1ff8ceca19</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>1113</attachid>
            <date>2013-03-12 16:18:04 +0000</date>
            <delta_ts>2013-03-12 16:18:04 +0000</delta_ts>
            <desc>Patch to speed up many complementary installs</desc>
            <filename>0001-package_rpm.bbclass-Performance-improvement-for-atte.patch</filename>
            <type>text/plain</type>
            <size>1887</size>
            <attacher name="Mark Hatle">mark.hatle</attacher>
            
              <data encoding="base64">RnJvbSAwOTI1ZTI0NjI5NjI3ZmNiZjg1NjEyYzhmZTQwZTAxN2M1NmMwMzAwIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXJrIEhhdGxlIDxtYXJrLmhhdGxlQHdpbmRyaXZlci5jb20+
CkRhdGU6IFR1ZSwgMTIgRmViIDIwMTMgMTY6MDY6MDYgLTA2MDAKU3ViamVjdDogW1BBVENIXSBw
YWNrYWdlX3JwbS5iYmNsYXNzOiBQZXJmb3JtYW5jZSBpbXByb3ZlbWVudCBmb3IgYXR0ZW1wdG9u
bHkgaW5zdGFsbHMKClRyeSB0byBkbyB0aGUgYXR0ZW1wdG9ubHkgaW5zdGFsbCBpbiBhIHNpbmds
ZSBvcGVyYXRpb24sIGlmIGl0IGZhaWxzCndlIGZhbGwgYmFjayB0byB0cnlpbmcgZWFjaCBwYWNr
YWdlIG9uZSBhdCBhIHRpbWUuCgpTaWduZWQtb2ZmLWJ5OiBNYXJrIEhhdGxlIDxtYXJrLmhhdGxl
QHdpbmRyaXZlci5jb20+Ci0tLQogbWV0YS9jbGFzc2VzL3BhY2thZ2VfcnBtLmJiY2xhc3MgfCAg
IDE1ICsrKysrKysrKystLS0tLQogMSBmaWxlcyBjaGFuZ2VkLCAxMCBpbnNlcnRpb25zKCspLCA1
IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL21ldGEvY2xhc3Nlcy9wYWNrYWdlX3JwbS5iYmNs
YXNzIGIvbWV0YS9jbGFzc2VzL3BhY2thZ2VfcnBtLmJiY2xhc3MKaW5kZXggM2FjMzc5ZC4uOGMy
M2M0NyAxMDA2NDQKLS0tIGEvbWV0YS9jbGFzc2VzL3BhY2thZ2VfcnBtLmJiY2xhc3MKKysrIGIv
bWV0Y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