fix undefined value error

This commit is contained in:
zhouwenpei 2023-08-02 09:18:00 +00:00
parent 2fb86b2041
commit b40e3d84b8
2 changed files with 19 additions and 3 deletions

View File

@ -0,0 +1,11 @@
diff -up texinfo-7.0.2/tp/Texinfo/ParserNonXS.pm.orig texinfo-7.0.2/tp/Texinfo/ParserNonXS.pm
--- texinfo-7.0.2/tp/Texinfo/ParserNonXS.pm.orig 2023-01-22 11:42:42.000000000 +0100
+++ texinfo-7.0.2/tp/Texinfo/ParserNonXS.pm 2023-02-22 12:22:13.711852621 +0100
@@ -4357,6 +4357,7 @@ sub _process_remaining_on_line($$$$)
and ($current->{'parent'}->{'type'} eq 'menu_comment'
or $current->{'parent'}->{'type'} eq 'menu_entry_description')
and $asterisk
+ and $current->{'contents'}
and @{$current->{'contents'}}
and $current->{'contents'}->[-1]->{'type'}
and $current->{'contents'}->[-1]->{'type'} eq 'empty_line'

View File

@ -4,15 +4,17 @@
Name: texinfo Name: texinfo
Version: 7.0.3 Version: 7.0.3
Release: 1 Release: 2
Summary: The GNU Documentation System Summary: The GNU Documentation System
License: GPLv3+ License: GPLv3+
Url: http://www.gnu.org/software/texinfo/ Url: http://www.gnu.org/software/texinfo/
Source0: https://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz Source0: https://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz
Source1: https://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz.sig Source1: https://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz.sig
Patch0002: texinfo-6.1-install-info-use-create-tmp-then-rename-pattern.patch #patch from :https://src.fedoraproject.org/rpms/texinfo/tee/rawhide
Patch0005: texinfo-6.5-covscan-fixes.patch Patch6000: texinfo-6.1-install-info-use-create-tmp-then-rename-pattern.patch
Patch6001: texinfo-6.5-covscan-fixes.patch
Patch6002: texinfo-7.0.2-undef-val-array-ref.patch
BuildRequires: gcc perl-generators zlib-devel ncurses-devel help2man BuildRequires: gcc perl-generators zlib-devel ncurses-devel help2man
BuildRequires: perl(Data::Dumper) perl(Locale::Messages) perl(Unicode::EastAsianWidth) perl(Text::Unidecode) perl(Storable) perl(Unicode::Normalize) BuildRequires: perl(Data::Dumper) perl(Locale::Messages) perl(Unicode::EastAsianWidth) perl(Text::Unidecode) perl(Storable) perl(Unicode::Normalize)
@ -133,6 +135,9 @@ export ALL_TESTS=yes
%{_mandir}/man5/texinfo.5* %{_mandir}/man5/texinfo.5*
%changelog %changelog
* Wed Aug 02 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 7.0.3-2
- fix undefined value error
* Fri Jul 21 2023 zhangchenglin <zhanchenglin@kylinos.cn> - 7.0.3-1 * Fri Jul 21 2023 zhangchenglin <zhanchenglin@kylinos.cn> - 7.0.3-1
- update to 7.0.3 - update to 7.0.3