uh_parser/RaptorUnreciped.pm
changeset 181 d7b846505d9e
parent 176 6d3c3db11e72
child 184 978ef35b4e5f
equal deleted inserted replaced
180:314156ec7d7c 181:d7b846505d9e
    45 my $CATEGORY_RAPTORUNRECIPED = 'raptor_unreciped';
    45 my $CATEGORY_RAPTORUNRECIPED = 'raptor_unreciped';
    46 my $CATEGORY_RAPTORUNRECIPED_NORULETOMAKETARGET = 'no_rule_to_make_target';
    46 my $CATEGORY_RAPTORUNRECIPED_NORULETOMAKETARGET = 'no_rule_to_make_target';
    47 my $CATEGORY_RAPTORUNRECIPED_TARGETNOTREMADEFORERRORS = 'target_not_remade_for_errors';
    47 my $CATEGORY_RAPTORUNRECIPED_TARGETNOTREMADEFORERRORS = 'target_not_remade_for_errors';
    48 my $CATEGORY_RAPTORUNRECIPED_IGNORINGOLDCOMMANDSFORTARGET = 'ignoring_old_commands_for_target';
    48 my $CATEGORY_RAPTORUNRECIPED_IGNORINGOLDCOMMANDSFORTARGET = 'ignoring_old_commands_for_target';
    49 my $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET = 'overriding_commands_for_target';
    49 my $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET = 'overriding_commands_for_target';
       
    50 my $CATEGORY_RAPTORUNRECIPED_MAKE_TARGETNOTREMADEBECAUSEOFERRORS = 'make_target_not_remade_because_of_errors';
       
    51 my $CATEGORY_RAPTORUNRECIPED_MAKE_ERROR1 = 'make_error_1';
       
    52 my $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET = 'make_no_rule_to_make_target';
    50 
    53 
    51 sub process
    54 sub process
    52 {
    55 {
    53 	my ($text, $logfile, $component, $mmp, $phase, $recipe, $file, $line) = @_;
    56 	my ($text, $logfile, $component, $mmp, $phase, $recipe, $file, $line) = @_;
    54 
    57 
    78 	{
    81 	{
    79 		$severity = $RaptorCommon::SEVERITY_MINOR;
    82 		$severity = $RaptorCommon::SEVERITY_MINOR;
    80 		my $subcategory = $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET;
    83 		my $subcategory = $CATEGORY_RAPTORUNRECIPED_OVERRIDINGCOMMANDSFORTARGET;
    81 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
    84 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
    82 	}
    85 	}
    83 	elsif ($text =~ m,make\.exe: Nothing to be done for .*,)
    86 	elsif ($text =~ m,^make: Target .* not remade because of errors\.,)
       
    87 	{
       
    88 		$severity = $RaptorCommon::SEVERITY_MINOR;
       
    89 		my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_TARGETNOTREMADEBECAUSEOFERRORS;
       
    90 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
       
    91 	}
       
    92 	elsif ($text =~ m,^make: \*\*\* .* Error 1,)
       
    93 	{
       
    94 		$severity = $RaptorCommon::SEVERITY_MINOR;
       
    95 		my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_ERROR1;
       
    96 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
       
    97 	}
       
    98 	elsif ($text =~ m,^make: \*\*\* No rule to make target .*\ needed by .*,)
       
    99 	{
       
   100 		$severity = $RaptorCommon::SEVERITY_MINOR;
       
   101 		my $subcategory = $CATEGORY_RAPTORUNRECIPED_MAKE_NORULETOMAKETARGET;
       
   102 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file, $line);
       
   103 	}
       
   104 	elsif ($text =~ m,^make: Nothing to be done for .*,)
    84 	{
   105 	{
    85 		# don't dump
   106 		# don't dump
    86 	}
   107 	}
    87 	elsif ($text =~ m,^(true|false)$,)
   108 	elsif ($text =~ m,^(true|false)$,)
    88 	{
   109 	{