[yocto] Trying to build a non-autotools package that contains only a lib. Getting empty archive - package is not generated

Chris Larson clarson at kergoth.com
Thu Dec 5 08:23:33 PST 2013


On Thu, Dec 5, 2013 at 9:21 AM, Brian Hutchinson <b.hutchman at gmail.com>wrote:

> I had FILES_${PN} += “${libdir}/*.so” in there and that didn't work.
> Maybe it was because I was missing the FILES_SOLIBSDEV = “" you mentioned.
> I'll play with it some more and see what happens.  I first started out with
> FILES_${PN} += “${libdir}/*.so” and when that didn't work I tried other
> things in the FILES_${PN} = line to try and get it picked up.  When I
> couldn't get any of it to work and then saw others (well, at least the link
> I provided) were seeing the same thing I figured it was time to quit
> spinning my wheels and consult the big guns :)


Heh :) The issue there is that the patterns are matched in the order of the
PACKAGES variable. The first package to include a file gets it, and
${PN}-dev is in PACKAGES before ${PN}. By emptying FILES_SOLIBSDEV, that’ll
remove the .so from FILES_${PN}-dev, letting the ${PN} package get it
instead.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131205/c13f79a1/attachment.html>


More information about the yocto mailing list