diff --git a/texinfo-7.0.2-undef-val-array-ref.patch b/texinfo-7.0.2-undef-val-array-ref.patch new file mode 100644 index 0000000..0710efd --- /dev/null +++ b/texinfo-7.0.2-undef-val-array-ref.patch @@ -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' diff --git a/texinfo.spec b/texinfo.spec index 6fddac2..1a1a6a7 100644 --- a/texinfo.spec +++ b/texinfo.spec @@ -4,15 +4,17 @@ Name: texinfo Version: 7.0.3 -Release: 1 +Release: 2 Summary: The GNU Documentation System License: GPLv3+ Url: http://www.gnu.org/software/texinfo/ Source0: https://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.xz 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 -Patch0005: texinfo-6.5-covscan-fixes.patch +#patch from :https://src.fedoraproject.org/rpms/texinfo/tee/rawhide +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: 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* %changelog +* Wed Aug 02 2023 zhouwenpei - 7.0.3-2 +- fix undefined value error + * Fri Jul 21 2023 zhangchenglin - 7.0.3-1 - update to 7.0.3