All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFD] increased dependency checking
@ 2010-08-28  8:23 Frans Meulenbroeks
  2010-08-28 14:49 ` Koen Kooi
  2010-08-30 16:59 ` Vitus Jensen
  0 siblings, 2 replies; 12+ messages in thread
From: Frans Meulenbroeks @ 2010-08-28  8:23 UTC (permalink / raw)
  To: openembedded-devel

Currently if a package in the DEPENDS list is modified, a package that
depends on it does not get updated even if explicitly build
E.g. when I just updated libexif and after that did a bitbake
mythplugins (which has a DEPENDS on libexif) libexif got build but
mythplugins did not get rebuild.

This is not really proper. E.g. if the lib changed a .h file the build
of the using package could fail, but it could easily get unnoticed as
one will only become aware of this when forcefully rebuilding that
using package.

I think we can do better by better exploiting the timestamp.
E.g. what about doing it this way:

If you build a package and the timestamp of e.g. do-install  (or
do-stage or another pass) of one of your DEPENDS packages is newer
than your do-install (or another task) then your dependency is most
likely newer, so you need a rebuild. (preceded with a clean to get rid
of the old stuff). This should be added to the task list.

Of course is is not as trivial as I sketch here.
This whole game needs to be played recursively bottom up.
So if A depends on B and B depends on C and C gets changed for
whatever reason, then bitbake A should lead to rebuilding B first.

A similar thing might also be needed for RDEPENDS.
If you run time depend on a package that is newer than you are, it
might also be that there are inconsistencies.

How does this sound? I assume it will increase the workload of
bitbake, but I feel this will lead to more stable packages.
Your feedback is appreciated!

Frans.



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-09-05  7:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-28  8:23 [RFD] increased dependency checking Frans Meulenbroeks
2010-08-28 14:49 ` Koen Kooi
2010-08-28 14:55   ` Chris Larson
2010-08-28 15:05     ` Koen Kooi
2010-08-28 15:24     ` Koen Kooi
2010-08-28 15:43       ` Chris Larson
2010-08-29  8:52         ` Frans Meulenbroeks
2010-08-29 11:28           ` Frans Meulenbroeks
2010-08-30 16:59 ` Vitus Jensen
2010-08-30 17:28   ` C Michael Sundius
2010-09-04 18:11     ` Chris Larson
2010-09-05  7:29       ` Frans Meulenbroeks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.