[Cook] cook not noticing changes.


Tue Jan 7 05:57:56 EST 2003


On Mon, Jan 06, 2003 at 12:44:11PM -0600, Jerry Pendergraft wrote:
> On Mon, 6 Jan 2003, Robin Lee Powell wrote:
> 
> > I'm having a problem using cook under aegis where, when doing the
> > integration, some of the targets that need to get updated are not being
> > updated, thus causing tests to file.  Instead of the target actually
> > getting evaluated, the target file's time is simply updated.
> [snip]
> > cook: rm bin/moz_base/Player.class
> > cook: echo Player.class
> > Player.class
> > cook: rm -f bin/moz_base/Player.class
> > cook: cp -p src/moz_base/Player.class bin/moz_base/Player.class
> > cook: chmod -f u+w bin/moz_base/Player.class
>
> I believe your problem may be in the recipe body. Note from the
> messages above the the class file is rm'd twice. The first time by
> cook's default action to remove targets before building, the second by
> your recipe body.

That is something I should fix, yes.

But that doesn't explain why some of the recipe bodies aren't getting
evaluated *at* *all*.

cook: echo Player.class
Player.class
cook: rm -f bin/moz_base/Player.class
cook: cp -p src/moz_base/Player.class bin/moz_base/Player.class
cook: chmod -f u+w bin/moz_base/Player.class
cook: adjusting "bin/moz_base/Player.class" forward 1 seconds
cook: adjusting "docs/design.info" forward 16 minutes 37 seconds
cook: adjusting "docs/design.html" forward 16 minutes 37 seconds
cook: adjusting "docs/design.pdf" forward 16 minutes 37 seconds
cook: adjusting "bin/moz_base/Thing.class" forward 16 minutes 37 seconds
cook: echo Located.class
Located.class
cook: rm -f bin/moz_base/Located.class
cook: cp -p src/moz_base/Located.class bin/moz_base/Located.class
cook: chmod -f u+w bin/moz_base/Located.class
cook: adjusting "bin/moz_base/Located.class" back 45 minutes 55 seconds


Note that while Player.class and Located.class get dealt with,
Thing.class does not, even though it has changed as well.

> The other thing is that when you put "file system" modifying commands in a
> recipe body, such as rm,cp etc, you should either include set clearstat;
> or make the commands execute as a single shell command such as below:

OK.  Thanks.

-Robin

-- 
http://www.digitalkingdom.org/~rlpowell/    ***    I'm a *male* Robin.
.i le pamoi velru'e zo'u jmaji le plibu taxfu
.i le remoi velru'e zo'u mo .i le cimoi velru'e zo'u ba'e prali .uisai
http://www.lojban.org/   ***   to sa'a cu'u lei pibyta'u cridrnoma toi



More information about the Cook-users mailing list