VirtualBox

Changeset 1994 in kBuild for trunk/src


Ignore:
Timestamp:
Oct 29, 2008 3:20:22 AM (17 years ago)
Author:
bird
Message:

remake.c: fixed regression from GNU Make head, see Savannah bug #15919.

Location:
trunk/src/kmk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/remake.c

    r1993 r1994  
    11691169          /* Reset this target's state so that we check it fresh.  It could be
    11701170             that it's already been checked as part of an order-only
    1171              prerequisite and so wasn't rebuilt then, but should be now.  */
    1172           set_command_state (file, cs_not_started);
     1171             prerequisite and so wasn't rebuilt then, but should be now.
     1172
     1173             bird: What if we're already running the recipe?  We don't wish
     1174                   it to be started once again do we?  This happens with the
     1175                   SECONDARY Test #9 here now... If the idea is to re-evaluate
     1176                   the target regardless of whether it's running or no, then
     1177                   perhaps saving and restoring is a better idea?
     1178                   See bug #15919.  */
     1179          if (file->command_state != cs_running) /* bird */
     1180            set_command_state (file, cs_not_started);
    11731181
    11741182          lastd = 0;
  • trunk/src/kmk/tests/scripts/targets/INTERMEDIATE

    r1993 r1994  
    5757# TEST #3
    5858# kmk+fast: differs because of different hashing.
    59 # kmk: suspect the -j1 actually hides a bug, 'cp bar.f bar.e' is executed twice.
    6059
    61 &run_make_with_options($makefile,'-j1 foo.c',&get_logfile);
     60&run_make_with_options($makefile,'foo.c',&get_logfile);
    6261$answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\n"
    6362        . (!$is_kmk && !$is_fast ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n");
     
    7271# TEST #5
    7372# kmk+fast: differs because of different hashing.
    74 # kmk: suspect the -j1 actually hides a bug, 'cp bar.f bar.e' is executed twice.
    7573
    7674&utouch(-10, 'foo.c');
    7775&touch('foo.f');
    7876
    79 &run_make_with_options($makefile,'-j1 foo.c',&get_logfile);
     77&run_make_with_options($makefile,'foo.c',&get_logfile);
    8078$answer = "cp foo.f foo.e\ncp bar.f bar.e\ncat foo.e bar.e > foo.c\n"
    8179        . (!$is_kmk && !$is_fast ? "rm bar.e foo.e\n" : "rm foo.e bar.e\n");
  • trunk/src/kmk/tests/scripts/targets/SECONDARY

    r1993 r1994  
    124124# TEST #9 -- Savannah bug #15919
    125125# The original fix for this bug caused a new bug, shown here.
    126 # kmk: suspect the -j1 actually hides a bug, 'cp 2.a 2.b' is executed twice.
    127126
    128127touch(qw(1.a 2.a));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette