Mamona: classes and configs for fist review
Hello all,
I just created a branch in gitorious with mamona patches related with classes and configs, for first review.
I'll be rebasing the repository until it gets the quality needed to get merged into OE.
Branch: http://gitorious.org/mamona/mamona-oe-class-conf/commits/master
Tomorrow I'm going to post another branch for changes we created in recipes.
I'll be very thankful for anyone that takes a look at the branch and send me any comments.
Thanks,
Signature · 1 line
Ricardo Salveti de Araujo
Hello Ricardo,
Quoted 4 lines · Ricardo Salveti de Araujo
Hello all,
I just created a branch in gitorious with mamona patches related with classes and configs, for first review.
The changes looks good to me at least. One thing that I'd interesting to know is how are you using the PRODUCT setting and what use cases you've been solving with it.
The only cosmetic thing that you might change is to reorder the patch that introduces PRODUCT in bitbake.conf and the distro change to allow for easier understanding of where it come from.
Cheers,
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 4 lines · Otavio Salvador
Hello Ricardo,
On Fri, Nov 27, 2009 at 12:45 AM, Ricardo Salveti de Araujo <[email protected]> wrote:
Quoted 8 lines
Quoted 4 lines
Hello all,
I just created a branch in gitorious with mamona patches related with classes and configs, for first review.
The changes looks good to me at least. One thing that I'd interesting to know is how are you using the PRODUCT setting and what use cases you've been solving with it.
Cool, thanks for reviewing it.
The PRODUCT override came with the need of using Mamona with a common machine but for different purposes. Instead of maintaining different trees, we decided to create the concept of a product and define there the preferred version and providers for different packages.
With this we could work with both "products" at the same tree, just using the overrides at the product file to define the best behavior for that machine.
One single example we had was regarding the legal check phase of a product, that we knew that some version of some packages was already approved, when at the same moment newer versions weren't (so with another product that we just started we could use the newer version, but for the older one we had keep the same old version, because was close to be finished).
Quoted 3 lines
The only cosmetic thing that you might change is to reorder the patch that introduces PRODUCT in bitbake.conf and the distro change to allow for easier understanding of where it come from.
Ok, will change that. Will also change the commit message to explain that the idea came from mamona.
Thanks,
Signature · 1 line
Ricardo Salveti de Araujo
Quoted 6 lines · Ricardo Salveti de Araujo
On Fri, Nov 27, 2009 at 7:48 AM, Otavio Salvador
Quoted 3 lines
The changes looks good to me at least. One thing that I'd interesting to know is how are you using the PRODUCT setting and what use cases you've been solving with it.
Cool, thanks for reviewing it.
No problem; you're welcome.
Quoted 8 lines
The PRODUCT override came with the need of using Mamona with a common machine but for different purposes. Instead of maintaining different trees, we decided to create the concept of a product and define there the preferred version and providers for different packages.
With this we could work with both "products" at the same tree, just using the overrides at the product file to define the best behavior for that machine.
I see.
Quoted 7 lines
One single example we had was regarding the legal check phase of a product, that we knew that some version of some packages was already approved, when at the same moment newer versions weren't (so with another product that we just started we could use the newer version, but for the older one we had keep the same old version, because was close to be finished).
Quoted 6 lines
Quoted 3 lines
The only cosmetic thing that you might change is to reorder the patch that introduces PRODUCT in bitbake.conf and the distro change to allow for easier understanding of where it come from.
Ok, will change that. Will also change the commit message to explain that the idea came from mamona.
Well but it looks like that to it properly work you need to use one $TMPDIR for each "product" otherwise if this product has a patch (or requires one) and the package is already built it won't get it.
Am I missing anything?
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 33 lines · Otavio Salvador
Quoted 6 lines · Ricardo Salveti de Araujo
On Fri, Nov 27, 2009 at 7:48 AM, Otavio Salvador
Quoted 3 lines
The changes looks good to me at least. One thing that I'd interesting to know is how are you using the PRODUCT setting and what use cases you've been solving with it.
Cool, thanks for reviewing it.
No problem; you're welcome.
Quoted 8 lines
The PRODUCT override came with the need of using Mamona with a common machine but for different purposes. Instead of maintaining different trees, we decided to create the concept of a product and define there the preferred version and providers for different packages.
With this we could work with both "products" at the same tree, just using the overrides at the product file to define the best behavior for that machine.
I see.
Quoted 11 lines
One single example we had was regarding the legal check phase of a product, that we knew that some version of some packages was already approved, when at the same moment newer versions weren't (so with another product that we just started we could use the newer version, but for the older one we had keep the same old version, because was close to be finished).
Quoted 3 lines
The only cosmetic thing that you might change is to reorder the patch that introduces PRODUCT in bitbake.conf and the distro change to allow for easier understanding of where it come from.
Quoted 8 lines
Quoted 2 lines
Ok, will change that. Will also change the commit message to explain that the idea came from mamona.
Well but it looks like that to it properly work you need to use one $TMPDIR for each "product" otherwise if this product has a patch (or requires one) and the package is already built it won't get it.
Am I missing anything?
Yep, you're right, you need to do that in order to have a clean build for each product. At mamona we set that while configuring the environment, and in our case we were using a buildbot for each machine, doing always a clean build, so it wasn't actually a problem for us.
Cheers,
Signature · 1 line
Ricardo Salveti de Araujo
Hello,
Quoted 5 lines · Ricardo Salveti de Araujo
On Fri, Nov 27, 2009 at 2:06 PM, Otavio Salvador
Quoted 4 lines
Well but it looks like that to it properly work you need to use one $TMPDIR for each "product" otherwise if this product has a patch (or requires one) and the package is already built it won't get it.
Quoted 7 lines
Quoted 1 line
Am I missing anything?
Yep, you're right, you need to do that in order to have a clean build for each product. At mamona we set that while configuring the environment, and in our case we were using a buildbot for each machine, doing always a clean build, so it wasn't actually a problem for us.
Here we use it at distro and use previous distro in override as well reducing this diverging problem.
We do it as making a new distro for each product that include the "base" and changes what is required providing a new distro that has all base distro as base for settings, versions and like.
In your case it might be:
mamona.conf
mamona-vanilla.conf
mamona-foo.conf
This could avoid the multiple TMPDIR issues. We added here a DISTRO_MACHINE_ARCH so in case the configuration is specific to a machine and distro we use it, instead of MACHINE_ARCH allowing for speedup in compilation and sharing the TMPDIR for those.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br