<?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>2205</bug_id>
          
          <creation_ts>2012-03-30 09:41:36 +0000</creation_ts>
          <short_desc>package.bbclass/linux_so never calls ldconfig</short_desc>
          <delta_ts>2012-04-11 14:18:28 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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>(1.2) Patch Pending</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          <blocked>917</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrien Bustany">adrien</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>andrei</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>19694</commentid>
    <comment_count>0</comment_count>
    <who name="Adrien Bustany">adrien</who>
    <bug_when>2012-03-30 09:41:36 +0000</bug_when>
    <thetext>The needs_ldconfig variable referred to in http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/package.bbclass#n1363 (linux_so method) is not the same as the one in http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/package.bbclass#n1283 : line 1283 can&apos;t see the variable created in the scope of the &quot;for&quot; loop, so python creates a local one, and the &quot;actual&quot; needs_ldconfig never switches to True. As a consequence, unless the build system of the compiled software calls ldconfig itself, ldconfig will not be called at all, even if all the conditions for it to be called are fulfilled. I&apos;m not sure if the same issue is true for the &quot;renames&quot; list, my python fu being quite limited.
This affects (at least) meta/recipes-support/js/js_1.7.0+1.8.0rc1.bb (see bug 917)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20001</commentid>
    <comment_count>1</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2012-04-06 09:43:21 +0000</bug_when>
    <thetext>Reproduced and confirmed. I will dig into this.

@g</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20003</commentid>
    <comment_count>2</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2012-04-06 13:53:38 +0000</bug_when>
    <thetext>This is because needs_ldconfig is a local function variable. A way to solve would be to define this variable global but this is a discouraged   Another solution would be to return this value in linux_so and i will patch the package class with this fix. 

Waiting for comments.

Fix:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ag/linux_so

Adrien Bustany, please confirm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20179</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-04-11 14:18:28 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=00a6199b9288d2c1fec7cef4c13a820a1976c1d6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>