From e4ad24727d9937e53f54cb091363cdad8ca9af6c Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Wed, 10 Nov 2010 12:07:55 +0100 Subject: [PATCH] Fix get_sectioning_number function problem --- texinfo-4.13a-makeinfo-sectioning.patch | 20 ++++++++++++++++++++ texinfo.spec | 9 ++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 texinfo-4.13a-makeinfo-sectioning.patch diff --git a/texinfo-4.13a-makeinfo-sectioning.patch b/texinfo-4.13a-makeinfo-sectioning.patch new file mode 100644 index 0000000..75a2986 --- /dev/null +++ b/texinfo-4.13a-makeinfo-sectioning.patch @@ -0,0 +1,20 @@ +diff -up texinfo-4.13/makeinfo/sectioning.c.orig texinfo-4.13/makeinfo/sectioning.c +--- texinfo-4.13/makeinfo/sectioning.c.orig 2010-11-10 11:24:53.000000000 +0100 ++++ texinfo-4.13/makeinfo/sectioning.c 2010-11-10 11:25:28.000000000 +0100 +@@ -256,14 +256,14 @@ current_chapter_number (void) + return xstrdup (""); + else if (enum_marker == APPENDIX_MAGIC) + { +- char s[1]; ++ char s[2]; + sprintf (s, "%c", numbers[0] + 64); + return xstrdup (s); + } + else + { + char s[5]; +- sprintf (s, "%d", numbers[0]); ++ sprintf (s, "%4d", numbers[0]); + return xstrdup (s); + } + } diff --git a/texinfo.spec b/texinfo.spec index bdb600c..92db976 100644 --- a/texinfo.spec +++ b/texinfo.spec @@ -3,7 +3,7 @@ Summary: Tools needed to create Texinfo format documentation files Name: texinfo Version: 4.13a -Release: 12%{?dist} +Release: 13%{?dist} License: GPLv3+ Group: Applications/Publishing Url: http://www.gnu.org/software/texinfo/ @@ -19,6 +19,8 @@ Patch3: texinfo-4.13a-powerpc.patch Patch4: texinfo-4.13a-help-index-segfault.patch # Patch5: already upstream, bz641534 Patch5: texinfo-4.13a-texi2dvi-regexp.patch +# Patch6: already upstream, bz651314 +Patch6: texinfo-4.13a-makeinfo-sectioning.patch Requires(post): /sbin/install-info Requires(preun): /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -66,6 +68,7 @@ for printing using TeX. %patch3 -p1 -b .powerpc %patch4 -p1 -b .help-index-segfault %patch5 -p1 -b .texi2dvi-regexp +%patch6 -p1 -b .makeinfo-sectioning %build %configure @@ -165,6 +168,10 @@ fi %{_mandir}/man1/pdftexi2dvi.1* %changelog +* Wed Nov 10 2010 Vitezslav Crhonek - 4.13a-13 +- Fix get_sectioning_number function problem + Resolves: #651314 + * Tue Nov 9 2010 Jindrich Novy - 4.13a-12 - require tex(tex) instead of tetex in texinfo-tex