Only one copy of bitbake should be run against a build directory
Since updating my copy of bitbake to one which does this extra locking, I've come to realise that the constraint of having only one copy of bitbake running is a bit of a nuisance when making use of devshells. I used to quite often have one or two long-running devshells for packages that I was actively working on, and then in parallel with that would use bitbake to recompile other things. With the new locking mechanism, as soon as I have a single devshell open I am now prohibited from using bitbake for anything else in that same build directory.
Would it be reasonable to exempt devshells from that locking or is there some compelling reason why they need to be serialised?
thanks
p.
Quoted 11 lines · Phil Blundell
Since updating my copy of bitbake to one which does this extra locking, I've come to realise that the constraint of having only one copy of bitbake running is a bit of a nuisance when making use of devshells. I used to quite often have one or two long-running devshells for packages that I was actively working on, and then in parallel with that would use bitbake to recompile other things. With the new locking mechanism, as soon as I have a single devshell open I am now prohibited from using bitbake for anything else in that same build directory.
Would it be reasonable to exempt devshells from that locking or is there some compelling reason why they need to be serialised?
The same does apply to bitbake-diffsigs now after IIRC this patch
http://git.openembedded.org/bitbake/commit/?id=cc70181659c07e04c205e17832846acf1ff31d28
before that I could use bitbake-diffsigs from any directory (not only TOPDIR) and also when build in the same directory was still running.
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 10 lines · Martin Jansa
Quoted 9 lines · Phil Blundell
Since updating my copy of bitbake to one which does this extra locking, I've come to realise that the constraint of having only one copy of bitbake running is a bit of a nuisance when making use of devshells. I used to quite often have one or two long-running devshells for packages that I was actively working on, and then in parallel with that would use bitbake to recompile other things. With the new locking mechanism, as soon as I have a single devshell open I am now prohibited from using bitbake for anything else in that same build directory.
Quoted 8 lines
Quoted 2 lines
Would it be reasonable to exempt devshells from that locking or is there some compelling reason why they need to be serialised?
The same does apply to bitbake-diffsigs now after IIRC this patch
http://git.openembedded.org/bitbake/commit/?id=cc70181659c07e04c205e17832846acf1ff31d28
before that I could use bitbake-diffsigs from any directory (not only TOPDIR) and also when build in the same directory was still running.
and also to use runqemu
Quoted 10 lines
Cheers,
--
Martin 'JaMa' Jansa jabber: [email protected]_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 8 lines · On Thursday 04 October 2012 09:52:45 Khem Raj wrote:
Quoted 5 lines · Martin Jansa
The same does apply to bitbake-diffsigs now after IIRC this patch
http://git.openembedded.org/bitbake/commit/?id=cc70181659c07e04c205e17832846acf1ff31d28before that I could use bitbake-diffsigs from any directory (not only TOPDIR) and also when build in the same directory was still running.and also to use runqemu
Leaving the issue of devshell aside for a second, I agree that this is fairly unnecessary for the utilities; if we can avoid the checks for those we should. I'll look into this.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 3 lines · Phil Blundell
Since updating my copy of bitbake to one which does this extra locking, I've come to realise that the constraint of having only one copy of bitbake running is a bit of a nuisance when making use of devshells.
In Message-ID: <[email protected]>,
Subject: [OE-core] Customize devshell terminal command / environment, I suggested the patch found in https://gist.github.com/3774736
This patch would allow you to customize the terminal used, including spawning a terminal that detaches itself from the bitbake. So, my setup
is: patch plus bitbake running in a screen instance plus these settings:
OE_TERMINAL = "custom"OE_TERMINAL_CUSTOMCMD = "screen"OE_TERMINAL_EXPORTS += "STY"
(Should I submit this (non-obtrusive) patch somewhere? (-: )
Smiles,
Signature · 1 line
Morten Minde Neergaard
Quoted 11 lines · Phil Blundell
Since updating my copy of bitbake to one which does this extra locking, I've come to realise that the constraint of having only one copy of bitbake running is a bit of a nuisance when making use of devshells. I used to quite often have one or two long-running devshells for packages that I was actively working on, and then in parallel with that would use bitbake to recompile other things. With the new locking mechanism, as soon as I have a single devshell open I am now prohibited from using bitbake for anything else in that same build directory.
Would it be reasonable to exempt devshells from that locking or is there some compelling reason why they need to be serialised?
The reason it was added was that there were too many people shooting themselves in the foot with multiple bitbake processes running without them realising it. I has "saved" me a few times too.
I'm not sure how you'd allow devshell but not anything else, particularly as there may be tasks that run before the devshell task gets executed.
I'd be fine with a --ignore-the-lockfile-I-know-what-I-am-doing type option, then on your own head be it ;-).
Cheers,
Richard