[webkit-reviews] review granted: [Bug 61951] [GTK] autogen.sh is run twice for each buld on the bots : [Attachment 95785] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 2 13:28:15 PDT 2011


Gustavo Noronha (kov) <gns at gnome.org> has granted Martin Robinson
<mrobinson at webkit.org>'s request for review:
Bug 61951: [GTK] autogen.sh is run twice for each buld on the bots
https://bugs.webkit.org/show_bug.cgi?id=61951

Attachment 95785: Patch
https://bugs.webkit.org/attachment.cgi?id=95785&action=review

------- Additional Comments from Gustavo Noronha (kov) <gns at gnome.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=95785&action=review

This change seems OK to me, except for the fact that in the edge case of no
GNUmakefile and a file with old arguments being still around it will run
autogen twice. I'll say r=me since it seems reasonably easy to fix it with the
suggestion I made.

> Tools/Scripts/webkitdirs.pm:1526
> +    # If GNUmakefile exists, don't run autogen.sh unless its arguments
> +    # have changed. The makefile should be smart enough to track autotools
> +    # dependencies and re-run autogen.sh when build files change.
> +    if (!(-e "GNUmakefile")) {
> +	   runAutogenForAutotoolsProject($dir, $prefix, $sourceDir,
@buildArgs);
> +    }
>  
> +    my $autogenArgumentsFile =
"previous-autogen-arguments-for-$project.txt";
> +    if ($project eq "WebKit" and
autogenArgumentsHaveChanged($autogenArgumentsFile, @buildArgs)) {

Hmm. Won't this cause autogen to be run twice if there is no GNUmakefile and a
file with arguments that are different from the current ones? Why not add the
!(-e "GNUmakefile") check to the same if that checks for project and arguments
having changed with an or?


More information about the webkit-reviews mailing list