automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] branch master updated: vala: avoid wrong regeneration


From: Karl Berry
Subject: [automake-commit] branch master updated: vala: avoid wrong regeneration of C files.
Date: Fri, 27 Nov 2020 21:02:25 -0500

This is an automated email from the git hooks/post-receive script.

karl pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=7581ec208302e37952cade631b82b0924451822c

The following commit(s) were added to refs/heads/master by this push:
     new 7581ec2  vala: avoid wrong regeneration of C files.
7581ec2 is described below

commit 7581ec208302e37952cade631b82b0924451822c
Author: Reuben Thomas <rrt@sc3d.org>
AuthorDate: Fri Nov 27 18:02:08 2020 -0800

    vala: avoid wrong regeneration of C files.
    
    This change might fix https://bugs.gnu.org/44772.
    
    * bin/automake.in (lang_val_finish_target): reverse -newer test
    to handle files being created at the same time causing
    spurious rebuilds.
---
 bin/automake.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/automake.in b/bin/automake.in
index 31c7238..ce06437 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -5734,7 +5734,7 @@ sub lang_vala_finish_target
           my $built_dir = dirname $built_c_file;
           my $base_c_file = basename $c_file;
           $output_rules .= "$built_c_file: 
\$(builddir)/${derived}_vala.stamp\n"
-            . "\t\@if test ! -f \$@ && test \$(srcdir) != \$(builddir) && test 
-n \"\$\$(find -L \$(srcdir)/$c_file -prune -newer \$(srcdir)/$vala_file)\"; 
then cp -p \$(srcdir)/$c_file $built_c_file; fi\n"
+            . "\t\@if test ! -f \$@ && test \$(srcdir) != \$(builddir) && test 
-n \"\$\$(find -L \$(srcdir)/$vala_file -prune \! -newer \$(srcdir)/$c_file)\"; 
then cp -p \$(srcdir)/$c_file $built_c_file; fi\n"
             . "\t\@if test -f \$@; then :; else rm -f 
\$(builddir)/${derived}_vala.stamp; fi\n"
             . "\t\@if test -f \$@; then :; else \\\n"
             . "\t  \$(MAKE) \$(AM_MAKEFLAGS) 
\$(builddir)/${derived}_vala.stamp; \\\n"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]