mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: texinfo@5: Fix FTBFS with Perl >= 5.28.
* gnu/packages/patches/texinfo-5-perl-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/texinfo.scm (texinfo-5)[source](patches): New field.
This commit is contained in:
parent
16de7f15cb
commit
a446cf26d7
3 changed files with 21 additions and 0 deletions
19
gnu/packages/patches/texinfo-5-perl-compat.patch
Normal file
19
gnu/packages/patches/texinfo-5-perl-compat.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
Fix a deprecation warning with newer Perl that breaks some tests.
|
||||
|
||||
--- a/tp/Texinfo/Parser.pm
|
||||
+++ b/tp/Texinfo/Parser.pm
|
||||
@@ -5438,12 +5438,12 @@
|
||||
}
|
||||
} elsif ($command eq 'clickstyle') {
|
||||
# REMACRO
|
||||
- if ($line =~ /^\s+@([[:alnum:]][[:alnum:]\-]*)({})?\s*/) {
|
||||
+ if ($line =~ /^\s+@([[:alnum:]][[:alnum:]\-]*)(\{})?\s*/) {
|
||||
$args = ['@'.$1];
|
||||
$self->{'clickstyle'} = $1
|
||||
unless(_ignore_global_commands($self));
|
||||
$remaining = $line;
|
||||
- $remaining =~ s/^\s+@([[:alnum:]][[:alnum:]\-]*)({})?\s*(\@(c|comment)((\@|\s+).*)?)?//;
|
||||
+ $remaining =~ s/^\s+@([[:alnum:]][[:alnum:]\-]*)(\{})?\s*(\@(c|comment)((\@|\s+).*)?)?//;
|
||||
$has_comment = 1 if (defined($4));
|
||||
} else {
|
||||
$self->line_error (sprintf($self->__(
|
Loading…
Add table
Add a link
Reference in a new issue