Skip to contentSkip to conversation

Fixing OE.dev dependency issues

DISCUSSION Richard Purdie 3 participants 4 messages Mar 31, 2007 – Apr 9, 2007

lore
Share & tools
lore
#0 lore raw

There is a bitbake 1.8.x bug I've kind of been avoiding for a while. The classic case is where a multithreaded bitbake tries to run a do_patch task before do_populate_staging for quilt-native has run. This highlights a gaping hole in our dependency information and worse still, we have no mechanism to make bitbake aware of this dependency. There are also more subtle bugs too.

I'm proposing we add the syntax:

do_patch[depends] = "quilt-native:populate_staging"

to handle needs like this. Experiments on my local tree suggest we need the following patch to generate the correct dependencies:

http://www.rpsys.net/openzaurus/temp/oe-depends-fixes.patch

but of course once we do this, bitbake 1.6 is no longer going to work with the metadata since this change is not backwards compatible.

I'm proposing to release bitbake 1.8.2 with code to handle the above, and epoch handling code in the very near future. We will then have to aim to make bitbake 1.8.2 the minimum bitbake version for .dev before the above fix can be checked in and epoch packages can be more widely/easily used. Does anyone have any objections to a move to bitbake 1.8 in due course? What timescale would people class as acceptable?

Cheers,

Richard

#1 lore raw
Quoted 4 lines · Richard Purdie

http://www.rpsys.net/openzaurus/temp/oe-depends-fixes.patch

but of course once we do this, bitbake 1.6 is no longer going to work with the metadata since this change is not backwards compatible.

This shouldn't be a problem for most people. I guess only a handful of insane projects like OpenMoko were brave enough to patch BitBake ;)

Quoted 6 lines

I'm proposing to release bitbake 1.8.2 with code to handle the above, and epoch handling code in the very near future. We will then have to aim to make bitbake 1.8.2 the minimum bitbake version for .dev before the above fix can be checked in and epoch packages can be more widely/easily used. Does anyone have any objections to a move to bitbake 1.8 in due course? What timescale would people class as acceptable?

2 months after announcing?

Regards,

:M:

Signature · 1 line
Michael 'Mickey' Lauer | IT-Freelancer | http://www.vanille-media.de
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael 'Mickey' Lauer schreef:

Quoted 9 lines
Quoted 4 lines · Richard Purdie

http://www.rpsys.net/openzaurus/temp/oe-depends-fixes.patch

but of course once we do this, bitbake 1.6 is no longer going to work with the metadata since this change is not backwards compatible.

This shouldn't be a problem for most people. I guess only a handful of insane projects like OpenMoko were brave enough to patch BitBake ;)

Quoted 8 lines
Quoted 6 lines

I'm proposing to release bitbake 1.8.2 with code to handle the above, and epoch handling code in the very near future. We will then have to aim to make bitbake 1.8.2 the minimum bitbake version for .dev before the above fix can be checked in and epoch packages can be more widely/easily used. Does anyone have any objections to a move to bitbake 1.8 in due course? What timescale would people class as acceptable?

2 months after announcing?

2 months is awfully long from an OE perspective, but I see your point. Maybe we should have a page that shows when various intrusive patches are going to be committed?

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGEOorMkyGM64RGpERArtxAKCcMdlXhf72TqMYOkMv5rtyb/9U3QCgtTix SqCJ7U164epjVNATF1xtFuU=
=rUvg
-----END PGP SIGNATURE-----

#3 lore raw
In reply to Richard Purdie
Quoted 11 lines · Richard Purdie

I'm proposing we add the syntax:

do_patch[depends] = "quilt-native:populate_staging"

to handle needs like this. Experiments on my local tree suggest we need the following patch to generate the correct dependencies:

http://www.rpsys.net/openzaurus/temp/oe-depends-fixes.patch

but of course once we do this, bitbake 1.6 is no longer going to work with the metadata since this change is not backwards compatible.

Since two months with bitbake 1.8 not working properly with trunk is obviously unacceptable, I've given it some thought and found a way to hopefully maintain backwards compatibility with bitbake 1.6:

http://www.rpsys.net/openzaurus/temp/oe-depends-fixes-r3.patch

This won't help performance of 1.6 but does let it continue to work. It gathers together most of the code that can be removed when we switch to 1.8 too as an added bonus.

Can 1.6 users give this patch a test and report any problems please? If there are no objections, I will check this in soon.

For reference I've already checked this into poky (without the compatibility code) where its working fine with bitbake 1.8.

Cheers,

Richard