[OE-core] [PATCH 02/17] connman: Package unpackaged .la file

Richard Purdie richard.purdie at linuxfoundation.org
Wed Jul 6 10:34:37 UTC 2011


On Wed, 2011-07-06 at 10:14 +0100, Phil Blundell wrote:
> On Tue, 2011-07-05 at 23:51 +0100, Richard Purdie wrote:
> > +FILES_${PN}-dev += "${libdir}/connman/plugins/*.la"
> 
> Actually, in this specific case, I think adding *.la to FILES is the
> wrong thing to do.  The DSOs in question are plugins, not libraries, and
> nobody is ever going to link against them.  So the corresponding .la
> files (and the .so symlinks, if those are also getting created) really
> are just dross and should be deleted.

Ever is a strong word, you might want to wrap and customise a plugin or
something :)

Seriously, I'm in two minds on this and had patches both ways. In the
end I decided it was less ugly to package them than have the metadata
covered in .la file deletions which would likely encourage people to
delete library .la files too and not see the subtle difference.

There are also rumours that some libltdl derived plugin modules use
the .la files under certain circumstances. I suspect connman doesn't use
libltdl but I didn't check. I also suspect that if it did need them, the
standard package would need to include them. Since it presumably works
as is, it therefore mustn't need them. Its a useful thing to keep in
mind though since plugins doesn't necessarily mean no need for the .la
files (imagemagik was software that used the .la files for plugins
iirc).

Cheers,

Richard









More information about the Openembedded-core mailing list