diff options
author | mat <mat@FreeBSD.org> | 2015-04-13 06:16:23 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-04-13 06:16:23 +0800 |
commit | 5b2b320027ad5d94fc50816e48c8bac969cfa825 (patch) | |
tree | 681b59cd8eb9fc5df76024d2c61f932b0fd11f76 /lang | |
parent | e1a24e17f1c62e4534f9216dd67d8bf7917c3f79 (diff) | |
download | freebsd-ports-graphics-5b2b320027ad5d94fc50816e48c8bac969cfa825.tar.gz freebsd-ports-graphics-5b2b320027ad5d94fc50816e48c8bac969cfa825.tar.zst freebsd-ports-graphics-5b2b320027ad5d94fc50816e48c8bac969cfa825.zip |
Fix with Perl 5.21.1+
With hat: perl@
Sponsored by: Absolight
Diffstat (limited to 'lang')
-rw-r--r-- | lang/erlang-runtime15/files/patch-erts_emulator_utils_beam__makeops | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/erlang-runtime15/files/patch-erts_emulator_utils_beam__makeops b/lang/erlang-runtime15/files/patch-erts_emulator_utils_beam__makeops new file mode 100644 index 00000000000..beacdf34f0b --- /dev/null +++ b/lang/erlang-runtime15/files/patch-erts_emulator_utils_beam__makeops @@ -0,0 +1,11 @@ +--- erts/emulator/utils/beam_makeops.orig 2015-04-12 21:52:03 UTC ++++ erts/emulator/utils/beam_makeops +@@ -1711,7 +1711,7 @@ sub tr_gen_to { + + my $prev_last; + $prev_last = pop(@{$gen_transform{$key}}) +- if defined @{$gen_transform{$key}}; # Fail ++ if defined($gen_transform{$key}) && @{$gen_transform{$key}}; # Fail + + if ($prev_last && !is_instr($prev_last, 'fail')) { + error("Line $line: A previous transformation shadows '$orig_transform'"); |