<?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>2380</bug_id>
          
          <creation_ts>2012-05-01 17:21:58 +0000</creation_ts>
          <short_desc>Avoid recursive inclusion of .la files</short_desc>
          <delta_ts>2016-02-03 09:27:13 +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.3</version>
          <rep_platform>All</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>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Khem Raj">raj.khem</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alexander.kanevskiy</cc>
    
    <cc>bluelightning</cc>
    
    <cc>dmitry.rojkov</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <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>20956</commentid>
    <comment_count>0</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2012-05-01 17:21:58 +0000</bug_when>
    <thetext>write a tool to fix the libtool .la files so that they do not call other .la files but are calling the real libraries that way we can avoid lot of overlinking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40555</commentid>
    <comment_count>1</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2014-02-21 03:11:30 +0000</bug_when>
    <thetext>Ross has a preliminary class here

https://github.com/rossburton/meta-ross/blob/master/classes/wipe-la.bbclass</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57410</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Rozhkov">dmitry.rojkov</who>
    <bug_when>2015-12-21 15:04:21 +0000</bug_when>
    <thetext>It would be good to prioritize this bug, because now overlinking is manifesting itself in misleading error messages of devtool (a part of extended SDK) like

NOTE: gupnp: compiling from external source tree /home/rojkov/files/repos/gupnp
ERROR: QA Issue: gssdp rdepends on libxml2, but it isn&apos;t a build dependency? [build-deps]
ERROR: QA Issue: gssdp rdepends on zlib, but it isn&apos;t a build dependency? [build-deps]
ERROR: QA Issue: gssdp rdepends on libsqlite3, but it isn&apos;t a build dependency? [build-deps]
ERROR: QA Issue: gssdp rdepends on libffi, but it isn&apos;t a build dependency? [build-deps]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57446</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-12-22 22:20:40 +0000</bug_when>
    <thetext>Is something like wipe-la still a viable candidate here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57447</commentid>
    <comment_count>4</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-12-22 22:27:54 +0000</bug_when>
    <thetext>Do we want an optional class or should it just be an intrinsic part of our build process?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57448</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-12-22 23:25:12 +0000</bug_when>
    <thetext>I&apos;m tempted to say default to on but able to be disabled, just in case someone has a situation where they actually need .la files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57449</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-12-22 23:32:15 +0000</bug_when>
    <thetext>For what it&apos;s worth, gnome-continuous (yocto-based CI for GNOME) does this in it&apos;s bootstrap image generation:

	find ${IMAGE_ROOTFS}/usr/lib -name \*.la -delete

And then in each &quot;recipe&quot; build, just deletes every .la file after install.

Maybe we should try with just deleting them before packaging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58444</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-02 13:28:23 +0000</bug_when>
    <thetext>I just posted remove-libtool.bbclass to the list.  This isn&apos;t enabled by default but will remove *all* libtool .la files from both target packages and sysroot, so libtool can&apos;t go crazy.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58466</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-02 17:48:32 +0000</bug_when>
    <thetext>Merged in oe-core da1219b5c48fe50d667bc72bd9ad0115b25d5558.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58474</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-02-03 01:04:36 +0000</bug_when>
    <thetext>Ross, 

I added this class to the ref manual: file:///home/scottrif/yocto-docs/documentation/ref-manual/ref-manual.html#ref-classes-remove-libtool.  Let me know if this is okay and I will reset the doc flag to &quot;done.&quot;

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58481</commentid>
    <comment_count>10</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-02-03 09:27:13 +0000</bug_when>
    <thetext>Looks good to me, thanks Scott.  Setting flag to &apos;done&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>