On Tuesday 22 December 2009 19:21:21 Helmut Jarausch wrote:
> Hi,
> 
> I have ebuilds fetching the source code directly from a repository
> (be it CVS,SVN,HG,GIT,...)
> I'd like to modify the .ebuild to enter compilation only if something
> has been updated.
> Is this possible, has somebody else tried to do so?

You can't.

The only things that trigger a recompile are the things you already know

- version number change
- USE flag change
- mask change

None of those things has occurred in your scenario, so a recompile will not 
happen. This is by design and you should leave it this way.

I suppose you *could* examine the version number in the CVS checkout, compare 
it to the last built version and make a decision based on that. Two problems:

1. Such version numbers cannot universally be relied upon
2. Portage does not currently store this information in any way that I have 
found, so you will need to patch portage.

It's best to just always recompile everything, which is what you do when you 
work with CVS code manually.

I also asked the same question in the past - about e17 - the above is my 
conclusions.

-- 
alan dot mckinnon at gmail dot com

Reply via email to