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't see the variable created in the scope of the "for" loop, so python creates a local one, and the "actual" 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'm not sure if the same issue is true for the "renames" 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)
Reproduced and confirmed. I will dig into this. @g
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.
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=00a6199b9288d2c1fec7cef4c13a820a1976c1d6