On Sun, 2007-03-11 at 17:53 +0100, Henryk Plötz wrote:
> Am Sat, 10 Mar 2007 17:13:00 +0000 schrieb Richard Purdie:
> > I'm basically suggesting a build number based on when the sources last
> > changed is injected into PV, at least in the git case. In other SCM
> > cases, there are nicer numbers we can inject.
> 
> I think I have a neat solution for git, profiting from the separation
> of (I)/(II) and (III): git rev-list gives a list of commit object names
> and simply counting the number of lines of the output should give a
> number similar to Last Changed Rev. However, this can only be used with
> an already downloaded local copy which is only available after fetching.
> 
> Can the bitbake infrastructure support a different PV for the generated
> package? E.g. I would like to use the object name (sha-1) for
> determining when to recompile, before downloading and a `git rev-list |
> wc -l` equivalent for the generated packages, after downloading.

Currently it doesn't support this. We do have support for morphing PN
(package name) at package creation time and if I'm honest we could
perhaps do something similar for PV. I am extremely reluctant to allow
it though as the PN renaming causes a *lot* of problems and even some of
the core OE developers don't 100% understand how it works and get caught
out by it. I realise its an education issue but I don't really want to
cause more problems at least until we get a handle on the documentation
problem.

Regards,

Richard

 


_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev

Reply via email to