Skip to content

Commit

Permalink
test for fixed RuntimeVars bug that could create runtime chaos
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacks committed Jul 29, 2016
1 parent 17d023c commit 21f9db8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions perlmod/Fink/Validation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,15 @@ sub validate_info_component {
$looks_good = 0 unless _require_dep(\%options, { build => {'fink' => '0.32'} }, 'use of RuntimeDepends', $filename);
}

# A bug related to RuntimeVars ordering was fixed; it could
# trigger runtime errors in a certain situation. Test here is a
# heuristic for that situation.
$value = $properties->{runtimevars};
if (defined $value and $value =~ /$/) {
warn " heuristic match\n";
$looks_good = 0 unless _require_dep(\%options, { build => {'fink' => '0.39.4'} }, 'use of shell variables in RuntimeVars variable values', $filename);
}

# check syntax of each line of Shlibs field
$value = $properties->{shlibs};
if (defined $value) {
Expand Down

0 comments on commit 21f9db8

Please sign in to comment.