From 322c20edcc3051a6ca76bda3d142a3f53b8c1bee Mon Sep 17 00:00:00 2001 From: vcrhonek Date: Tue, 4 Aug 2009 12:09:03 +0000 Subject: [PATCH] Fix data types --- texinfo-4.13a-data_types.patch | 32 ++++++++++++++++++++++++++++++++ texinfo.spec | 7 ++++++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 texinfo-4.13a-data_types.patch diff --git a/texinfo-4.13a-data_types.patch b/texinfo-4.13a-data_types.patch new file mode 100644 index 0000000..2a87c21 --- /dev/null +++ b/texinfo-4.13a-data_types.patch @@ -0,0 +1,32 @@ +diff -up texinfo-4.13/info/window.c_old texinfo-4.13/info/window.c +--- texinfo-4.13/info/window.c_old 2009-08-04 13:46:15.000000000 +0200 ++++ texinfo-4.13/info/window.c 2009-08-04 13:47:29.000000000 +0200 +@@ -1581,7 +1581,7 @@ process_node_text (WINDOW *win, char *st + const char *carried_over_ptr; + size_t carried_over_len, carried_over_count; + const char *cur_ptr = mbi_cur_ptr (iter); +- int cur_len = mb_len (mbi_cur (iter)); ++ size_t cur_len = mb_len (mbi_cur (iter)); + int replen; + int delim = 0; + int rc; +@@ -1754,7 +1754,7 @@ clean_manpage (char *manpage) + mbi_advance (iter)) + { + const char *cur_ptr = mbi_cur_ptr (iter); +- int cur_len = mb_len (mbi_cur (iter)); ++ size_t cur_len = mb_len (mbi_cur (iter)); + + if (cur_len == 1) + { +@@ -1852,8 +1852,8 @@ window_scan_line (WINDOW *win, int line, + mbi_advance (iter)) + { + const char *cur_ptr = mbi_cur_ptr (iter); +- int cur_len = mb_len (mbi_cur (iter)); +- int replen; ++ size_t cur_len = mb_len (mbi_cur (iter)); ++ size_t replen; + + if (cur_ptr >= endp) + break; diff --git a/texinfo.spec b/texinfo.spec index ab06749..afdd3d0 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: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ Group: Applications/Publishing Url: http://www.gnu.org/software/texinfo/ @@ -11,6 +11,7 @@ Source0: ftp://ftp.gnu.org/gnu/texinfo/texinfo-%{version}.tar.gz Source1: info-dir Source2: texi2pdf.man Patch0: texinfo-4.12-zlib.patch +Patch1: texinfo-4.13a-data_types.patch Requires(post): /sbin/install-info Requires(preun): /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -53,6 +54,7 @@ for printing using TeX. %prep %setup -q -n %{name}-4.13 %patch0 -p1 -b .zlib +%patch1 -p1 -b .data_types %build %configure @@ -144,6 +146,9 @@ fi %{_mandir}/man1/pdftexi2dvi.1* %changelog +* Tue Aug 4 2009 Vitezslav Crhonek - 4.13a-4 +- Fix data types + * Sun Jul 26 2009 Fedora Release Engineering - 4.13a-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild