[oe] changes to some bbclases to make FILES_ variables more reliable

Henning Heinold heinold at inf.fu-berlin.de
Fri Jun 6 12:34:01 UTC 2008


Hi,

after fighting with sdl-package yesterday I noticed some gliches in the
way FILES_ is used in the recipes, especially when inherit binconfig
and pkgconfig is used. My thoughts were when I use inherit binconfig
the binconfig.class should set all variables to let the package build, install and
stage. But unfornatly it does not work this way yet. After searching
through the code I can not find where original FILES_ is set, but
then I noticed the lib_package-class,
which sets usefull defines for the FILES_ variables(more
packages should use it), but in my opinion
to much for some cases like binconfig and pkgconfig. So I cut the defines
for this cases and put them in binconfig.bbclass and pkgconfig.bbclass.
This will make writing packages easier and nobody needs to set FILES_bla
and FILES_bla-dev manually.
If no one speaks against it or can not enlight me to a better way. I will
commit this changes in the next days. Attached is a patch. 
One problem should be noticed here. When lib_package is used in recipes
it has to be before binconfig and pkgconfig, because of the way is set's
the FILES_ variables.

Bye,

Henning

PS: staging needs some of this thoughts too, so we dont have to set
do_stage manually in the recipes, but this looks a little bit harder
than the FILES_ case
-------------- next part --------------
A non-text attachment was scrubbed...
Name: classes.patch
Type: text/x-diff
Size: 2152 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20080606/40852bb1/attachment-0002.bin>


More information about the Openembedded-devel mailing list