[Openembedded-architecture] Package postinstall dependencies - Introduction of PACKAGE_WRITE_DEPS

Burton, Ross ross.burton at intel.com
Thu Jan 19 16:56:44 UTC 2017


On 19 January 2017 at 16:13, Trevor Woerner <twoerner at gmail.com> wrote:

> Is there not already a mechanism for generically saying "I need <this>
> task of
> <that> recipe to be completed before my <such-and-such> task can run" of
> which
> DEPENDS and RDEPENDS are simply short-hand notations?
>
> If "yes" (and I understand the discussion correctly) couldn't that be
> employed
> here?
>
> If "no" (and I understand the discussion correctly) wouldn't adding such a
> mechanism be a possible solution. The use of which, hopefully, would make
> it
> easier for a user to understand what's going on (without requiring ad-hoc
> knowledge of the system)?
>

Yes, there is.  do_some_task[depends] += "some-recipe:some_other_task".

DEPENDS is just a neat way of setting [depends] on do_configure to the list
of recipes in DEPENDS's do_populate_sysroot task.

The problem is that do_package_write doesn't exist: the task is
do_package_write_deb ..._ipk and ..._rpm.  Thus the single variable that
the classes and recipes write to, and the package classes do:

do_package_write_rpm[depends] += "${PACKAGE_WRITE_DEPS}"

Simples!  :)

IMHO, the current name is fine.  As the dependencies are added to
do_package_write, it's the most obvious name.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-architecture/attachments/20170119/67f8406f/attachment-0002.html>


More information about the Openembedded-architecture mailing list