diff options
Diffstat (limited to 'dev-tex/biber/files/biber-2.16-perl-5.36-semicolon.patch')
-rw-r--r-- | dev-tex/biber/files/biber-2.16-perl-5.36-semicolon.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-tex/biber/files/biber-2.16-perl-5.36-semicolon.patch b/dev-tex/biber/files/biber-2.16-perl-5.36-semicolon.patch new file mode 100644 index 000000000000..655a4e8f73e9 --- /dev/null +++ b/dev-tex/biber/files/biber-2.16-perl-5.36-semicolon.patch @@ -0,0 +1,38 @@ +https://bugs.gentoo.org/850733 +https://github.com/plk/biber/commit/d9e961710074d266ad6bdf395c98868d91952088 + +From d9e961710074d266ad6bdf395c98868d91952088 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> +Date: Wed, 25 May 2022 12:41:59 +0200 +Subject: [PATCH] Adapt to Perl 5.36 + +A developmental release of Perl 5.36.0 fails to run tests with: + + $ perl -Ilib t/basic-misc.t + 1..72 + Can't modify undef operator in scalar assignment at lib/Biber/Section.pm line 433, near "undef;" + Compilation failed in require at lib/Biber.pm line 24. + BEGIN failed--compilation aborted at lib/Biber.pm line 24. + Compilation failed in require at t/basic-misc.t line 11. + BEGIN failed--compilation aborted at t/basic-misc.t line 11. + # Looks like your test exited with 255 before it could output anything. + +This is because of a missing semicolon between commands in +del_everykeys(). The new perl is more strict and raises a compile-time +error: + + $ perl -e '$a = undef $b = undef;' + Can't modify undef operator in scalar assignment at -e line 1, near "undef;" + Execution of -e aborted due to compilation errors. +--- a/lib/Biber/Section.pm ++++ b/lib/Biber/Section.pm +@@ -429,7 +429,7 @@ sub add_everykey { + + sub del_everykeys { + my $self = shift; +- $self->{everykey} = undef ++ $self->{everykey} = undef; + $self->{everykey_lc} = undef; + return; + } + |