oe-lite / core

Official OE-lite/core repository - moved to GitLab.com
https://gitlab.com/oe-lite/core
Other
4 stars 17 forks source link

s6rc.oeclass: automatically declare recipe flags #229

Closed Villemoes closed 7 years ago

Villemoes commented 7 years ago

There's a lot of boilerplate involved in creating an s6 service. On at least one occation, I missed declaring the *_s6rc_dependencies as a recipe flag, so the service got created without proper dependencies. Make this a little less error-prone and allow omitting the "RECIPE_FLAGS += " lines by automatically defining them based on the services.

This will of course not work for service names that are added to S6RC_*_SERVICES depending on a USE flag setting, but there are none of those currently in meta/base or meta/core, and it is still possible to manually add to recipe flags.